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

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

Issue 735033002: MIPS64: Prepare additonal code for turbofan landing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « src/mips64/constants-mips64.cc ('k') | src/mips64/disasm-mips64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 } 95 }
96 96
97 97
98 void Deoptimizer::SetPlatformCompiledStubRegisters( 98 void Deoptimizer::SetPlatformCompiledStubRegisters(
99 FrameDescription* output_frame, CodeStubDescriptor* descriptor) { 99 FrameDescription* output_frame, CodeStubDescriptor* descriptor) {
100 ApiFunction function(descriptor->deoptimization_handler()); 100 ApiFunction function(descriptor->deoptimization_handler());
101 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); 101 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_);
102 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); 102 intptr_t handler = reinterpret_cast<intptr_t>(xref.address());
103 int params = descriptor->GetHandlerParameterCount(); 103 int params = descriptor->GetHandlerParameterCount();
104 output_frame->SetRegister(s0.code(), params); 104 output_frame->SetRegister(a0.code(), params);
105 output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize); 105 output_frame->SetRegister(a1.code(), handler);
106 output_frame->SetRegister(s2.code(), handler);
107 } 106 }
108 107
109 108
110 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 109 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
111 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { 110 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) {
112 double double_value = input_->GetDoubleRegister(i); 111 double double_value = input_->GetDoubleRegister(i);
113 output_frame->SetDoubleRegister(i, double_value); 112 output_frame->SetDoubleRegister(i, double_value);
114 } 113 }
115 } 114 }
116 115
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 369 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
371 // No out-of-line constant pool support. 370 // No out-of-line constant pool support.
372 UNREACHABLE(); 371 UNREACHABLE();
373 } 372 }
374 373
375 374
376 #undef __ 375 #undef __
377 376
378 377
379 } } // namespace v8::internal 378 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/constants-mips64.cc ('k') | src/mips64/disasm-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698