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

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

Issue 354863002: MIPS: The IC exposes a register definition. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/mips/code-stubs-mips.cc ('k') | src/mips/ic-mips.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 1
2 // Copyright 2011 the V8 project authors. All rights reserved. 2 // Copyright 2011 the V8 project authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/v8.h" 6 #include "src/v8.h"
7 7
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen.h" 10 #include "src/full-codegen.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // Fill the frame content from the actual data on the frame. 95 // Fill the frame content from the actual data on the frame.
96 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { 96 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) {
97 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); 97 input_->SetFrameSlot(i, Memory::uint32_at(tos + i));
98 } 98 }
99 } 99 }
100 100
101 101
102 void Deoptimizer::SetPlatformCompiledStubRegisters( 102 void Deoptimizer::SetPlatformCompiledStubRegisters(
103 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { 103 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) {
104 ApiFunction function(descriptor->deoptimization_handler_); 104 ApiFunction function(descriptor->deoptimization_handler());
105 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); 105 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_);
106 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); 106 intptr_t handler = reinterpret_cast<intptr_t>(xref.address());
107 int params = descriptor->GetHandlerParameterCount(); 107 int params = descriptor->GetHandlerParameterCount();
108 output_frame->SetRegister(s0.code(), params); 108 output_frame->SetRegister(s0.code(), params);
109 output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize); 109 output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize);
110 output_frame->SetRegister(s2.code(), handler); 110 output_frame->SetRegister(s2.code(), handler);
111 } 111 }
112 112
113 113
114 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 114 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 369 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
370 // No out-of-line constant pool support. 370 // No out-of-line constant pool support.
371 UNREACHABLE(); 371 UNREACHABLE();
372 } 372 }
373 373
374 374
375 #undef __ 375 #undef __
376 376
377 377
378 } } // namespace v8::internal 378 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698