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

Side by Side Diff: src/arm/deoptimizer-arm.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/arm/code-stubs-arm.cc ('k') | src/arm/ic-arm.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 #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
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
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
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698