Changeset 37294 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 4, 2008, 1:32:21 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r37285 r37294 1 2008-10-04 Cameron Zwarich <[email protected]> 2 3 Reviewed by Darin Adler. 4 5 Bug 21369: Add opcode documentation for all undocumented opcodes 6 <https://bugs.webkit.org/show_bug.cgi?id=21369> 7 8 This patch adds opcode documentation for all undocumented opcodes, and 9 it also renames op_init_arguments to op_create_arguments. 10 11 * VM/CTI.cpp: 12 (JSC::CTI::privateCompileMainPass): 13 * VM/CodeBlock.cpp: 14 (JSC::CodeBlock::dump): 15 * VM/CodeGenerator.cpp: 16 (JSC::CodeGenerator::CodeGenerator): 17 * VM/Machine.cpp: 18 (JSC::Machine::privateExecute): 19 (JSC::Machine::cti_op_create_arguments): 20 * VM/Machine.h: 21 * VM/Opcode.h: 22 1 23 2008-10-03 Maciej Stachowiak <[email protected]> 2 24 -
trunk/JavaScriptCore/VM/CTI.cpp
r37285 r37294 1989 1989 break; 1990 1990 } 1991 case op_ init_arguments: {1992 emitCall(i, Machine::cti_op_ init_arguments);1991 case op_create_arguments: { 1992 emitCall(i, Machine::cti_op_create_arguments); 1993 1993 i += 1; 1994 1994 break; -
trunk/JavaScriptCore/VM/CodeBlock.cpp
r37285 r37294 357 357 break; 358 358 } 359 case op_ init_arguments: {360 printf("[%4d] init_arguments\n", location);359 case op_create_arguments: { 360 printf("[%4d] create_arguments\n", location); 361 361 break; 362 362 } -
trunk/JavaScriptCore/VM/CodeGenerator.cpp
r37285 r37294 296 296 codeBlock->usesArguments = usesArguments; 297 297 if (usesArguments) { 298 emitOpcode(op_ init_arguments);298 emitOpcode(op_create_arguments); 299 299 m_argumentsRegister.setIndex(RegisterFile::OptionalCalleeArguments); 300 300 addVar(propertyNames().arguments, false); -
trunk/JavaScriptCore/VM/Machine.cpp
r37285 r37294 3343 3343 register base to those of the calling function. 3344 3344 */ 3345 3345 3346 3346 int result = (++vPC)->u.operand; 3347 3347 … … 3377 3377 } 3378 3378 BEGIN_OPCODE(op_enter) { 3379 /* enter 3380 3381 Initializes local variables to undefined and fills constant 3382 registers with their values. If the code block requires an 3383 activation, enter_with_activation should be used instead. 3384 3385 This opcode should only be used at the beginning of a code 3386 block. 3387 */ 3388 3379 3389 size_t i = 0; 3380 3390 CodeBlock* codeBlock = this->codeBlock(r); … … 3390 3400 } 3391 3401 BEGIN_OPCODE(op_enter_with_activation) { 3402 /* enter_with_activation 3403 3404 Initializes local variables to undefined, fills constant 3405 registers with their values, creates an activation object, 3406 and places the new activation both in the activation slot 3407 in the call frame and at the top of the scope chain. If the 3408 code block does not require an activation, enter should be 3409 used instead. 3410 3411 This opcode should only be used at the beginning of a code 3412 block. 3413 */ 3414 3392 3415 size_t i = 0; 3393 3416 CodeBlock* codeBlock = this->codeBlock(r); … … 3415 3438 NEXT_OPCODE; 3416 3439 } 3417 BEGIN_OPCODE(op_init_arguments) { 3440 BEGIN_OPCODE(op_create_arguments) { 3441 /* create_arguments 3442 3443 Creates the 'arguments' object and places it in both the 3444 'arguments' call frame slot and the local 'arguments' 3445 register. 3446 3447 This opcode should only be used at the beginning of a code 3448 block. 3449 */ 3450 3418 3451 JSValue* activation = r[RegisterFile::OptionalCalleeActivation].getJSValue(); 3419 3452 Arguments* arguments; … … 4626 4659 } 4627 4660 4628 void Machine::cti_op_ init_arguments(CTI_ARGS)4661 void Machine::cti_op_create_arguments(CTI_ARGS) 4629 4662 { 4630 4663 ExecState* exec = ARG_exec; -
trunk/JavaScriptCore/VM/Machine.h
r37285 r37294 165 165 static void* SFX_CALL cti_op_call_JSFunction(CTI_ARGS); 166 166 static JSValue* SFX_CALL cti_op_call_NotJSFunction(CTI_ARGS); 167 static void SFX_CALL cti_op_ init_arguments(CTI_ARGS);167 static void SFX_CALL cti_op_create_arguments(CTI_ARGS); 168 168 static void SFX_CALL cti_op_ret_activation_arguments(CTI_ARGS); 169 169 static void SFX_CALL cti_op_ret_profiler(CTI_ARGS); -
trunk/JavaScriptCore/VM/Opcode.h
r37285 r37294 43 43 macro(op_enter) \ 44 44 macro(op_enter_with_activation) \ 45 macro(op_ init_arguments) \45 macro(op_create_arguments) \ 46 46 macro(op_convert_this) \ 47 47 \
Note:
See TracChangeset
for help on using the changeset viewer.