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

Side by Side Diff: src/ia32/deoptimizer-ia32.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/deoptimizer.cc ('k') | src/ia32/lithium-codegen-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 XMMRegister::kMaxNumAllocatableRegisters; 237 XMMRegister::kMaxNumAllocatableRegisters;
238 __ sub(esp, Immediate(kDoubleRegsSize)); 238 __ sub(esp, Immediate(kDoubleRegsSize));
239 for (int i = 0; i < XMMRegister::kMaxNumAllocatableRegisters; ++i) { 239 for (int i = 0; i < XMMRegister::kMaxNumAllocatableRegisters; ++i) {
240 XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i); 240 XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i);
241 int offset = i * kDoubleSize; 241 int offset = i * kDoubleSize;
242 __ movsd(Operand(esp, offset), xmm_reg); 242 __ movsd(Operand(esp, offset), xmm_reg);
243 } 243 }
244 244
245 __ pushad(); 245 __ pushad();
246 246
247 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate());
248 __ mov(Operand::StaticVariable(c_entry_fp_address), ebp);
249
247 const int kSavedRegistersAreaSize = kNumberOfRegisters * kPointerSize + 250 const int kSavedRegistersAreaSize = kNumberOfRegisters * kPointerSize +
248 kDoubleRegsSize; 251 kDoubleRegsSize;
249 252
250 // Get the bailout id from the stack. 253 // Get the bailout id from the stack.
251 __ mov(ebx, Operand(esp, kSavedRegistersAreaSize)); 254 __ mov(ebx, Operand(esp, kSavedRegistersAreaSize));
252 255
253 // Get the address of the location in the code object 256 // Get the address of the location in the code object
254 // and compute the fp-to-sp delta in register edx. 257 // and compute the fp-to-sp delta in register edx.
255 __ mov(ecx, Operand(esp, kSavedRegistersAreaSize + 1 * kPointerSize)); 258 __ mov(ecx, Operand(esp, kSavedRegistersAreaSize + 1 * kPointerSize));
256 __ lea(edx, Operand(esp, kSavedRegistersAreaSize + 2 * kPointerSize)); 259 __ lea(edx, Operand(esp, kSavedRegistersAreaSize + 2 * kPointerSize));
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 UNREACHABLE(); 426 UNREACHABLE();
424 } 427 }
425 428
426 429
427 #undef __ 430 #undef __
428 431
429 432
430 } } // namespace v8::internal 433 } } // namespace v8::internal
431 434
432 #endif // V8_TARGET_ARCH_IA32 435 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698