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

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

Issue 1736323002: MIPS: [runtime] Unify and simplify how frames are marked. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « src/mips64/codegen-mips64.cc ('k') | src/mips64/frames-mips64.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 // 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/codegen.h" 5 #include "src/codegen.h"
6 #include "src/deoptimizer.h" 6 #include "src/deoptimizer.h"
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/register-configuration.h" 8 #include "src/register-configuration.h"
9 #include "src/safepoint-table.h" 9 #include "src/safepoint-table.h"
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // address for lazy deoptimization) and compute the fp-to-sp delta in 154 // address for lazy deoptimization) and compute the fp-to-sp delta in
155 // register a4. 155 // register a4.
156 __ mov(a3, ra); 156 __ mov(a3, ra);
157 // Correct one word for bailout id. 157 // Correct one word for bailout id.
158 __ Daddu(a4, sp, Operand(kSavedRegistersAreaSize + (1 * kPointerSize))); 158 __ Daddu(a4, sp, Operand(kSavedRegistersAreaSize + (1 * kPointerSize)));
159 159
160 __ Dsubu(a4, fp, a4); 160 __ Dsubu(a4, fp, a4);
161 161
162 // Allocate a new deoptimizer object. 162 // Allocate a new deoptimizer object.
163 __ PrepareCallCFunction(6, a5); 163 __ PrepareCallCFunction(6, a5);
164 // Pass six arguments, according to O32 or n64 ABI. a0..a3 are same for both. 164 // Pass six arguments, according to n64 ABI.
165 __ li(a1, Operand(type())); // bailout type, 165 __ mov(a0, zero_reg);
166 Label context_check;
167 __ ld(a1, MemOperand(fp, CommonFrameConstants::kContextOrFrameTypeOffset));
168 __ JumpIfSmi(a1, &context_check);
166 __ ld(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 169 __ ld(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
170 __ bind(&context_check);
171 __ li(a1, Operand(type())); // Bailout type.
167 // a2: bailout id already loaded. 172 // a2: bailout id already loaded.
168 // a3: code address or 0 already loaded. 173 // a3: code address or 0 already loaded.
169 // a4: already has fp-to-sp delta. 174 // a4: already has fp-to-sp delta.
170 __ li(a5, Operand(ExternalReference::isolate_address(isolate()))); 175 __ li(a5, Operand(ExternalReference::isolate_address(isolate())));
171 176
172 // Call Deoptimizer::New(). 177 // Call Deoptimizer::New().
173 { 178 {
174 AllowExternalCallThatCantCauseGC scope(masm()); 179 AllowExternalCallThatCantCauseGC scope(masm());
175 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate()), 6); 180 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate()), 6);
176 } 181 }
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 // No embedded constant pool support. 386 // No embedded constant pool support.
382 UNREACHABLE(); 387 UNREACHABLE();
383 } 388 }
384 389
385 390
386 #undef __ 391 #undef __
387 392
388 393
389 } // namespace internal 394 } // namespace internal
390 } // namespace v8 395 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/codegen-mips64.cc ('k') | src/mips64/frames-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698