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

Side by Side Diff: src/x64/deoptimizer-x64.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 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 // Fill the frame content from the actual data on the frame. 98 // Fill the frame content from the actual data on the frame.
99 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { 99 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) {
100 input_->SetFrameSlot(i, Memory::uintptr_at(tos + i)); 100 input_->SetFrameSlot(i, Memory::uintptr_at(tos + i));
101 } 101 }
102 } 102 }
103 103
104 104
105 void Deoptimizer::SetPlatformCompiledStubRegisters( 105 void Deoptimizer::SetPlatformCompiledStubRegisters(
106 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { 106 FrameDescription* output_frame, CodeStubDescriptor* descriptor) {
107 intptr_t handler = 107 intptr_t handler =
108 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler()); 108 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler());
109 int params = descriptor->GetHandlerParameterCount(); 109 int params = descriptor->GetHandlerParameterCount();
110 output_frame->SetRegister(rax.code(), params); 110 output_frame->SetRegister(rax.code(), params);
111 output_frame->SetRegister(rbx.code(), handler); 111 output_frame->SetRegister(rbx.code(), handler);
112 } 112 }
113 113
114 114
115 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 115 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
116 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); ++i) { 116 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); ++i) {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 UNREACHABLE(); 343 UNREACHABLE();
344 } 344 }
345 345
346 346
347 #undef __ 347 #undef __
348 348
349 349
350 } } // namespace v8::internal 350 } } // namespace v8::internal
351 351
352 #endif // V8_TARGET_ARCH_X64 352 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698