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

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

Issue 910773002: Propagate Deopt reason to cpu-profiler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments addressed Created 5 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/log.cc ('k') | src/mips/lithium-codegen-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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // Push saved_regs (needed to populate FrameDescription::registers_). 156 // Push saved_regs (needed to populate FrameDescription::registers_).
157 // Leave gaps for other registers. 157 // Leave gaps for other registers.
158 __ Subu(sp, sp, kNumberOfRegisters * kPointerSize); 158 __ Subu(sp, sp, kNumberOfRegisters * kPointerSize);
159 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) { 159 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) {
160 if ((saved_regs & (1 << i)) != 0) { 160 if ((saved_regs & (1 << i)) != 0) {
161 __ sw(ToRegister(i), MemOperand(sp, kPointerSize * i)); 161 __ sw(ToRegister(i), MemOperand(sp, kPointerSize * i));
162 } 162 }
163 } 163 }
164 164
165 __ li(a2, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate())));
166 __ sw(fp, MemOperand(a2));
167
165 const int kSavedRegistersAreaSize = 168 const int kSavedRegistersAreaSize =
166 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; 169 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize;
167 170
168 // Get the bailout id from the stack. 171 // Get the bailout id from the stack.
169 __ lw(a2, MemOperand(sp, kSavedRegistersAreaSize)); 172 __ lw(a2, MemOperand(sp, kSavedRegistersAreaSize));
170 173
171 // Get the address of the location in the code object (a3) (return 174 // Get the address of the location in the code object (a3) (return
172 // address for lazy deoptimization) and compute the fp-to-sp delta in 175 // address for lazy deoptimization) and compute the fp-to-sp delta in
173 // register t0. 176 // register t0.
174 __ mov(a3, ra); 177 __ mov(a3, ra);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 401 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
399 // No out-of-line constant pool support. 402 // No out-of-line constant pool support.
400 UNREACHABLE(); 403 UNREACHABLE();
401 } 404 }
402 405
403 406
404 #undef __ 407 #undef __
405 408
406 409
407 } } // namespace v8::internal 410 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698