diff options
author | Justin McPherson <justin.mcpherson@nokia.com> | 2009-06-26 02:20:09 (GMT) |
---|---|---|
committer | Justin McPherson <justin.mcpherson@nokia.com> | 2009-06-26 02:20:09 (GMT) |
commit | 1e9b20cb6603b61f8d07a9f1da927dbf94f8525a (patch) | |
tree | 95a2a56849806d12acc75c8902c1ee54a46ba871 /src/3rdparty/webkit/JavaScriptCore/runtime/StructureChain.cpp | |
parent | e32bc79d9ab52e5b70e3cd27bddb2bec9c81f5a5 (diff) | |
parent | db24e82b6b74be303492f186a45d784fcd84fdc6 (diff) | |
download | Qt-1e9b20cb6603b61f8d07a9f1da927dbf94f8525a.zip Qt-1e9b20cb6603b61f8d07a9f1da927dbf94f8525a.tar.gz Qt-1e9b20cb6603b61f8d07a9f1da927dbf94f8525a.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt
Diffstat (limited to 'src/3rdparty/webkit/JavaScriptCore/runtime/StructureChain.cpp')
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/runtime/StructureChain.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/runtime/StructureChain.cpp b/src/3rdparty/webkit/JavaScriptCore/runtime/StructureChain.cpp index 085876c..85049b1 100644 --- a/src/3rdparty/webkit/JavaScriptCore/runtime/StructureChain.cpp +++ b/src/3rdparty/webkit/JavaScriptCore/runtime/StructureChain.cpp @@ -46,4 +46,15 @@ StructureChain::StructureChain(Structure* head) m_vector[i] = 0; } +bool StructureChain::isCacheable() const +{ + uint32_t i = 0; + + while (m_vector[i]) { + if (m_vector[i++]->isDictionary()) + return false; + } + return true; +} + } // namespace JSC |