Changeset 50254 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
- Timestamp:
- Oct 28, 2009, 6:25:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r49734 r50254 1282 1282 RegisterID* BytecodeGenerator::emitGetByVal(RegisterID* dst, RegisterID* base, RegisterID* property) 1283 1283 { 1284 for (size_t i = m_forInContextStack.size(); i > 0; i--) { 1285 ForInContext& context = m_forInContextStack[i - 1]; 1286 if (context.propertyRegister == property) { 1287 emitOpcode(op_get_by_pname); 1288 instructions().append(dst->index()); 1289 instructions().append(base->index()); 1290 instructions().append(property->index()); 1291 instructions().append(context.expectedSubscriptRegister->index()); 1292 instructions().append(context.iterRegister->index()); 1293 instructions().append(context.indexRegister->index()); 1294 return dst; 1295 } 1296 } 1284 1297 emitOpcode(op_get_by_val); 1285 1298 instructions().append(dst->index());
Note:
See TracChangeset
for help on using the changeset viewer.