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

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

Issue 247373002: CallICStub with a "never patch" approach until customization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 years, 7 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // jumping to the target address intended by the caller and that was 172 // jumping to the target address intended by the caller and that was
173 // overwritten by the address of DebugBreakXXX. 173 // overwritten by the address of DebugBreakXXX.
174 ExternalReference after_break_target = 174 ExternalReference after_break_target =
175 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); 175 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate());
176 __ mov(ip, Operand(after_break_target)); 176 __ mov(ip, Operand(after_break_target));
177 __ ldr(ip, MemOperand(ip)); 177 __ ldr(ip, MemOperand(ip));
178 __ Jump(ip); 178 __ Jump(ip);
179 } 179 }
180 180
181 181
182 void Debug::GenerateCallICStubDebugBreak(MacroAssembler* masm) {
183 // Register state for CallICStub
184 // ----------- S t a t e -------------
185 // -- r1 : function
186 // -- r3 : slot in feedback array (smi)
187 // -----------------------------------
188 Generate_DebugBreakCallHelper(masm, r1.bit() | r3.bit(), 0);
189 }
190
191
182 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { 192 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
183 // Calling convention for IC load (from ic-arm.cc). 193 // Calling convention for IC load (from ic-arm.cc).
184 // ----------- S t a t e ------------- 194 // ----------- S t a t e -------------
185 // -- r2 : name 195 // -- r2 : name
186 // -- lr : return address 196 // -- lr : return address
187 // -- r0 : receiver 197 // -- r0 : receiver
188 // -- [sp] : receiver 198 // -- [sp] : receiver
189 // ----------------------------------- 199 // -----------------------------------
190 // Registers r0 and r2 contain objects that need to be pushed on the 200 // Registers r0 and r2 contain objects that need to be pushed on the
191 // expression stack of the fake JS frame. 201 // expression stack of the fake JS frame.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 238
229 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { 239 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) {
230 // Register state for CompareNil IC 240 // Register state for CompareNil IC
231 // ----------- S t a t e ------------- 241 // ----------- S t a t e -------------
232 // -- r0 : value 242 // -- r0 : value
233 // ----------------------------------- 243 // -----------------------------------
234 Generate_DebugBreakCallHelper(masm, r0.bit(), 0); 244 Generate_DebugBreakCallHelper(masm, r0.bit(), 0);
235 } 245 }
236 246
237 247
238 void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) {
239 // Calling convention for IC call (from ic-arm.cc)
240 // ----------- S t a t e -------------
241 // -- r2 : name
242 // -----------------------------------
243 Generate_DebugBreakCallHelper(masm, r2.bit(), 0);
244 }
245
246
247 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { 248 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) {
248 // In places other than IC call sites it is expected that r0 is TOS which 249 // In places other than IC call sites it is expected that r0 is TOS which
249 // is an object - this is not generally the case so this should be used with 250 // is an object - this is not generally the case so this should be used with
250 // care. 251 // care.
251 Generate_DebugBreakCallHelper(masm, r0.bit(), 0); 252 Generate_DebugBreakCallHelper(masm, r0.bit(), 0);
252 } 253 }
253 254
254 255
255 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { 256 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) {
256 // Register state for CallFunctionStub (from code-stubs-arm.cc). 257 // Register state for CallFunctionStub (from code-stubs-arm.cc).
257 // ----------- S t a t e ------------- 258 // ----------- S t a t e -------------
258 // -- r1 : function 259 // -- r1 : function
259 // ----------------------------------- 260 // -----------------------------------
260 Generate_DebugBreakCallHelper(masm, r1.bit(), 0); 261 Generate_DebugBreakCallHelper(masm, r1.bit(), 0);
261 } 262 }
262 263
263 264
264 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) {
265 // Register state for CallFunctionStub (from code-stubs-arm.cc).
266 // ----------- S t a t e -------------
267 // -- r1 : function
268 // -- r2 : feedback array
269 // -- r3 : slot in feedback array
270 // -----------------------------------
271 Generate_DebugBreakCallHelper(masm, r1.bit() | r2.bit() | r3.bit(), 0);
272 }
273
274
275 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { 265 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) {
276 // Calling convention for CallConstructStub (from code-stubs-arm.cc) 266 // Calling convention for CallConstructStub (from code-stubs-arm.cc)
277 // ----------- S t a t e ------------- 267 // ----------- S t a t e -------------
278 // -- r0 : number of arguments (not smi) 268 // -- r0 : number of arguments (not smi)
279 // -- r1 : constructor function 269 // -- r1 : constructor function
280 // ----------------------------------- 270 // -----------------------------------
281 Generate_DebugBreakCallHelper(masm, r1.bit(), r0.bit()); 271 Generate_DebugBreakCallHelper(masm, r1.bit(), r0.bit());
282 } 272 }
283 273
284 274
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 319
330 #undef __ 320 #undef __
331 321
332 322
333 323
334 #endif // ENABLE_DEBUGGER_SUPPORT 324 #endif // ENABLE_DEBUGGER_SUPPORT
335 325
336 } } // namespace v8::internal 326 } } // namespace v8::internal
337 327
338 #endif // V8_TARGET_ARCH_ARM 328 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698