OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); | 86 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); |
87 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); | 87 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); |
88 int params = descriptor->GetHandlerParameterCount(); | 88 int params = descriptor->GetHandlerParameterCount(); |
89 output_frame->SetRegister(a0.code(), params); | 89 output_frame->SetRegister(a0.code(), params); |
90 output_frame->SetRegister(a1.code(), handler); | 90 output_frame->SetRegister(a1.code(), handler); |
91 } | 91 } |
92 | 92 |
93 | 93 |
94 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 94 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
95 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { | 95 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { |
96 double double_value = input_->GetDoubleRegister(i); | 96 Float64 double_value = input_->GetDoubleRegister(i); |
97 output_frame->SetDoubleRegister(i, double_value); | 97 output_frame->SetDoubleRegister(i, double_value); |
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 #define __ masm()-> | 101 #define __ masm()-> |
102 | 102 |
103 | 103 |
104 // This code tries to be close to ia32 code so that any changes can be | 104 // This code tries to be close to ia32 code so that any changes can be |
105 // easily ported. | 105 // easily ported. |
106 void Deoptimizer::TableEntryGenerator::Generate() { | 106 void Deoptimizer::TableEntryGenerator::Generate() { |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // No embedded constant pool support. | 382 // No embedded constant pool support. |
383 UNREACHABLE(); | 383 UNREACHABLE(); |
384 } | 384 } |
385 | 385 |
386 | 386 |
387 #undef __ | 387 #undef __ |
388 | 388 |
389 | 389 |
390 } // namespace internal | 390 } // namespace internal |
391 } // namespace v8 | 391 } // namespace v8 |
OLD | NEW |