| 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 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1861 // TOS + 0: return address. | 1861 // TOS + 0: return address. |
| 1862 // TOS + 1: instantiator type arguments. | 1862 // TOS + 1: instantiator type arguments. |
| 1863 // TOS + 2: instance. | 1863 // TOS + 2: instance. |
| 1864 // TOS + 3: cache array. | 1864 // TOS + 3: cache array. |
| 1865 // Result in ECX: null -> not found, otherwise result (true or false). | 1865 // Result in ECX: null -> not found, otherwise result (true or false). |
| 1866 void StubCode::GenerateSubtype3TestCacheStub(Assembler* assembler) { | 1866 void StubCode::GenerateSubtype3TestCacheStub(Assembler* assembler) { |
| 1867 GenerateSubtypeNTestCacheStub(assembler, 3); | 1867 GenerateSubtypeNTestCacheStub(assembler, 3); |
| 1868 } | 1868 } |
| 1869 | 1869 |
| 1870 | 1870 |
| 1871 // Return the current stack pointer address, used to stack alignment | 1871 // Return the current stack pointer address, used to do stack alignment checks. |
| 1872 // checks. | |
| 1873 // TOS + 0: return address | 1872 // TOS + 0: return address |
| 1874 // Result in EAX. | 1873 // Result in EAX. |
| 1875 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { | 1874 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { |
| 1876 __ leal(EAX, Address(ESP, kWordSize)); | 1875 __ leal(EAX, Address(ESP, kWordSize)); |
| 1877 __ ret(); | 1876 __ ret(); |
| 1878 } | 1877 } |
| 1879 | 1878 |
| 1880 | 1879 |
| 1881 // Jump to the exception or error handler. | 1880 // Jump to the exception or error handler. |
| 1882 // TOS + 0: return address | 1881 // TOS + 0: return address |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2100 __ Bind(&done); | 2099 __ Bind(&done); |
| 2101 __ popl(temp); | 2100 __ popl(temp); |
| 2102 __ popl(right); | 2101 __ popl(right); |
| 2103 __ popl(left); | 2102 __ popl(left); |
| 2104 __ ret(); | 2103 __ ret(); |
| 2105 } | 2104 } |
| 2106 | 2105 |
| 2107 } // namespace dart | 2106 } // namespace dart |
| 2108 | 2107 |
| 2109 #endif // defined TARGET_ARCH_IA32 | 2108 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |