Changeset 37422 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 8, 2008, 5:20:41 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r37417 r37422 1 2008-10-08 Prasanth Ullattil <[email protected]> 2 3 Reviewed by Oliver Hunt. 4 5 Avoid endless loops when compiling without the computed goto 6 optimization. 7 8 NEXT_OPCODE expands to "continue", which will not work inside 9 loops. 10 11 * VM/Machine.cpp: 12 (JSC::Machine::privateExecute): 13 1 14 2008-10-08 Maciej Stachowiak <[email protected]> 2 15 -
trunk/JavaScriptCore/VM/Machine.cpp
r37417 r37422 1504 1504 NEXT_OPCODE; 1505 1505 #else 1506 #define NEXT_OPCODE MACHINE_SAMPLING_sample(this->codeBlock(r), vPC); continue1506 #define NEXT_OPCODE MACHINE_SAMPLING_sample(this->codeBlock(r), vPC); goto interpreterLoopStart 1507 1507 #if DUMP_OPCODE_STATS 1508 1508 #define BEGIN_OPCODE(opcode) case opcode: OpcodeStats::recordInstruction(opcode); … … 1510 1510 #define BEGIN_OPCODE(opcode) case opcode: 1511 1511 #endif 1512 while (1) // iterator loop begins 1512 while (1) { // iterator loop begins 1513 interpreterLoopStart:; 1513 1514 switch (vPC->u.opcode) 1514 1515 #endif … … 3914 3915 } 3915 3916 } 3917 #if !HAVE(COMPUTED_GOTO) 3918 } // iterator loop ends 3919 #endif 3916 3920 #undef NEXT_OPCODE 3917 3921 #undef BEGIN_OPCODE
Note:
See TracChangeset
for help on using the changeset viewer.