Changeset 195246 in webkit
- Timestamp:
- Jan 18, 2016 8:08:56 PM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r195238 r195246 1 2016-01-18 Saam barati <sbarati@apple.com> 2 3 assertions in BytecodeUseDef.h about opcode length are off by one 4 https://bugs.webkit.org/show_bug.cgi?id=153215 5 6 Reviewed by Dan Bernstein. 7 8 * bytecode/BytecodeUseDef.h: 9 (JSC::computeUsesForBytecodeOffset): 10 1 11 2016-01-18 Saam barati <sbarati@apple.com> 2 12 -
trunk/Source/JavaScriptCore/bytecode/BytecodeUseDef.h
r194248 r195246 74 74 case op_inc: 75 75 case op_resume: { 76 ASSERT(opcodeLengths[opcodeID] > =1);76 ASSERT(opcodeLengths[opcodeID] > 1); 77 77 functor(codeBlock, instruction, opcodeID, instruction[1].u.operand); 78 78 return; … … 87 87 case op_jless: 88 88 case op_copy_rest: { 89 ASSERT(opcodeLengths[opcodeID] > =2);89 ASSERT(opcodeLengths[opcodeID] > 2); 90 90 functor(codeBlock, instruction, opcodeID, instruction[1].u.operand); 91 91 functor(codeBlock, instruction, opcodeID, instruction[2].u.operand); … … 94 94 case op_put_by_val_direct: 95 95 case op_put_by_val: { 96 ASSERT(opcodeLengths[opcodeID] > =3);96 ASSERT(opcodeLengths[opcodeID] > 3); 97 97 functor(codeBlock, instruction, opcodeID, instruction[1].u.operand); 98 98 functor(codeBlock, instruction, opcodeID, instruction[2].u.operand); … … 104 104 case op_put_to_scope: 105 105 case op_put_to_arguments: { 106 ASSERT(opcodeLengths[opcodeID] > =3);106 ASSERT(opcodeLengths[opcodeID] > 3); 107 107 functor(codeBlock, instruction, opcodeID, instruction[1].u.operand); 108 108 functor(codeBlock, instruction, opcodeID, instruction[3].u.operand); … … 111 111 case op_put_getter_by_id: 112 112 case op_put_setter_by_id: { 113 ASSERT(opcodeLengths[opcodeID] > =4);113 ASSERT(opcodeLengths[opcodeID] > 4); 114 114 functor(codeBlock, instruction, opcodeID, instruction[1].u.operand); 115 115 functor(codeBlock, instruction, opcodeID, instruction[4].u.operand); … … 117 117 } 118 118 case op_put_getter_setter_by_id: { 119 ASSERT(opcodeLengths[opcodeID] > =5);119 ASSERT(opcodeLengths[opcodeID] > 5); 120 120 functor(codeBlock, instruction, opcodeID, instruction[1].u.operand); 121 121 functor(codeBlock, instruction, opcodeID, instruction[4].u.operand); … … 125 125 case op_put_getter_by_val: 126 126 case op_put_setter_by_val: { 127 ASSERT(opcodeLengths[opcodeID] > =4);127 ASSERT(opcodeLengths[opcodeID] > 4); 128 128 functor(codeBlock, instruction, opcodeID, instruction[1].u.operand); 129 129 functor(codeBlock, instruction, opcodeID, instruction[2].u.operand); … … 167 167 case op_create_scoped_arguments: 168 168 case op_get_from_arguments: { 169 ASSERT(opcodeLengths[opcodeID] > =2);169 ASSERT(opcodeLengths[opcodeID] > 2); 170 170 functor(codeBlock, instruction, opcodeID, instruction[2].u.operand); 171 171 return;
Note: See TracChangeset
for help on using the changeset viewer.