| 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/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/heap.h" | 10 #include "vm/heap.h" |
| (...skipping 2194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2205 } | 2205 } |
| 2206 } | 2206 } |
| 2207 | 2207 |
| 2208 | 2208 |
| 2209 // On entry to a function compiled for OSR, the caller's frame pointer, the | 2209 // On entry to a function compiled for OSR, the caller's frame pointer, the |
| 2210 // stack locals, and any copied parameters are already in place. The frame | 2210 // stack locals, and any copied parameters are already in place. The frame |
| 2211 // pointer is already set up. The PC marker is not correct for the | 2211 // pointer is already set up. The PC marker is not correct for the |
| 2212 // optimized function and there may be extra space for spill slots to | 2212 // optimized function and there may be extra space for spill slots to |
| 2213 // allocate. | 2213 // allocate. |
| 2214 void Assembler::EnterOsrFrame(intptr_t extra_size) { | 2214 void Assembler::EnterOsrFrame(intptr_t extra_size) { |
| 2215 Comment("EnterOsrFrame"); |
| 2215 Label dart_entry; | 2216 Label dart_entry; |
| 2216 call(&dart_entry); | 2217 call(&dart_entry); |
| 2217 Bind(&dart_entry); | 2218 Bind(&dart_entry); |
| 2218 // The runtime system assumes that the code marker address is | 2219 // The runtime system assumes that the code marker address is |
| 2219 // kEntryPointToPcMarkerOffset bytes from the entry. Since there is no | 2220 // kEntryPointToPcMarkerOffset bytes from the entry. Since there is no |
| 2220 // code to set up the frame pointer, the address needs to be adjusted. | 2221 // code to set up the frame pointer, the address needs to be adjusted. |
| 2221 const intptr_t offset = kEntryPointToPcMarkerOffset - CodeSize(); | 2222 const intptr_t offset = kEntryPointToPcMarkerOffset - CodeSize(); |
| 2222 if (offset != 0) { | 2223 if (offset != 0) { |
| 2223 addl(Address(ESP, 0), Immediate(offset)); | 2224 addl(Address(ESP, 0), Immediate(offset)); |
| 2224 } | 2225 } |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2402 | 2403 |
| 2403 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 2404 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 2404 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 2405 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 2405 return xmm_reg_names[reg]; | 2406 return xmm_reg_names[reg]; |
| 2406 } | 2407 } |
| 2407 | 2408 |
| 2408 | 2409 |
| 2409 } // namespace dart | 2410 } // namespace dart |
| 2410 | 2411 |
| 2411 #endif // defined TARGET_ARCH_IA32 | 2412 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |