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

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

Issue 602603005: MIPS: Minor fixes and additions needed for Turbofan. (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
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 } 96 }
97 97
98 98
99 void Deoptimizer::SetPlatformCompiledStubRegisters( 99 void Deoptimizer::SetPlatformCompiledStubRegisters(
100 FrameDescription* output_frame, CodeStubDescriptor* descriptor) { 100 FrameDescription* output_frame, CodeStubDescriptor* descriptor) {
101 ApiFunction function(descriptor->deoptimization_handler()); 101 ApiFunction function(descriptor->deoptimization_handler());
102 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); 102 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_);
103 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); 103 intptr_t handler = reinterpret_cast<intptr_t>(xref.address());
104 int params = descriptor->GetHandlerParameterCount(); 104 int params = descriptor->GetHandlerParameterCount();
105 output_frame->SetRegister(s0.code(), params); 105 output_frame->SetRegister(a0.code(), params);
106 output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize); 106 output_frame->SetRegister(a1.code(), handler);
107 output_frame->SetRegister(s2.code(), handler);
108 } 107 }
109 108
110 109
111 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 110 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
112 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { 111 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) {
113 double double_value = input_->GetDoubleRegister(i); 112 double double_value = input_->GetDoubleRegister(i);
114 output_frame->SetDoubleRegister(i, double_value); 113 output_frame->SetDoubleRegister(i, double_value);
115 } 114 }
116 } 115 }
117 116
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 392 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
394 // No out-of-line constant pool support. 393 // No out-of-line constant pool support.
395 UNREACHABLE(); 394 UNREACHABLE();
396 } 395 }
397 396
398 397
399 #undef __ 398 #undef __
400 399
401 400
402 } } // namespace v8::internal 401 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698