| 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 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1873 // Result in RCX: null -> not found, otherwise result (true or false). | 1873 // Result in RCX: null -> not found, otherwise result (true or false). |
| 1874 void StubCode::GenerateSubtype4TestCacheStub(Assembler* assembler) { | 1874 void StubCode::GenerateSubtype4TestCacheStub(Assembler* assembler) { |
| 1875 GenerateSubtypeNTestCacheStub(assembler, 4); | 1875 GenerateSubtypeNTestCacheStub(assembler, 4); |
| 1876 } | 1876 } |
| 1877 | 1877 |
| 1878 | 1878 |
| 1879 // Return the current stack pointer address, used to stack alignment | 1879 // Return the current stack pointer address, used to stack alignment |
| 1880 // checks. | 1880 // checks. |
| 1881 // TOS + 0: return address | 1881 // TOS + 0: return address |
| 1882 // Result in RAX. | 1882 // Result in RAX. |
| 1883 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { | 1883 void StubCode::GenerateGetCStackPointerStub(Assembler* assembler) { |
| 1884 __ leaq(RAX, Address(RSP, kWordSize)); | 1884 __ leaq(RAX, Address(RSP, kWordSize)); |
| 1885 __ ret(); | 1885 __ ret(); |
| 1886 } | 1886 } |
| 1887 | 1887 |
| 1888 | 1888 |
| 1889 // Jump to a frame on the call stack. | 1889 // Jump to a frame on the call stack. |
| 1890 // TOS + 0: return address | 1890 // TOS + 0: return address |
| 1891 // Arg1: program counter | 1891 // Arg1: program counter |
| 1892 // Arg2: stack pointer | 1892 // Arg2: stack pointer |
| 1893 // Arg3: frame_pointer | 1893 // Arg3: frame_pointer |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2319 } | 2319 } |
| 2320 | 2320 |
| 2321 | 2321 |
| 2322 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2322 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2323 __ int3(); | 2323 __ int3(); |
| 2324 } | 2324 } |
| 2325 | 2325 |
| 2326 } // namespace dart | 2326 } // namespace dart |
| 2327 | 2327 |
| 2328 #endif // defined TARGET_ARCH_X64 | 2328 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |