| 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/heap.h" | 9 #include "vm/heap.h" |
| 10 #include "vm/memory_region.h" | 10 #include "vm/memory_region.h" |
| (...skipping 2354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2365 | 2365 |
| 2366 // Restore volatile CPU registers. | 2366 // Restore volatile CPU registers. |
| 2367 for (intptr_t i = kNumberOfVolatileCpuRegisters - 1; i >= 0; i--) { | 2367 for (intptr_t i = kNumberOfVolatileCpuRegisters - 1; i >= 0; i--) { |
| 2368 popq(volatile_cpu_registers[i]); | 2368 popq(volatile_cpu_registers[i]); |
| 2369 } | 2369 } |
| 2370 | 2370 |
| 2371 leave(); | 2371 leave(); |
| 2372 } | 2372 } |
| 2373 | 2373 |
| 2374 | 2374 |
| 2375 void Assembler::CallRuntime(const RuntimeEntry& entry) { | 2375 void Assembler::CallRuntime(const RuntimeEntry& entry, |
| 2376 entry.Call(this); | 2376 intptr_t argument_count) { |
| 2377 entry.Call(this, argument_count); |
| 2377 } | 2378 } |
| 2378 | 2379 |
| 2379 | 2380 |
| 2380 void Assembler::EnterDartFrame(intptr_t frame_size) { | 2381 void Assembler::EnterDartFrame(intptr_t frame_size) { |
| 2381 EnterFrame(0); | 2382 EnterFrame(0); |
| 2382 Label dart_entry; | 2383 Label dart_entry; |
| 2383 call(&dart_entry); | 2384 call(&dart_entry); |
| 2384 Bind(&dart_entry); | 2385 Bind(&dart_entry); |
| 2385 // The runtime system assumes that the code marker address is | 2386 // The runtime system assumes that the code marker address is |
| 2386 // kEntryPointToPcMarkerOffset bytes from the entry. If there is any code | 2387 // kEntryPointToPcMarkerOffset bytes from the entry. If there is any code |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2643 | 2644 |
| 2644 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 2645 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 2645 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 2646 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 2646 return xmm_reg_names[reg]; | 2647 return xmm_reg_names[reg]; |
| 2647 } | 2648 } |
| 2648 | 2649 |
| 2649 | 2650 |
| 2650 } // namespace dart | 2651 } // namespace dart |
| 2651 | 2652 |
| 2652 #endif // defined TARGET_ARCH_X64 | 2653 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |