| 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/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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { | 135 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { |
| 136 // There is no dynamic alignment padding on PPC in the input frame. | 136 // There is no dynamic alignment padding on PPC in the input frame. |
| 137 return false; | 137 return false; |
| 138 } | 138 } |
| 139 | 139 |
| 140 | 140 |
| 141 #define __ masm()-> | 141 #define __ masm()-> |
| 142 | 142 |
| 143 // This code tries to be close to ia32 code so that any changes can be | 143 // This code tries to be close to ia32 code so that any changes can be |
| 144 // easily ported. | 144 // easily ported. |
| 145 void Deoptimizer::EntryGenerator::Generate() { | 145 void Deoptimizer::TableEntryGenerator::Generate() { |
| 146 GeneratePrologue(); | 146 GeneratePrologue(); |
| 147 | 147 |
| 148 // Unlike on ARM we don't save all the registers, just the useful ones. | 148 // Unlike on ARM we don't save all the registers, just the useful ones. |
| 149 // For the rest, there are gaps on the stack, so the offsets remain the same. | 149 // For the rest, there are gaps on the stack, so the offsets remain the same. |
| 150 const int kNumberOfRegisters = Register::kNumRegisters; | 150 const int kNumberOfRegisters = Register::kNumRegisters; |
| 151 | 151 |
| 152 RegList restored_regs = kJSCallerSaved | kCalleeSaved; | 152 RegList restored_regs = kJSCallerSaved | kCalleeSaved; |
| 153 RegList saved_regs = restored_regs | sp.bit(); | 153 RegList saved_regs = restored_regs | sp.bit(); |
| 154 | 154 |
| 155 const int kDoubleRegsSize = | 155 const int kDoubleRegsSize = |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 357 |
| 358 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 358 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
| 359 // No out-of-line constant pool support. | 359 // No out-of-line constant pool support. |
| 360 UNREACHABLE(); | 360 UNREACHABLE(); |
| 361 } | 361 } |
| 362 | 362 |
| 363 | 363 |
| 364 #undef __ | 364 #undef __ |
| 365 } | 365 } |
| 366 } // namespace v8::internal | 366 } // namespace v8::internal |
| OLD | NEW |