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

Side by Side Diff: src/x64/debug-x64.cc

Issue 1248303002: Unify runtime-style IC functions with Runtime intrinsics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make mips work Created 5 years, 5 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/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Load padding words on stack. 65 // Load padding words on stack.
66 for (int i = 0; i < LiveEdit::kFramePaddingInitialSize; i++) { 66 for (int i = 0; i < LiveEdit::kFramePaddingInitialSize; i++) {
67 __ Push(Smi::FromInt(LiveEdit::kFramePaddingValue)); 67 __ Push(Smi::FromInt(LiveEdit::kFramePaddingValue));
68 } 68 }
69 __ Push(Smi::FromInt(LiveEdit::kFramePaddingInitialSize)); 69 __ Push(Smi::FromInt(LiveEdit::kFramePaddingInitialSize));
70 70
71 if (mode == SAVE_RESULT_REGISTER) __ Push(rax); 71 if (mode == SAVE_RESULT_REGISTER) __ Push(rax);
72 72
73 __ Set(rax, 0); // No arguments (argc == 0). 73 __ Set(rax, 0); // No arguments (argc == 0).
74 __ Move(rbx, ExternalReference::debug_break(masm->isolate())); 74 __ Move(rbx, ExternalReference(Runtime::FunctionForId(Runtime::kDebugBreak),
75 masm->isolate()));
75 76
76 CEntryStub ceb(masm->isolate(), 1); 77 CEntryStub ceb(masm->isolate(), 1);
77 __ CallStub(&ceb); 78 __ CallStub(&ceb);
78 79
79 if (FLAG_debug_code) { 80 if (FLAG_debug_code) {
80 for (int i = 0; i < kNumJSCallerSaved; ++i) { 81 for (int i = 0; i < kNumJSCallerSaved; ++i) {
81 Register reg = {JSCallerSavedCode(i)}; 82 Register reg = {JSCallerSavedCode(i)};
82 __ Set(reg, kDebugZapValue); 83 __ Set(reg, kDebugZapValue);
83 } 84 }
84 } 85 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 139 }
139 140
140 const bool LiveEdit::kFrameDropperSupported = true; 141 const bool LiveEdit::kFrameDropperSupported = true;
141 142
142 #undef __ 143 #undef __
143 144
144 } // namespace internal 145 } // namespace internal
145 } // namespace v8 146 } // namespace v8
146 147
147 #endif // V8_TARGET_ARCH_X64 148 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698