OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1511 __ Bind(&stepping); | 1511 __ Bind(&stepping); |
1512 __ EnterStubFrame(); | 1512 __ EnterStubFrame(); |
1513 __ pushq(RBX); // Preserve IC data object. | 1513 __ pushq(RBX); // Preserve IC data object. |
1514 __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0); | 1514 __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0); |
1515 __ popq(RBX); | 1515 __ popq(RBX); |
1516 __ LeaveStubFrame(); | 1516 __ LeaveStubFrame(); |
1517 __ jmp(&done_stepping, Assembler::kNearJump); | 1517 __ jmp(&done_stepping, Assembler::kNearJump); |
1518 } | 1518 } |
1519 | 1519 |
1520 | 1520 |
| 1521 void StubCode::GenerateOneArgUnoptimizedStaticCallStub(Assembler* assembler) { |
| 1522 GenerateUsageCounterIncrement(assembler, RCX); |
| 1523 GenerateNArgsCheckInlineCacheStub( |
| 1524 assembler, 1, kStaticCallMissHandlerOneArgRuntimeEntry); |
| 1525 } |
| 1526 |
| 1527 |
1521 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) { | 1528 void StubCode::GenerateTwoArgsUnoptimizedStaticCallStub(Assembler* assembler) { |
1522 GenerateUsageCounterIncrement(assembler, RCX); | 1529 GenerateUsageCounterIncrement(assembler, RCX); |
1523 GenerateNArgsCheckInlineCacheStub( | 1530 GenerateNArgsCheckInlineCacheStub( |
1524 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry); | 1531 assembler, 2, kStaticCallMissHandlerTwoArgsRuntimeEntry); |
1525 } | 1532 } |
1526 | 1533 |
1527 | 1534 |
1528 // Stub for compiling a function and jumping to the compiled code. | 1535 // Stub for compiling a function and jumping to the compiled code. |
1529 // RCX: IC-Data (for methods). | 1536 // RCX: IC-Data (for methods). |
1530 // R10: Arguments descriptor. | 1537 // R10: Arguments descriptor. |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1905 | 1912 |
1906 __ movq(left, Address(RSP, 2 * kWordSize)); | 1913 __ movq(left, Address(RSP, 2 * kWordSize)); |
1907 __ movq(right, Address(RSP, 1 * kWordSize)); | 1914 __ movq(right, Address(RSP, 1 * kWordSize)); |
1908 GenerateIdenticalWithNumberCheckStub(assembler, left, right); | 1915 GenerateIdenticalWithNumberCheckStub(assembler, left, right); |
1909 __ ret(); | 1916 __ ret(); |
1910 } | 1917 } |
1911 | 1918 |
1912 } // namespace dart | 1919 } // namespace dart |
1913 | 1920 |
1914 #endif // defined TARGET_ARCH_X64 | 1921 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |