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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 __ Set(rax, EQUAL); | 1318 __ Set(rax, EQUAL); |
1319 __ ret(0); | 1319 __ ret(0); |
1320 } | 1320 } |
1321 __ bind(&runtime_call); | 1321 __ bind(&runtime_call); |
1322 | 1322 |
1323 if (cc == equal) { | 1323 if (cc == equal) { |
1324 { | 1324 { |
1325 FrameScope scope(masm, StackFrame::INTERNAL); | 1325 FrameScope scope(masm, StackFrame::INTERNAL); |
1326 __ Push(rdx); | 1326 __ Push(rdx); |
1327 __ Push(rax); | 1327 __ Push(rax); |
1328 __ CallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals); | 1328 __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual); |
1329 } | 1329 } |
1330 // Turn true into 0 and false into some non-zero value. | 1330 // Turn true into 0 and false into some non-zero value. |
1331 STATIC_ASSERT(EQUAL == 0); | 1331 STATIC_ASSERT(EQUAL == 0); |
1332 __ LoadRoot(rdx, Heap::kTrueValueRootIndex); | 1332 __ LoadRoot(rdx, Heap::kTrueValueRootIndex); |
1333 __ subp(rax, rdx); | 1333 __ subp(rax, rdx); |
1334 __ Ret(); | 1334 __ Ret(); |
1335 } else { | 1335 } else { |
1336 // Push arguments below the return address to prepare jump to builtin. | 1336 // Push arguments below the return address to prepare jump to builtin. |
1337 __ PopReturnAddressTo(rcx); | 1337 __ PopReturnAddressTo(rcx); |
1338 __ Push(rdx); | 1338 __ Push(rdx); |
(...skipping 4304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5643 NULL); | 5643 NULL); |
5644 } | 5644 } |
5645 | 5645 |
5646 | 5646 |
5647 #undef __ | 5647 #undef __ |
5648 | 5648 |
5649 } // namespace internal | 5649 } // namespace internal |
5650 } // namespace v8 | 5650 } // namespace v8 |
5651 | 5651 |
5652 #endif // V8_TARGET_ARCH_X64 | 5652 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |