Changeset 165073 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Mar 4, 2014, 1:30:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r164835 r165073 1180 1180 variableObject->globalObject()->varInjectionWatchpoint()->fireAll(); 1181 1181 1182 { 1183 SamplingRegion samplingRegion("variable puts"); 1184 1185 for (unsigned i = 0; i < numVariables; ++i) { 1186 const Identifier& ident = codeBlock->variable(i); 1187 if (!variableObject->hasProperty(callFrame, ident)) { 1188 PutPropertySlot slot(variableObject); 1189 variableObject->methodTable()->put(variableObject, callFrame, ident, jsUndefined(), slot); 1190 } 1182 for (unsigned i = 0; i < numVariables; ++i) { 1183 const Identifier& ident = codeBlock->variable(i); 1184 if (!variableObject->hasProperty(callFrame, ident)) { 1185 PutPropertySlot slot(variableObject); 1186 variableObject->methodTable()->put(variableObject, callFrame, ident, jsUndefined(), slot); 1191 1187 } 1192 1188 } 1193 1189 1194 { 1195 SamplingRegion samplingRegion("function puts"); 1196 1197 for (int i = 0; i < numFunctions; ++i) { 1198 FunctionExecutable* function = codeBlock->functionDecl(i); 1199 PutPropertySlot slot(variableObject); 1200 variableObject->methodTable()->put(variableObject, callFrame, function->name(), JSFunction::create(vm, function, scope), slot); 1201 } 1190 for (int i = 0; i < numFunctions; ++i) { 1191 FunctionExecutable* function = codeBlock->functionDecl(i); 1192 PutPropertySlot slot(variableObject); 1193 variableObject->methodTable()->put(variableObject, callFrame, function->name(), JSFunction::create(vm, function, scope), slot); 1202 1194 } 1203 1195 }
Note:
See TracChangeset
for help on using the changeset viewer.