Changeset 59820 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
- Timestamp:
- May 19, 2010, 10:36:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r59817 r59820 1542 1542 } 1543 1543 1544 // Constructors use op_ constructor_retto check the result is an1544 // Constructors use op_ret_object_or_this to check the result is an 1545 1545 // object, unless we can trivially determine the check is not 1546 1546 // necessary (currently, if the return value is 'this'). 1547 1547 if (isConstructor() && (src->index() != m_thisRegister.index())) { 1548 emitOpcode(op_ constructor_ret);1548 emitOpcode(op_ret_object_or_this); 1549 1549 instructions().append(src->index()); 1550 1550 instructions().append(m_thisRegister.index());
Note:
See TracChangeset
for help on using the changeset viewer.