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 #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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 // Fill the frame content from the actual data on the frame. | 99 // Fill the frame content from the actual data on the frame. |
100 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { | 100 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { |
101 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); | 101 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); |
102 } | 102 } |
103 } | 103 } |
104 | 104 |
105 | 105 |
106 void Deoptimizer::SetPlatformCompiledStubRegisters( | 106 void Deoptimizer::SetPlatformCompiledStubRegisters( |
107 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { | 107 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { |
108 ApiFunction function(descriptor->deoptimization_handler_); | 108 ApiFunction function(descriptor->deoptimization_handler()); |
109 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); | 109 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); |
110 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); | 110 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); |
111 int params = descriptor->GetHandlerParameterCount(); | 111 int params = descriptor->GetHandlerParameterCount(); |
112 output_frame->SetRegister(r0.code(), params); | 112 output_frame->SetRegister(r0.code(), params); |
113 output_frame->SetRegister(r1.code(), handler); | 113 output_frame->SetRegister(r1.code(), handler); |
114 } | 114 } |
115 | 115 |
116 | 116 |
117 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 117 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
118 for (int i = 0; i < DwVfpRegister::kMaxNumRegisters; ++i) { | 118 for (int i = 0; i < DwVfpRegister::kMaxNumRegisters; ++i) { |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 348 |
349 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 349 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
350 ASSERT(FLAG_enable_ool_constant_pool); | 350 ASSERT(FLAG_enable_ool_constant_pool); |
351 SetFrameSlot(offset, value); | 351 SetFrameSlot(offset, value); |
352 } | 352 } |
353 | 353 |
354 | 354 |
355 #undef __ | 355 #undef __ |
356 | 356 |
357 } } // namespace v8::internal | 357 } } // namespace v8::internal |
OLD | NEW |