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

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

Issue 638633002: Tick processor: Print C++ entry points (Closed) Base URL: https://v8.googlecode.com/svn/branches/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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/isolate.h » ('j') | tools/codemap.js » ('J')
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/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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 mov(ebp, esp); 928 mov(ebp, esp);
929 929
930 // Reserve room for entry stack pointer and push the code object. 930 // Reserve room for entry stack pointer and push the code object.
931 DCHECK(ExitFrameConstants::kSPOffset == -1 * kPointerSize); 931 DCHECK(ExitFrameConstants::kSPOffset == -1 * kPointerSize);
932 push(Immediate(0)); // Saved entry sp, patched before call. 932 push(Immediate(0)); // Saved entry sp, patched before call.
933 push(Immediate(CodeObject())); // Accessed from ExitFrame::code_slot. 933 push(Immediate(CodeObject())); // Accessed from ExitFrame::code_slot.
934 934
935 // Save the frame pointer and the context in top. 935 // Save the frame pointer and the context in top.
936 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate()); 936 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate());
937 ExternalReference context_address(Isolate::kContextAddress, isolate()); 937 ExternalReference context_address(Isolate::kContextAddress, isolate());
938 ExternalReference c_function_address(Isolate::kCFunctionAddress, isolate());
938 mov(Operand::StaticVariable(c_entry_fp_address), ebp); 939 mov(Operand::StaticVariable(c_entry_fp_address), ebp);
939 mov(Operand::StaticVariable(context_address), esi); 940 mov(Operand::StaticVariable(context_address), esi);
941 mov(Operand::StaticVariable(c_function_address), ebx);
940 } 942 }
941 943
942 944
943 void MacroAssembler::EnterExitFrameEpilogue(int argc, bool save_doubles) { 945 void MacroAssembler::EnterExitFrameEpilogue(int argc, bool save_doubles) {
944 // Optionally save all XMM registers. 946 // Optionally save all XMM registers.
945 if (save_doubles) { 947 if (save_doubles) {
946 int space = XMMRegister::kMaxNumRegisters * kDoubleSize + 948 int space = XMMRegister::kMaxNumRegisters * kDoubleSize +
947 argc * kPointerSize; 949 argc * kPointerSize;
948 sub(esp, Immediate(space)); 950 sub(esp, Immediate(space));
949 const int offset = -2 * kPointerSize; 951 const int offset = -2 * kPointerSize;
(...skipping 2441 matching lines...) Expand 10 before | Expand all | Expand 10 after
3391 if (mag.shift > 0) sar(edx, mag.shift); 3393 if (mag.shift > 0) sar(edx, mag.shift);
3392 mov(eax, dividend); 3394 mov(eax, dividend);
3393 shr(eax, 31); 3395 shr(eax, 31);
3394 add(edx, eax); 3396 add(edx, eax);
3395 } 3397 }
3396 3398
3397 3399
3398 } } // namespace v8::internal 3400 } } // namespace v8::internal
3399 3401
3400 #endif // V8_TARGET_ARCH_IA32 3402 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | src/isolate.h » ('j') | tools/codemap.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698