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/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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 } | 89 } |
90 | 90 |
91 // Fill the frame content from the actual data on the frame. | 91 // Fill the frame content from the actual data on the frame. |
92 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { | 92 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { |
93 input_->SetFrameSlot(i, Memory::uint64_at(tos + i)); | 93 input_->SetFrameSlot(i, Memory::uint64_at(tos + i)); |
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 | 97 |
98 void Deoptimizer::SetPlatformCompiledStubRegisters( | 98 void Deoptimizer::SetPlatformCompiledStubRegisters( |
99 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { | 99 FrameDescription* output_frame, CodeStubDescriptor* descriptor) { |
100 ApiFunction function(descriptor->deoptimization_handler()); | 100 ApiFunction function(descriptor->deoptimization_handler()); |
101 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); | 101 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); |
102 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); | 102 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); |
103 int params = descriptor->GetHandlerParameterCount(); | 103 int params = descriptor->GetHandlerParameterCount(); |
104 output_frame->SetRegister(s0.code(), params); | 104 output_frame->SetRegister(s0.code(), params); |
105 output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize); | 105 output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize); |
106 output_frame->SetRegister(s2.code(), handler); | 106 output_frame->SetRegister(s2.code(), handler); |
107 } | 107 } |
108 | 108 |
109 | 109 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 370 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
371 // No out-of-line constant pool support. | 371 // No out-of-line constant pool support. |
372 UNREACHABLE(); | 372 UNREACHABLE(); |
373 } | 373 } |
374 | 374 |
375 | 375 |
376 #undef __ | 376 #undef __ |
377 | 377 |
378 | 378 |
379 } } // namespace v8::internal | 379 } } // namespace v8::internal |
OLD | NEW |