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

Side by Side Diff: src/arm/debug-arm.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, 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/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.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 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 // -- r2 : feedback array
187 // -- r3 : slot in feedback array (smi)
188 // -----------------------------------
189 Generate_DebugBreakCallHelper(masm, r1.bit() | r2.bit() | r3.bit(), 0);
190 }
191
192
182 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { 193 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
183 // Calling convention for IC load (from ic-arm.cc). 194 // Calling convention for IC load (from ic-arm.cc).
184 // ----------- S t a t e ------------- 195 // ----------- S t a t e -------------
185 // -- r2 : name 196 // -- r2 : name
186 // -- lr : return address 197 // -- lr : return address
187 // -- r0 : receiver 198 // -- r0 : receiver
188 // -- [sp] : receiver 199 // -- [sp] : receiver
189 // ----------------------------------- 200 // -----------------------------------
190 // Registers r0 and r2 contain objects that need to be pushed on the 201 // Registers r0 and r2 contain objects that need to be pushed on the
191 // expression stack of the fake JS frame. 202 // expression stack of the fake JS frame.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 239
229 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { 240 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) {
230 // Register state for CompareNil IC 241 // Register state for CompareNil IC
231 // ----------- S t a t e ------------- 242 // ----------- S t a t e -------------
232 // -- r0 : value 243 // -- r0 : value
233 // ----------------------------------- 244 // -----------------------------------
234 Generate_DebugBreakCallHelper(masm, r0.bit(), 0); 245 Generate_DebugBreakCallHelper(masm, r0.bit(), 0);
235 } 246 }
236 247
237 248
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) { 249 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) {
248 // In places other than IC call sites it is expected that r0 is TOS which 250 // 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 251 // is an object - this is not generally the case so this should be used with
250 // care. 252 // care.
251 Generate_DebugBreakCallHelper(masm, r0.bit(), 0); 253 Generate_DebugBreakCallHelper(masm, r0.bit(), 0);
252 } 254 }
253 255
254 256
255 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { 257 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) {
256 // Register state for CallFunctionStub (from code-stubs-arm.cc). 258 // Register state for CallFunctionStub (from code-stubs-arm.cc).
257 // ----------- S t a t e ------------- 259 // ----------- S t a t e -------------
258 // -- r1 : function 260 // -- r1 : function
259 // ----------------------------------- 261 // -----------------------------------
260 Generate_DebugBreakCallHelper(masm, r1.bit(), 0); 262 Generate_DebugBreakCallHelper(masm, r1.bit(), 0);
261 } 263 }
262 264
263 265
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) { 266 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) {
276 // Calling convention for CallConstructStub (from code-stubs-arm.cc) 267 // Calling convention for CallConstructStub (from code-stubs-arm.cc)
277 // ----------- S t a t e ------------- 268 // ----------- S t a t e -------------
278 // -- r0 : number of arguments (not smi) 269 // -- r0 : number of arguments (not smi)
279 // -- r1 : constructor function 270 // -- r1 : constructor function
280 // ----------------------------------- 271 // -----------------------------------
281 Generate_DebugBreakCallHelper(masm, r1.bit(), r0.bit()); 272 Generate_DebugBreakCallHelper(masm, r1.bit(), r0.bit());
282 } 273 }
283 274
284 275
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 320
330 #undef __ 321 #undef __
331 322
332 323
333 324
334 #endif // ENABLE_DEBUGGER_SUPPORT 325 #endif // ENABLE_DEBUGGER_SUPPORT
335 326
336 } } // namespace v8::internal 327 } } // namespace v8::internal
337 328
338 #endif // V8_TARGET_ARCH_ARM 329 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698