| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
| 9 #include "src/full-codegen.h" | 9 #include "src/full-codegen.h" |
| 10 #include "src/safepoint-table.h" | 10 #include "src/safepoint-table.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { | 128 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { |
| 129 // There is no dynamic alignment padding on ARM in the input frame. | 129 // There is no dynamic alignment padding on ARM in the input frame. |
| 130 return false; | 130 return false; |
| 131 } | 131 } |
| 132 | 132 |
| 133 | 133 |
| 134 #define __ masm()-> | 134 #define __ masm()-> |
| 135 | 135 |
| 136 // This code tries to be close to ia32 code so that any changes can be | 136 // This code tries to be close to ia32 code so that any changes can be |
| 137 // easily ported. | 137 // easily ported. |
| 138 void Deoptimizer::EntryGenerator::Generate() { | 138 void Deoptimizer::TableEntryGenerator::Generate() { |
| 139 GeneratePrologue(); | 139 GeneratePrologue(); |
| 140 | 140 |
| 141 // Save all general purpose registers before messing with them. | 141 // Save all general purpose registers before messing with them. |
| 142 const int kNumberOfRegisters = Register::kNumRegisters; | 142 const int kNumberOfRegisters = Register::kNumRegisters; |
| 143 | 143 |
| 144 // Everything but pc, lr and ip which will be saved but not restored. | 144 // Everything but pc, lr and ip which will be saved but not restored. |
| 145 RegList restored_regs = kJSCallerSaved | kCalleeSaved | ip.bit(); | 145 RegList restored_regs = kJSCallerSaved | kCalleeSaved | ip.bit(); |
| 146 | 146 |
| 147 const int kDoubleRegsSize = | 147 const int kDoubleRegsSize = |
| 148 kDoubleSize * DwVfpRegister::kMaxNumAllocatableRegisters; | 148 kDoubleSize * DwVfpRegister::kMaxNumAllocatableRegisters; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 354 |
| 355 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 355 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
| 356 DCHECK(FLAG_enable_ool_constant_pool); | 356 DCHECK(FLAG_enable_ool_constant_pool); |
| 357 SetFrameSlot(offset, value); | 357 SetFrameSlot(offset, value); |
| 358 } | 358 } |
| 359 | 359 |
| 360 | 360 |
| 361 #undef __ | 361 #undef __ |
| 362 | 362 |
| 363 } } // namespace v8::internal | 363 } } // namespace v8::internal |
| OLD | NEW |