Changeset 106502 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- Feb 1, 2012, 3:08:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r106314 r106502 2063 2063 callFrame->setScopeChain(callFrame->scopeChain()->push(activation)); 2064 2064 } 2065 2066 unsigned CodeBlock::addOrFindConstant(JSValue v) 2067 { 2068 unsigned numberOfConstants = numberOfConstantRegisters(); 2069 for (unsigned i = 0; i < numberOfConstants; ++i) { 2070 if (getConstant(FirstConstantRegisterIndex + i) == v) 2071 return i; 2072 } 2073 return addConstant(v); 2074 } 2065 2075 2066 2076 #if ENABLE(JIT)
Note:
See TracChangeset
for help on using the changeset viewer.