Changeset 37337 in webkit for trunk/JavaScriptCore/VM/Machine.cpp
- Timestamp:
- Oct 6, 2008, 11:31:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/Machine.cpp
r37333 r37337 2128 2128 int dst = (++vPC)->u.operand; 2129 2129 int src = (++vPC)->u.operand; 2130 JSValue* result = jsBoolean(!r[src].jsValue(exec)->toBoolean()); 2130 JSValue* result = jsBoolean(!r[src].jsValue(exec)->toBoolean(exec)); 2131 VM_CHECK_EXCEPTION(); 2131 2132 r[dst] = result; 2132 2133 … … 2986 2987 int cond = (++vPC)->u.operand; 2987 2988 int target = (++vPC)->u.operand; 2988 if (r[cond].jsValue(exec)->toBoolean( )) {2989 if (r[cond].jsValue(exec)->toBoolean(exec)) { 2989 2990 vPC += target; 2990 2991 CHECK_FOR_TIMEOUT(); … … 3003 3004 int cond = (++vPC)->u.operand; 3004 3005 int target = (++vPC)->u.operand; 3005 if (r[cond].jsValue(exec)->toBoolean( )) {3006 if (r[cond].jsValue(exec)->toBoolean(exec)) { 3006 3007 vPC += target; 3007 3008 NEXT_OPCODE; … … 3019 3020 int cond = (++vPC)->u.operand; 3020 3021 int target = (++vPC)->u.operand; 3021 if (!r[cond].jsValue(exec)->toBoolean( )) {3022 if (!r[cond].jsValue(exec)->toBoolean(exec)) { 3022 3023 vPC += target; 3023 3024 NEXT_OPCODE; … … 4988 4989 JSValue* src1 = ARG_src1; 4989 4990 4990 return src1->toBoolean(); 4991 ExecState* exec = ARG_exec; 4992 4993 bool result = src1->toBoolean(exec); 4994 VM_CHECK_EXCEPTION_AT_END(); 4995 return result; 4991 4996 } 4992 4997 … … 5111 5116 JSValue* Machine::cti_op_not(CTI_ARGS) 5112 5117 { 5113 return jsBoolean(!ARG_src1->toBoolean()); 5118 JSValue* src = ARG_src1; 5119 5120 ExecState* exec = ARG_exec; 5121 5122 JSValue* result = jsBoolean(!src->toBoolean(exec)); 5123 VM_CHECK_EXCEPTION_AT_END(); 5124 return result; 5114 5125 } 5115 5126 5116 5127 int SFX_CALL Machine::cti_op_jtrue(CTI_ARGS) 5117 5128 { 5118 return ARG_src1->toBoolean(); 5129 JSValue* src1 = ARG_src1; 5130 5131 ExecState* exec = ARG_exec; 5132 5133 bool result = src1->toBoolean(exec); 5134 VM_CHECK_EXCEPTION_AT_END(); 5135 return result; 5119 5136 } 5120 5137
Note:
See TracChangeset
for help on using the changeset viewer.