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

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

Issue 907383003: MIPS64: Propagate DeoptInfo to cpu-profiler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | no next file » | 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 // Push saved_regs (needed to populate FrameDescription::registers_). 155 // Push saved_regs (needed to populate FrameDescription::registers_).
156 // Leave gaps for other registers. 156 // Leave gaps for other registers.
157 __ Dsubu(sp, sp, kNumberOfRegisters * kPointerSize); 157 __ Dsubu(sp, sp, kNumberOfRegisters * kPointerSize);
158 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) { 158 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) {
159 if ((saved_regs & (1 << i)) != 0) { 159 if ((saved_regs & (1 << i)) != 0) {
160 __ sd(ToRegister(i), MemOperand(sp, kPointerSize * i)); 160 __ sd(ToRegister(i), MemOperand(sp, kPointerSize * i));
161 } 161 }
162 } 162 }
163 163
164 __ li(a2, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate())));
165 __ sd(fp, MemOperand(a2));
166
164 const int kSavedRegistersAreaSize = 167 const int kSavedRegistersAreaSize =
165 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; 168 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize;
166 169
167 // Get the bailout id from the stack. 170 // Get the bailout id from the stack.
168 __ ld(a2, MemOperand(sp, kSavedRegistersAreaSize)); 171 __ ld(a2, MemOperand(sp, kSavedRegistersAreaSize));
169 172
170 // Get the address of the location in the code object (a3) (return 173 // Get the address of the location in the code object (a3) (return
171 // address for lazy deoptimization) and compute the fp-to-sp delta in 174 // address for lazy deoptimization) and compute the fp-to-sp delta in
172 // register a4. 175 // register a4.
173 __ mov(a3, ra); 176 __ mov(a3, ra);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 378 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
376 // No out-of-line constant pool support. 379 // No out-of-line constant pool support.
377 UNREACHABLE(); 380 UNREACHABLE();
378 } 381 }
379 382
380 383
381 #undef __ 384 #undef __
382 385
383 386
384 } } // namespace v8::internal 387 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698