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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 3323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3334 __ JumpIfNotRoot(ecx, Heap::kBooleanMapRootIndex, &miss, miss_distance); | 3334 __ JumpIfNotRoot(ecx, Heap::kBooleanMapRootIndex, &miss, miss_distance); |
3335 __ JumpIfNotRoot(ebx, Heap::kBooleanMapRootIndex, &miss, miss_distance); | 3335 __ JumpIfNotRoot(ebx, Heap::kBooleanMapRootIndex, &miss, miss_distance); |
3336 if (op() != Token::EQ_STRICT && is_strong(strength())) { | 3336 if (op() != Token::EQ_STRICT && is_strong(strength())) { |
3337 __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion); | 3337 __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion); |
3338 } else { | 3338 } else { |
3339 if (!Token::IsEqualityOp(op())) { | 3339 if (!Token::IsEqualityOp(op())) { |
3340 __ mov(eax, FieldOperand(eax, Oddball::kToNumberOffset)); | 3340 __ mov(eax, FieldOperand(eax, Oddball::kToNumberOffset)); |
3341 __ AssertSmi(eax); | 3341 __ AssertSmi(eax); |
3342 __ mov(edx, FieldOperand(edx, Oddball::kToNumberOffset)); | 3342 __ mov(edx, FieldOperand(edx, Oddball::kToNumberOffset)); |
3343 __ AssertSmi(edx); | 3343 __ AssertSmi(edx); |
3344 __ xchg(eax, edx); | 3344 __ push(eax); |
| 3345 __ mov(eax, edx); |
| 3346 __ pop(edx); |
3345 } | 3347 } |
3346 __ sub(eax, edx); | 3348 __ sub(eax, edx); |
3347 __ Ret(); | 3349 __ Ret(); |
3348 } | 3350 } |
3349 | 3351 |
3350 __ bind(&miss); | 3352 __ bind(&miss); |
3351 GenerateMiss(masm); | 3353 GenerateMiss(masm); |
3352 } | 3354 } |
3353 | 3355 |
3354 | 3356 |
(...skipping 2313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5668 Operand(ebp, 7 * kPointerSize), NULL); | 5670 Operand(ebp, 7 * kPointerSize), NULL); |
5669 } | 5671 } |
5670 | 5672 |
5671 | 5673 |
5672 #undef __ | 5674 #undef __ |
5673 | 5675 |
5674 } // namespace internal | 5676 } // namespace internal |
5675 } // namespace v8 | 5677 } // namespace v8 |
5676 | 5678 |
5677 #endif // V8_TARGET_ARCH_IA32 | 5679 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |