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

Side by Side Diff: src/x87/macro-assembler-x87.cc

Issue 662323002: X87: Tick processor: Print C++ entry points. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 2 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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 mov(ebp, esp); 899 mov(ebp, esp);
900 900
901 // Reserve room for entry stack pointer and push the code object. 901 // Reserve room for entry stack pointer and push the code object.
902 DCHECK(ExitFrameConstants::kSPOffset == -1 * kPointerSize); 902 DCHECK(ExitFrameConstants::kSPOffset == -1 * kPointerSize);
903 push(Immediate(0)); // Saved entry sp, patched before call. 903 push(Immediate(0)); // Saved entry sp, patched before call.
904 push(Immediate(CodeObject())); // Accessed from ExitFrame::code_slot. 904 push(Immediate(CodeObject())); // Accessed from ExitFrame::code_slot.
905 905
906 // Save the frame pointer and the context in top. 906 // Save the frame pointer and the context in top.
907 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate()); 907 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate());
908 ExternalReference context_address(Isolate::kContextAddress, isolate()); 908 ExternalReference context_address(Isolate::kContextAddress, isolate());
909 ExternalReference c_function_address(Isolate::kCFunctionAddress, isolate());
909 mov(Operand::StaticVariable(c_entry_fp_address), ebp); 910 mov(Operand::StaticVariable(c_entry_fp_address), ebp);
910 mov(Operand::StaticVariable(context_address), esi); 911 mov(Operand::StaticVariable(context_address), esi);
912 mov(Operand::StaticVariable(c_function_address), ebx);
911 } 913 }
912 914
913 915
914 void MacroAssembler::EnterExitFrameEpilogue(int argc, bool save_doubles) { 916 void MacroAssembler::EnterExitFrameEpilogue(int argc, bool save_doubles) {
915 // Optionally save FPU state. 917 // Optionally save FPU state.
916 if (save_doubles) { 918 if (save_doubles) {
917 // Store FPU state to m108byte. 919 // Store FPU state to m108byte.
918 int space = 108 + argc * kPointerSize; 920 int space = 108 + argc * kPointerSize;
919 sub(esp, Immediate(space)); 921 sub(esp, Immediate(space));
920 const int offset = -2 * kPointerSize; // entry fp + code object. 922 const int offset = -2 * kPointerSize; // entry fp + code object.
(...skipping 2432 matching lines...) Expand 10 before | Expand all | Expand 10 after
3353 if (mag.shift > 0) sar(edx, mag.shift); 3355 if (mag.shift > 0) sar(edx, mag.shift);
3354 mov(eax, dividend); 3356 mov(eax, dividend);
3355 shr(eax, 31); 3357 shr(eax, 31);
3356 add(edx, eax); 3358 add(edx, eax);
3357 } 3359 }
3358 3360
3359 3361
3360 } } // namespace v8::internal 3362 } } // namespace v8::internal
3361 3363
3362 #endif // V8_TARGET_ARCH_X87 3364 #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