Chromium Code Reviews| 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/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/heap.h" | 10 #include "vm/heap.h" |
| (...skipping 2881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2892 movq(PP, Address(RSP, 1 * kWordSize)); | 2892 movq(PP, Address(RSP, 1 * kWordSize)); |
| 2893 movq(PP, Address(PP, -object_pool_pc_dist - offset)); | 2893 movq(PP, Address(PP, -object_pool_pc_dist - offset)); |
| 2894 | 2894 |
| 2895 if (frame_size != 0) { | 2895 if (frame_size != 0) { |
| 2896 subq(RSP, Immediate(frame_size)); | 2896 subq(RSP, Immediate(frame_size)); |
| 2897 } | 2897 } |
| 2898 } | 2898 } |
| 2899 | 2899 |
| 2900 | 2900 |
| 2901 void Assembler::EnterDartFrameWithInfo(intptr_t frame_size, | 2901 void Assembler::EnterDartFrameWithInfo(intptr_t frame_size, |
| 2902 Register new_pp, Register new_pc) { | 2902 Register new_pp, Register new_pc) { |
|
regis
2014/04/22 23:38:10
new_pc is not a good name. It is more like a pc_ma
zra
2014/04/23 17:18:45
Done.
| |
| 2903 if (new_pc == kNoRegister) { | 2903 if (new_pc == kNoRegister) { |
| 2904 EnterDartFrame(0); | 2904 EnterDartFrame(frame_size); |
|
regis
2014/04/22 23:38:10
bug?
zra
2014/04/23 17:18:45
I assume so, but I think we must have never passed
| |
| 2905 } else { | 2905 } else { |
| 2906 EnterFrame(0); | 2906 EnterFrame(0); |
| 2907 pushq(new_pc); | 2907 pushq(new_pc); |
| 2908 pushq(PP); | 2908 pushq(PP); |
| 2909 movq(PP, new_pp); | 2909 movq(PP, new_pp); |
| 2910 if (frame_size != 0) { | 2910 if (frame_size != 0) { |
| 2911 subq(RSP, Immediate(frame_size)); | 2911 subq(RSP, Immediate(frame_size)); |
| 2912 } | 2912 } |
| 2913 } | 2913 } |
| 2914 } | 2914 } |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3264 | 3264 |
| 3265 | 3265 |
| 3266 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3266 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3267 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 3267 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 3268 return xmm_reg_names[reg]; | 3268 return xmm_reg_names[reg]; |
| 3269 } | 3269 } |
| 3270 | 3270 |
| 3271 } // namespace dart | 3271 } // namespace dart |
| 3272 | 3272 |
| 3273 #endif // defined TARGET_ARCH_X64 | 3273 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |