| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
| (...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2176 bind(&leave_exit_frame); | 2176 bind(&leave_exit_frame); |
| 2177 | 2177 |
| 2178 // Check if the function scheduled an exception. | 2178 // Check if the function scheduled an exception. |
| 2179 ExternalReference scheduled_exception_address = | 2179 ExternalReference scheduled_exception_address = |
| 2180 ExternalReference::scheduled_exception_address(isolate()); | 2180 ExternalReference::scheduled_exception_address(isolate()); |
| 2181 cmp(Operand::StaticVariable(scheduled_exception_address), | 2181 cmp(Operand::StaticVariable(scheduled_exception_address), |
| 2182 Immediate(isolate()->factory()->the_hole_value())); | 2182 Immediate(isolate()->factory()->the_hole_value())); |
| 2183 j(not_equal, &promote_scheduled_exception); | 2183 j(not_equal, &promote_scheduled_exception); |
| 2184 bind(&exception_handled); | 2184 bind(&exception_handled); |
| 2185 | 2185 |
| 2186 #if ENABLE_EXTRA_CHECKS | 2186 #if DEBUG |
| 2187 // Check if the function returned a valid JavaScript value. | 2187 // Check if the function returned a valid JavaScript value. |
| 2188 Label ok; | 2188 Label ok; |
| 2189 Register return_value = eax; | 2189 Register return_value = eax; |
| 2190 Register map = ecx; | 2190 Register map = ecx; |
| 2191 | 2191 |
| 2192 JumpIfSmi(return_value, &ok, Label::kNear); | 2192 JumpIfSmi(return_value, &ok, Label::kNear); |
| 2193 mov(map, FieldOperand(return_value, HeapObject::kMapOffset)); | 2193 mov(map, FieldOperand(return_value, HeapObject::kMapOffset)); |
| 2194 | 2194 |
| 2195 CmpInstanceType(map, FIRST_NONSTRING_TYPE); | 2195 CmpInstanceType(map, FIRST_NONSTRING_TYPE); |
| 2196 j(below, &ok, Label::kNear); | 2196 j(below, &ok, Label::kNear); |
| (...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3450 if (mag.shift > 0) sar(edx, mag.shift); | 3450 if (mag.shift > 0) sar(edx, mag.shift); |
| 3451 mov(eax, dividend); | 3451 mov(eax, dividend); |
| 3452 shr(eax, 31); | 3452 shr(eax, 31); |
| 3453 add(edx, eax); | 3453 add(edx, eax); |
| 3454 } | 3454 } |
| 3455 | 3455 |
| 3456 | 3456 |
| 3457 } } // namespace v8::internal | 3457 } } // namespace v8::internal |
| 3458 | 3458 |
| 3459 #endif // V8_TARGET_ARCH_IA32 | 3459 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |