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

Side by Side Diff: src/ia32/deoptimizer-ia32.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/ia32/code-stubs-ia32.cc ('k') | src/ia32/ic-ia32.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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Fill the frame content from the actual data on the frame. 192 // Fill the frame content from the actual data on the frame.
193 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { 193 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) {
194 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); 194 input_->SetFrameSlot(i, Memory::uint32_at(tos + i));
195 } 195 }
196 } 196 }
197 197
198 198
199 void Deoptimizer::SetPlatformCompiledStubRegisters( 199 void Deoptimizer::SetPlatformCompiledStubRegisters(
200 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { 200 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) {
201 intptr_t handler = 201 intptr_t handler =
202 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler_); 202 reinterpret_cast<intptr_t>(descriptor->deoptimization_handler());
203 int params = descriptor->GetHandlerParameterCount(); 203 int params = descriptor->GetHandlerParameterCount();
204 output_frame->SetRegister(eax.code(), params); 204 output_frame->SetRegister(eax.code(), params);
205 output_frame->SetRegister(ebx.code(), handler); 205 output_frame->SetRegister(ebx.code(), handler);
206 } 206 }
207 207
208 208
209 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 209 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
210 for (int i = 0; i < XMMRegister::kMaxNumAllocatableRegisters; ++i) { 210 for (int i = 0; i < XMMRegister::kMaxNumAllocatableRegisters; ++i) {
211 double double_value = input_->GetDoubleRegister(i); 211 double double_value = input_->GetDoubleRegister(i);
212 output_frame->SetDoubleRegister(i, double_value); 212 output_frame->SetDoubleRegister(i, double_value);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 UNREACHABLE(); 426 UNREACHABLE();
427 } 427 }
428 428
429 429
430 #undef __ 430 #undef __
431 431
432 432
433 } } // namespace v8::internal 433 } } // namespace v8::internal
434 434
435 #endif // V8_TARGET_ARCH_IA32 435 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698