| 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_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 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 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1823 // TOS + 4: SubtypeTestCache. | 1823 // TOS + 4: SubtypeTestCache. |
| 1824 // Result in ECX: null -> not found, otherwise result (true or false). | 1824 // Result in ECX: null -> not found, otherwise result (true or false). |
| 1825 void StubCode::GenerateSubtype4TestCacheStub(Assembler* assembler) { | 1825 void StubCode::GenerateSubtype4TestCacheStub(Assembler* assembler) { |
| 1826 GenerateSubtypeNTestCacheStub(assembler, 4); | 1826 GenerateSubtypeNTestCacheStub(assembler, 4); |
| 1827 } | 1827 } |
| 1828 | 1828 |
| 1829 | 1829 |
| 1830 // Return the current stack pointer address, used to do stack alignment checks. | 1830 // Return the current stack pointer address, used to do stack alignment checks. |
| 1831 // TOS + 0: return address | 1831 // TOS + 0: return address |
| 1832 // Result in EAX. | 1832 // Result in EAX. |
| 1833 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { | 1833 void StubCode::GenerateGetCStackPointerStub(Assembler* assembler) { |
| 1834 __ leal(EAX, Address(ESP, kWordSize)); | 1834 __ leal(EAX, Address(ESP, kWordSize)); |
| 1835 __ ret(); | 1835 __ ret(); |
| 1836 } | 1836 } |
| 1837 | 1837 |
| 1838 | 1838 |
| 1839 // Jump to a frame on the call stack. | 1839 // Jump to a frame on the call stack. |
| 1840 // TOS + 0: return address | 1840 // TOS + 0: return address |
| 1841 // TOS + 1: program_counter | 1841 // TOS + 1: program_counter |
| 1842 // TOS + 2: stack_pointer | 1842 // TOS + 2: stack_pointer |
| 1843 // TOS + 3: frame_pointer | 1843 // TOS + 3: frame_pointer |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2135 } | 2135 } |
| 2136 | 2136 |
| 2137 | 2137 |
| 2138 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2138 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2139 __ int3(); | 2139 __ int3(); |
| 2140 } | 2140 } |
| 2141 | 2141 |
| 2142 } // namespace dart | 2142 } // namespace dart |
| 2143 | 2143 |
| 2144 #endif // defined TARGET_ARCH_IA32 | 2144 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |