OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/arm64/frames-arm64.h" | 5 #include "src/arm64/frames-arm64.h" |
6 #include "src/codegen.h" | 6 #include "src/codegen.h" |
7 #include "src/deoptimizer.h" | 7 #include "src/deoptimizer.h" |
8 #include "src/full-codegen/full-codegen.h" | 8 #include "src/full-codegen/full-codegen.h" |
9 #include "src/register-configuration.h" | 9 #include "src/register-configuration.h" |
10 #include "src/safepoint-table.h" | 10 #include "src/safepoint-table.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 void Deoptimizer::TableEntryGenerator::Generate() { | 118 void Deoptimizer::TableEntryGenerator::Generate() { |
119 GeneratePrologue(); | 119 GeneratePrologue(); |
120 | 120 |
121 // TODO(all): This code needs to be revisited. We probably only need to save | 121 // TODO(all): This code needs to be revisited. We probably only need to save |
122 // caller-saved registers here. Callee-saved registers can be stored directly | 122 // caller-saved registers here. Callee-saved registers can be stored directly |
123 // in the input frame. | 123 // in the input frame. |
124 | 124 |
125 // Save all allocatable floating point registers. | 125 // Save all allocatable floating point registers. |
126 CPURegList saved_fp_registers( | 126 CPURegList saved_fp_registers( |
127 CPURegister::kFPRegister, kDRegSizeInBits, | 127 CPURegister::kFPRegister, kDRegSizeInBits, |
128 RegisterConfiguration::ArchDefault()->allocatable_double_codes_mask()); | 128 RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT) |
| 129 ->allocatable_double_codes_mask()); |
129 __ PushCPURegList(saved_fp_registers); | 130 __ PushCPURegList(saved_fp_registers); |
130 | 131 |
131 // We save all the registers expcept jssp, sp and lr. | 132 // We save all the registers expcept jssp, sp and lr. |
132 CPURegList saved_registers(CPURegister::kRegister, kXRegSizeInBits, 0, 27); | 133 CPURegList saved_registers(CPURegister::kRegister, kXRegSizeInBits, 0, 27); |
133 saved_registers.Combine(fp); | 134 saved_registers.Combine(fp); |
134 __ PushCPURegList(saved_registers); | 135 __ PushCPURegList(saved_registers); |
135 | 136 |
136 __ Mov(x3, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); | 137 __ Mov(x3, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); |
137 __ Str(fp, MemOperand(x3)); | 138 __ Str(fp, MemOperand(x3)); |
138 | 139 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 358 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
358 // No embedded constant pool support. | 359 // No embedded constant pool support. |
359 UNREACHABLE(); | 360 UNREACHABLE(); |
360 } | 361 } |
361 | 362 |
362 | 363 |
363 #undef __ | 364 #undef __ |
364 | 365 |
365 } // namespace internal | 366 } // namespace internal |
366 } // namespace v8 | 367 } // namespace v8 |
OLD | NEW |