OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/codegen.h" | 5 #include "src/codegen.h" |
6 #include "src/deoptimizer.h" | 6 #include "src/deoptimizer.h" |
7 #include "src/full-codegen/full-codegen.h" | 7 #include "src/full-codegen/full-codegen.h" |
8 #include "src/register-configuration.h" | 8 #include "src/register-configuration.h" |
9 #include "src/safepoint-table.h" | 9 #include "src/safepoint-table.h" |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 99 } |
100 | 100 |
101 | 101 |
102 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 102 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
103 for (int i = 0; i < DoubleRegister::kNumRegisters; ++i) { | 103 for (int i = 0; i < DoubleRegister::kNumRegisters; ++i) { |
104 double double_value = input_->GetDoubleRegister(i); | 104 double double_value = input_->GetDoubleRegister(i); |
105 output_frame->SetDoubleRegister(i, double_value); | 105 output_frame->SetDoubleRegister(i, double_value); |
106 } | 106 } |
107 } | 107 } |
108 | 108 |
109 bool Deoptimizer::HasAlignmentPadding(SharedFunctionInfo* shared) { | |
110 // There is no dynamic alignment padding on PPC in the input frame. | |
111 return false; | |
112 } | |
113 | |
114 | |
115 #define __ masm()-> | 109 #define __ masm()-> |
116 | 110 |
117 // This code tries to be close to ia32 code so that any changes can be | 111 // This code tries to be close to ia32 code so that any changes can be |
118 // easily ported. | 112 // easily ported. |
119 void Deoptimizer::TableEntryGenerator::Generate() { | 113 void Deoptimizer::TableEntryGenerator::Generate() { |
120 GeneratePrologue(); | 114 GeneratePrologue(); |
121 | 115 |
122 // Unlike on ARM we don't save all the registers, just the useful ones. | 116 // Unlike on ARM we don't save all the registers, just the useful ones. |
123 // For the rest, there are gaps on the stack, so the offsets remain the same. | 117 // For the rest, there are gaps on the stack, so the offsets remain the same. |
124 const int kNumberOfRegisters = Register::kNumRegisters; | 118 const int kNumberOfRegisters = Register::kNumRegisters; |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 | 329 |
336 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 330 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
337 DCHECK(FLAG_enable_embedded_constant_pool); | 331 DCHECK(FLAG_enable_embedded_constant_pool); |
338 SetFrameSlot(offset, value); | 332 SetFrameSlot(offset, value); |
339 } | 333 } |
340 | 334 |
341 | 335 |
342 #undef __ | 336 #undef __ |
343 } // namespace internal | 337 } // namespace internal |
344 } // namespace v8 | 338 } // namespace v8 |
OLD | NEW |