| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic/handler-compiler.h" | 10 #include "src/ic/handler-compiler.h" |
| (...skipping 3273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3284 __ JumpIfNotRoot(rcx, Heap::kBooleanMapRootIndex, &miss, miss_distance); | 3284 __ JumpIfNotRoot(rcx, Heap::kBooleanMapRootIndex, &miss, miss_distance); |
| 3285 __ JumpIfNotRoot(rbx, Heap::kBooleanMapRootIndex, &miss, miss_distance); | 3285 __ JumpIfNotRoot(rbx, Heap::kBooleanMapRootIndex, &miss, miss_distance); |
| 3286 if (op() != Token::EQ_STRICT && is_strong(strength())) { | 3286 if (op() != Token::EQ_STRICT && is_strong(strength())) { |
| 3287 __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion); | 3287 __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion); |
| 3288 } else { | 3288 } else { |
| 3289 if (!Token::IsEqualityOp(op())) { | 3289 if (!Token::IsEqualityOp(op())) { |
| 3290 __ movp(rax, FieldOperand(rax, Oddball::kToNumberOffset)); | 3290 __ movp(rax, FieldOperand(rax, Oddball::kToNumberOffset)); |
| 3291 __ AssertSmi(rax); | 3291 __ AssertSmi(rax); |
| 3292 __ movp(rdx, FieldOperand(rdx, Oddball::kToNumberOffset)); | 3292 __ movp(rdx, FieldOperand(rdx, Oddball::kToNumberOffset)); |
| 3293 __ AssertSmi(rdx); | 3293 __ AssertSmi(rdx); |
| 3294 __ xchgp(rax, rdx); | 3294 __ pushq(rax); |
| 3295 __ movq(rax, rdx); |
| 3296 __ popq(rdx); |
| 3295 } | 3297 } |
| 3296 __ subp(rax, rdx); | 3298 __ subp(rax, rdx); |
| 3297 __ Ret(); | 3299 __ Ret(); |
| 3298 } | 3300 } |
| 3299 | 3301 |
| 3300 __ bind(&miss); | 3302 __ bind(&miss); |
| 3301 GenerateMiss(masm); | 3303 GenerateMiss(masm); |
| 3302 } | 3304 } |
| 3303 | 3305 |
| 3304 | 3306 |
| (...skipping 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5414 kStackSpace, nullptr, return_value_operand, NULL); | 5416 kStackSpace, nullptr, return_value_operand, NULL); |
| 5415 } | 5417 } |
| 5416 | 5418 |
| 5417 | 5419 |
| 5418 #undef __ | 5420 #undef __ |
| 5419 | 5421 |
| 5420 } // namespace internal | 5422 } // namespace internal |
| 5421 } // namespace v8 | 5423 } // namespace v8 |
| 5422 | 5424 |
| 5423 #endif // V8_TARGET_ARCH_X64 | 5425 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |