OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 | 87 |
88 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { | 88 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { |
89 // There is no dynamic alignment padding on ARM64 in the input frame. | 89 // There is no dynamic alignment padding on ARM64 in the input frame. |
90 return false; | 90 return false; |
91 } | 91 } |
92 | 92 |
93 | 93 |
94 void Deoptimizer::SetPlatformCompiledStubRegisters( | 94 void Deoptimizer::SetPlatformCompiledStubRegisters( |
95 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { | 95 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { |
96 ApiFunction function(descriptor->deoptimization_handler_); | 96 ApiFunction function(descriptor->deoptimization_handler()); |
97 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); | 97 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); |
98 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); | 98 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); |
99 int params = descriptor->GetHandlerParameterCount(); | 99 int params = descriptor->GetHandlerParameterCount(); |
100 output_frame->SetRegister(x0.code(), params); | 100 output_frame->SetRegister(x0.code(), params); |
101 output_frame->SetRegister(x1.code(), handler); | 101 output_frame->SetRegister(x1.code(), handler); |
102 } | 102 } |
103 | 103 |
104 | 104 |
105 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 105 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
106 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { | 106 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 | 376 |
377 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 377 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
378 // No out-of-line constant pool support. | 378 // No out-of-line constant pool support. |
379 UNREACHABLE(); | 379 UNREACHABLE(); |
380 } | 380 } |
381 | 381 |
382 | 382 |
383 #undef __ | 383 #undef __ |
384 | 384 |
385 } } // namespace v8::internal | 385 } } // namespace v8::internal |
OLD | NEW |