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

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

Issue 912403003: X87: Propagate Deopt reason 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 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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 const int kNumberOfRegisters = Register::kNumRegisters; 234 const int kNumberOfRegisters = Register::kNumRegisters;
235 235
236 const int kDoubleRegsSize = 236 const int kDoubleRegsSize =
237 kDoubleSize * X87Register::kMaxNumAllocatableRegisters; 237 kDoubleSize * X87Register::kMaxNumAllocatableRegisters;
238 238
239 // Reserve space for x87 fp registers. 239 // Reserve space for x87 fp registers.
240 __ sub(esp, Immediate(kDoubleRegsSize)); 240 __ sub(esp, Immediate(kDoubleRegsSize));
241 241
242 __ pushad(); 242 __ pushad();
243 243
244 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate());
245 __ mov(Operand::StaticVariable(c_entry_fp_address), ebp);
246
244 // GP registers are safe to use now. 247 // GP registers are safe to use now.
245 // Save used x87 fp registers in correct position of previous reserve space. 248 // Save used x87 fp registers in correct position of previous reserve space.
246 Label loop, done; 249 Label loop, done;
247 // Get the layout of x87 stack. 250 // Get the layout of x87 stack.
248 __ sub(esp, Immediate(kPointerSize)); 251 __ sub(esp, Immediate(kPointerSize));
249 __ fistp_s(MemOperand(esp, 0)); 252 __ fistp_s(MemOperand(esp, 0));
250 __ pop(eax); 253 __ pop(eax);
251 // Preserve stack layout in edi 254 // Preserve stack layout in edi
252 __ mov(edi, eax); 255 __ mov(edi, eax);
253 // Get the x87 stack depth, the first 3 bits. 256 // Get the x87 stack depth, the first 3 bits.
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 UNREACHABLE(); 465 UNREACHABLE();
463 } 466 }
464 467
465 468
466 #undef __ 469 #undef __
467 470
468 471
469 } } // namespace v8::internal 472 } } // namespace v8::internal
470 473
471 #endif // V8_TARGET_ARCH_X87 474 #endif // V8_TARGET_ARCH_X87
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