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

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

Issue 224903005: Reland "create a function call IC" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments. Created 6 years, 8 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 | « src/x64/code-stubs-x64.cc ('k') | src/x64/full-codegen-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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // Now that the break point has been handled, resume normal execution by 170 // Now that the break point has been handled, resume normal execution by
171 // jumping to the target address intended by the caller and that was 171 // jumping to the target address intended by the caller and that was
172 // overwritten by the address of DebugBreakXXX. 172 // overwritten by the address of DebugBreakXXX.
173 ExternalReference after_break_target = 173 ExternalReference after_break_target =
174 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); 174 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate());
175 __ Move(kScratchRegister, after_break_target); 175 __ Move(kScratchRegister, after_break_target);
176 __ Jump(Operand(kScratchRegister, 0)); 176 __ Jump(Operand(kScratchRegister, 0));
177 } 177 }
178 178
179 179
180 void Debug::GenerateCallICStubDebugBreak(MacroAssembler* masm) {
181 // Register state for CallICStub
182 // ----------- S t a t e -------------
183 // -- rbx : type feedback vector
184 // -- rdx : type feedback slot (smi)
185 // -- rdi : function
186 // -----------------------------------
187 Generate_DebugBreakCallHelper(masm, rbx.bit() | rdx.bit() | rdi.bit(),
188 0, false);
189 }
190
191
180 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { 192 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
181 // Register state for IC load call (from ic-x64.cc). 193 // Register state for IC load call (from ic-x64.cc).
182 // ----------- S t a t e ------------- 194 // ----------- S t a t e -------------
183 // -- rax : receiver 195 // -- rax : receiver
184 // -- rcx : name 196 // -- rcx : name
185 // ----------------------------------- 197 // -----------------------------------
186 Generate_DebugBreakCallHelper(masm, rax.bit() | rcx.bit(), 0, false); 198 Generate_DebugBreakCallHelper(masm, rax.bit() | rcx.bit(), 0, false);
187 } 199 }
188 200
189 201
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 235
224 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { 236 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) {
225 // Register state for CompareNil IC 237 // Register state for CompareNil IC
226 // ----------- S t a t e ------------- 238 // ----------- S t a t e -------------
227 // -- rax : value 239 // -- rax : value
228 // ----------------------------------- 240 // -----------------------------------
229 Generate_DebugBreakCallHelper(masm, rax.bit(), 0, false); 241 Generate_DebugBreakCallHelper(masm, rax.bit(), 0, false);
230 } 242 }
231 243
232 244
233 void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) {
234 // Register state for IC call call (from ic-x64.cc)
235 // ----------- S t a t e -------------
236 // -- rcx: function name
237 // -----------------------------------
238 Generate_DebugBreakCallHelper(masm, rcx.bit(), 0, false);
239 }
240
241
242 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { 245 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) {
243 // Register state just before return from JS function (from codegen-x64.cc). 246 // Register state just before return from JS function (from codegen-x64.cc).
244 // ----------- S t a t e ------------- 247 // ----------- S t a t e -------------
245 // -- rax: return value 248 // -- rax: return value
246 // ----------------------------------- 249 // -----------------------------------
247 Generate_DebugBreakCallHelper(masm, rax.bit(), 0, true); 250 Generate_DebugBreakCallHelper(masm, rax.bit(), 0, true);
248 } 251 }
249 252
250 253
251 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { 254 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) {
252 // Register state for CallFunctionStub (from code-stubs-x64.cc). 255 // Register state for CallFunctionStub (from code-stubs-x64.cc).
253 // ----------- S t a t e ------------- 256 // ----------- S t a t e -------------
254 // -- rdi : function 257 // -- rdi : function
255 // ----------------------------------- 258 // -----------------------------------
256 Generate_DebugBreakCallHelper(masm, rdi.bit(), 0, false); 259 Generate_DebugBreakCallHelper(masm, rdi.bit(), 0, false);
257 } 260 }
258 261
259 262
260 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) {
261 // Register state for CallFunctionStub (from code-stubs-x64.cc).
262 // ----------- S t a t e -------------
263 // -- rdi : function
264 // -- rbx: feedback array
265 // -- rdx: slot in feedback array
266 // -----------------------------------
267 Generate_DebugBreakCallHelper(masm, rbx.bit() | rdx.bit() | rdi.bit(),
268 0, false);
269 }
270
271
272 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { 263 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) {
273 // Register state for CallConstructStub (from code-stubs-x64.cc). 264 // Register state for CallConstructStub (from code-stubs-x64.cc).
274 // rax is the actual number of arguments not encoded as a smi, see comment 265 // rax is the actual number of arguments not encoded as a smi, see comment
275 // above IC call. 266 // above IC call.
276 // ----------- S t a t e ------------- 267 // ----------- S t a t e -------------
277 // -- rax: number of arguments 268 // -- rax: number of arguments
278 // ----------------------------------- 269 // -----------------------------------
279 // The number of arguments in rax is not smi encoded. 270 // The number of arguments in rax is not smi encoded.
280 Generate_DebugBreakCallHelper(masm, rdi.bit(), rax.bit(), false); 271 Generate_DebugBreakCallHelper(masm, rdi.bit(), rax.bit(), false);
281 } 272 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 337
347 const bool Debug::kFrameDropperSupported = true; 338 const bool Debug::kFrameDropperSupported = true;
348 339
349 #undef __ 340 #undef __
350 341
351 #endif // ENABLE_DEBUGGER_SUPPORT 342 #endif // ENABLE_DEBUGGER_SUPPORT
352 343
353 } } // namespace v8::internal 344 } } // namespace v8::internal
354 345
355 #endif // V8_TARGET_ARCH_X64 346 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698