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

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

Issue 172523002: Create a function call IC (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 6 years, 9 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
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 // Now that the break point has been handled, resume normal execution by 191 // Now that the break point has been handled, resume normal execution by
192 // jumping to the target address intended by the caller and that was 192 // jumping to the target address intended by the caller and that was
193 // overwritten by the address of DebugBreakXXX. 193 // overwritten by the address of DebugBreakXXX.
194 ExternalReference after_break_target = 194 ExternalReference after_break_target =
195 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); 195 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate());
196 __ jmp(Operand::StaticVariable(after_break_target)); 196 __ jmp(Operand::StaticVariable(after_break_target));
197 } 197 }
198 198
199 199
200 void Debug::GenerateCallICStubDebugBreak(MacroAssembler* masm) {
201 // Register state for IC load call (from ic-ia32.cc).
202 // ----------- S t a t e -------------
203 // -- ebx : type feedback vector
204 // -- edx : type feedback slot (smi)
205 // -- edi : function
206 // -----------------------------------
207
208 // TODO(mvstanton): should eax be saved, non-object reg?
209 Generate_DebugBreakCallHelper(masm, ebx.bit() | edx.bit() | edi.bit(),
210 0, false);
211 }
212
213
200 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { 214 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
201 // Register state for IC load call (from ic-ia32.cc). 215 // Register state for IC load call (from ic-ia32.cc).
202 // ----------- S t a t e ------------- 216 // ----------- S t a t e -------------
203 // -- ecx : name 217 // -- ecx : name
204 // -- edx : receiver 218 // -- edx : receiver
205 // ----------------------------------- 219 // -----------------------------------
206 Generate_DebugBreakCallHelper(masm, ecx.bit() | edx.bit(), 0, false); 220 Generate_DebugBreakCallHelper(masm, ecx.bit() | edx.bit(), 0, false);
207 } 221 }
208 222
209 223
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 381
368 const bool Debug::kFrameDropperSupported = true; 382 const bool Debug::kFrameDropperSupported = true;
369 383
370 #undef __ 384 #undef __
371 385
372 #endif // ENABLE_DEBUGGER_SUPPORT 386 #endif // ENABLE_DEBUGGER_SUPPORT
373 387
374 } } // namespace v8::internal 388 } } // namespace v8::internal
375 389
376 #endif // V8_TARGET_ARCH_IA32 390 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698