Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: src/arm/deoptimizer-arm.cc

Issue 552803002: Get CallInterfaceDescriptor directly from CodeStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 // Fill the frame content from the actual data on the frame. 96 // Fill the frame content from the actual data on the frame.
97 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { 97 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) {
98 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); 98 input_->SetFrameSlot(i, Memory::uint32_at(tos + i));
99 } 99 }
100 } 100 }
101 101
102 102
103 void Deoptimizer::SetPlatformCompiledStubRegisters( 103 void Deoptimizer::SetPlatformCompiledStubRegisters(
104 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { 104 FrameDescription* output_frame, CodeStubDescriptor* descriptor) {
105 ApiFunction function(descriptor->deoptimization_handler()); 105 ApiFunction function(descriptor->deoptimization_handler());
106 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); 106 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_);
107 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); 107 intptr_t handler = reinterpret_cast<intptr_t>(xref.address());
108 int params = descriptor->GetHandlerParameterCount(); 108 int params = descriptor->GetHandlerParameterCount();
109 output_frame->SetRegister(r0.code(), params); 109 output_frame->SetRegister(r0.code(), params);
110 output_frame->SetRegister(r1.code(), handler); 110 output_frame->SetRegister(r1.code(), handler);
111 } 111 }
112 112
113 113
114 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 114 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 345
346 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 346 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
347 DCHECK(FLAG_enable_ool_constant_pool); 347 DCHECK(FLAG_enable_ool_constant_pool);
348 SetFrameSlot(offset, value); 348 SetFrameSlot(offset, value);
349 } 349 }
350 350
351 351
352 #undef __ 352 #undef __
353 353
354 } } // namespace v8::internal 354 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | src/code-stubs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698