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

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

Issue 352583002: The IC exposes a register definition. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 6 years, 5 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
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Fill the frame content from the actual data on the frame. 101 // Fill the frame content from the actual data on the frame.
102 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { 102 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) {
103 input_->SetFrameSlot(i, Memory::uintptr_at(tos + i)); 103 input_->SetFrameSlot(i, Memory::uintptr_at(tos + i));
104 } 104 }
105 } 105 }
106 106
107 107
108 void Deoptimizer::SetPlatformCompiledStubRegisters( 108 void Deoptimizer::SetPlatformCompiledStubRegisters(
109 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { 109 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) {
110 intptr_t handler = 110 intptr_t handler =
111 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler_); 111 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler());
112 int params = descriptor->GetHandlerParameterCount(); 112 int params = descriptor->GetHandlerParameterCount();
113 output_frame->SetRegister(rax.code(), params); 113 output_frame->SetRegister(rax.code(), params);
114 output_frame->SetRegister(rbx.code(), handler); 114 output_frame->SetRegister(rbx.code(), handler);
115 } 115 }
116 116
117 117
118 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 118 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
119 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); ++i) { 119 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); ++i) {
120 double double_value = input_->GetDoubleRegister(i); 120 double double_value = input_->GetDoubleRegister(i);
121 output_frame->SetDoubleRegister(i, double_value); 121 output_frame->SetDoubleRegister(i, double_value);
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 UNREACHABLE(); 346 UNREACHABLE();
347 } 347 }
348 348
349 349
350 #undef __ 350 #undef __
351 351
352 352
353 } } // namespace v8::internal 353 } } // namespace v8::internal
354 354
355 #endif // V8_TARGET_ARCH_X64 355 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698