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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3044 __ JumpIfNotRoot(ecx, Heap::kBooleanMapRootIndex, &miss, miss_distance); | 3044 __ JumpIfNotRoot(ecx, Heap::kBooleanMapRootIndex, &miss, miss_distance); |
3045 __ JumpIfNotRoot(ebx, Heap::kBooleanMapRootIndex, &miss, miss_distance); | 3045 __ JumpIfNotRoot(ebx, Heap::kBooleanMapRootIndex, &miss, miss_distance); |
3046 if (op() != Token::EQ_STRICT && is_strong(strength())) { | 3046 if (op() != Token::EQ_STRICT && is_strong(strength())) { |
3047 __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion); | 3047 __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion); |
3048 } else { | 3048 } else { |
3049 if (!Token::IsEqualityOp(op())) { | 3049 if (!Token::IsEqualityOp(op())) { |
3050 __ mov(eax, FieldOperand(eax, Oddball::kToNumberOffset)); | 3050 __ mov(eax, FieldOperand(eax, Oddball::kToNumberOffset)); |
3051 __ AssertSmi(eax); | 3051 __ AssertSmi(eax); |
3052 __ mov(edx, FieldOperand(edx, Oddball::kToNumberOffset)); | 3052 __ mov(edx, FieldOperand(edx, Oddball::kToNumberOffset)); |
3053 __ AssertSmi(edx); | 3053 __ AssertSmi(edx); |
3054 __ xchg(eax, edx); | 3054 __ push(eax); |
| 3055 __ mov(eax, edx); |
| 3056 __ pop(edx); |
3055 } | 3057 } |
3056 __ sub(eax, edx); | 3058 __ sub(eax, edx); |
3057 __ Ret(); | 3059 __ Ret(); |
3058 } | 3060 } |
3059 | 3061 |
3060 __ bind(&miss); | 3062 __ bind(&miss); |
3061 GenerateMiss(masm); | 3063 GenerateMiss(masm); |
3062 } | 3064 } |
3063 | 3065 |
3064 | 3066 |
(...skipping 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5350 Operand(ebp, 7 * kPointerSize), NULL); | 5352 Operand(ebp, 7 * kPointerSize), NULL); |
5351 } | 5353 } |
5352 | 5354 |
5353 | 5355 |
5354 #undef __ | 5356 #undef __ |
5355 | 5357 |
5356 } // namespace internal | 5358 } // namespace internal |
5357 } // namespace v8 | 5359 } // namespace v8 |
5358 | 5360 |
5359 #endif // V8_TARGET_ARCH_X87 | 5361 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |