Changeset 63056 in webkit for trunk/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Jul 10, 2010, 6:14:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/Interpreter.cpp
r62896 r63056 385 385 , m_reentryDepth(0) 386 386 { 387 #if HAVE(COMPUTED_GOTO)387 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 388 388 privateExecute(InitializeAndReturn, 0, 0, 0); 389 389 390 390 for (int i = 0; i < numOpcodeIDs; ++i) 391 391 m_opcodeIDTable.add(m_opcodeTable[i], static_cast<OpcodeID>(i)); 392 #endif // HAVE(COMPUTED_GOTO)392 #endif // ENABLE(COMPUTED_GOTO_INTERPRETER) 393 393 394 394 #if ENABLE(OPCODE_SAMPLING) … … 498 498 bool Interpreter::isOpcode(Opcode opcode) 499 499 { 500 #if HAVE(COMPUTED_GOTO)500 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 501 501 return opcode != HashTraits<Opcode>::emptyValue() 502 502 && !HashTraits<Opcode>::isDeletedValue(opcode) … … 1386 1386 // here because our labels are only in scope inside this function. 1387 1387 if (UNLIKELY(flag == InitializeAndReturn)) { 1388 #if HAVE(COMPUTED_GOTO)1388 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 1389 1389 #define LIST_OPCODE_LABEL(id, length) &&id, 1390 1390 static Opcode labels[] = { FOR_EACH_OPCODE_ID(LIST_OPCODE_LABEL) }; … … 1392 1392 m_opcodeTable[i] = labels[i]; 1393 1393 #undef LIST_OPCODE_LABEL 1394 #endif // HAVE(COMPUTED_GOTO)1394 #endif // ENABLE(COMPUTED_GOTO_INTERPRETER) 1395 1395 return JSValue(); 1396 1396 } … … 1448 1448 #endif 1449 1449 1450 #if HAVE(COMPUTED_GOTO)1450 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 1451 1451 #define NEXT_INSTRUCTION() SAMPLE(codeBlock, vPC); goto *vPC->u.opcode 1452 1452 #if ENABLE(OPCODE_STATS) … … 2480 2480 NEXT_INSTRUCTION(); 2481 2481 } 2482 #if HAVE(COMPUTED_GOTO)2482 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2483 2483 goto *(&&skip_id_getter_proto); 2484 2484 #endif … … 2522 2522 NEXT_INSTRUCTION(); 2523 2523 } 2524 #if HAVE(COMPUTED_GOTO)2524 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2525 2525 skip_id_getter_proto: 2526 2526 #endif 2527 #if HAVE(COMPUTED_GOTO)2527 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2528 2528 goto *(&&skip_id_custom_proto); 2529 2529 #endif … … 2564 2564 NEXT_INSTRUCTION(); 2565 2565 } 2566 #if HAVE(COMPUTED_GOTO)2566 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2567 2567 skip_id_custom_proto: 2568 2568 #endif … … 2655 2655 NEXT_INSTRUCTION(); 2656 2656 } 2657 #if HAVE(COMPUTED_GOTO)2657 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2658 2658 goto *(&&skip_id_getter_self); 2659 2659 #endif … … 2695 2695 NEXT_INSTRUCTION(); 2696 2696 } 2697 #if HAVE(COMPUTED_GOTO)2697 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2698 2698 skip_id_getter_self: 2699 2699 #endif 2700 #if HAVE(COMPUTED_GOTO)2700 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2701 2701 goto *(&&skip_id_custom_self); 2702 2702 #endif … … 2732 2732 NEXT_INSTRUCTION(); 2733 2733 } 2734 #if HAVE(COMPUTED_GOTO)2734 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2735 2735 skip_id_custom_self: 2736 2736 #endif … … 2755 2755 NEXT_INSTRUCTION(); 2756 2756 } 2757 #if HAVE(COMPUTED_GOTO)2757 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2758 2758 goto *(&&skip_id_getter_chain); 2759 2759 #endif … … 2807 2807 NEXT_INSTRUCTION(); 2808 2808 } 2809 #if HAVE(COMPUTED_GOTO)2809 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2810 2810 skip_id_getter_chain: 2811 2811 #endif 2812 #if HAVE(COMPUTED_GOTO)2812 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2813 2813 goto *(&&skip_id_custom_chain); 2814 2814 #endif … … 2859 2859 NEXT_INSTRUCTION(); 2860 2860 } 2861 #if HAVE(COMPUTED_GOTO)2861 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 2862 2862 skip_id_custom_chain: 2863 2863 #endif … … 4376 4376 NEXT_INSTRUCTION(); 4377 4377 } 4378 #if HAVE(COMPUTED_GOTO)4378 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 4379 4379 // Appease GCC 4380 4380 goto *(&&skip_new_scope); … … 4392 4392 NEXT_INSTRUCTION(); 4393 4393 } 4394 #if HAVE(COMPUTED_GOTO)4394 #if ENABLE(COMPUTED_GOTO_INTERPRETER) 4395 4395 skip_new_scope: 4396 4396 #endif … … 4606 4606 } 4607 4607 } 4608 #if ! HAVE(COMPUTED_GOTO)4608 #if !ENABLE(COMPUTED_GOTO_INTERPRETER) 4609 4609 } // iterator loop ends 4610 4610 #endif
Note:
See TracChangeset
for help on using the changeset viewer.