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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
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/full-codegen.h" | 9 #include "src/full-codegen/full-codegen.h" |
10 #include "src/register-configuration.h" | 10 #include "src/register-configuration.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 intptr_t handler = | 93 intptr_t handler = |
94 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler()); | 94 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler()); |
95 int params = descriptor->GetHandlerParameterCount(); | 95 int params = descriptor->GetHandlerParameterCount(); |
96 output_frame->SetRegister(rax.code(), params); | 96 output_frame->SetRegister(rax.code(), params); |
97 output_frame->SetRegister(rbx.code(), handler); | 97 output_frame->SetRegister(rbx.code(), handler); |
98 } | 98 } |
99 | 99 |
100 | 100 |
101 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 101 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
102 for (int i = 0; i < XMMRegister::kMaxNumRegisters; ++i) { | 102 for (int i = 0; i < XMMRegister::kMaxNumRegisters; ++i) { |
103 double double_value = input_->GetDoubleRegister(i); | 103 Float64 double_value = input_->GetDoubleRegister(i); |
104 output_frame->SetDoubleRegister(i, double_value); | 104 output_frame->SetDoubleRegister(i, double_value); |
105 } | 105 } |
106 } | 106 } |
107 | 107 |
108 #define __ masm()-> | 108 #define __ masm()-> |
109 | 109 |
110 void Deoptimizer::TableEntryGenerator::Generate() { | 110 void Deoptimizer::TableEntryGenerator::Generate() { |
111 GeneratePrologue(); | 111 GeneratePrologue(); |
112 | 112 |
113 // Save all general purpose registers before messing with them. | 113 // Save all general purpose registers before messing with them. |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 } | 333 } |
334 | 334 |
335 | 335 |
336 #undef __ | 336 #undef __ |
337 | 337 |
338 | 338 |
339 } // namespace internal | 339 } // namespace internal |
340 } // namespace v8 | 340 } // namespace v8 |
341 | 341 |
342 #endif // V8_TARGET_ARCH_X64 | 342 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |