| OLD | NEW |
| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // -- r1 : function | 258 // -- r1 : function |
| 259 // ----------------------------------- | 259 // ----------------------------------- |
| 260 Generate_DebugBreakCallHelper(masm, r1.bit(), 0); | 260 Generate_DebugBreakCallHelper(masm, r1.bit(), 0); |
| 261 } | 261 } |
| 262 | 262 |
| 263 | 263 |
| 264 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) { | 264 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) { |
| 265 // Register state for CallFunctionStub (from code-stubs-arm.cc). | 265 // Register state for CallFunctionStub (from code-stubs-arm.cc). |
| 266 // ----------- S t a t e ------------- | 266 // ----------- S t a t e ------------- |
| 267 // -- r1 : function | 267 // -- r1 : function |
| 268 // -- r2 : feedback array | 268 // -- r2 : cache cell for call target |
| 269 // -- r3 : slot in feedback array | |
| 270 // ----------------------------------- | 269 // ----------------------------------- |
| 271 Generate_DebugBreakCallHelper(masm, r1.bit() | r2.bit() | r3.bit(), 0); | 270 Generate_DebugBreakCallHelper(masm, r1.bit() | r2.bit(), 0); |
| 272 } | 271 } |
| 273 | 272 |
| 274 | 273 |
| 275 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { | 274 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { |
| 276 // Calling convention for CallConstructStub (from code-stubs-arm.cc) | 275 // Calling convention for CallConstructStub (from code-stubs-arm.cc) |
| 277 // ----------- S t a t e ------------- | 276 // ----------- S t a t e ------------- |
| 278 // -- r0 : number of arguments (not smi) | 277 // -- r0 : number of arguments (not smi) |
| 279 // -- r1 : constructor function | 278 // -- r1 : constructor function |
| 280 // ----------------------------------- | 279 // ----------------------------------- |
| 281 Generate_DebugBreakCallHelper(masm, r1.bit(), r0.bit()); | 280 Generate_DebugBreakCallHelper(masm, r1.bit(), r0.bit()); |
| 282 } | 281 } |
| 283 | 282 |
| 284 | 283 |
| 285 void Debug::GenerateCallConstructStubRecordDebugBreak(MacroAssembler* masm) { | 284 void Debug::GenerateCallConstructStubRecordDebugBreak(MacroAssembler* masm) { |
| 286 // Calling convention for CallConstructStub (from code-stubs-arm.cc) | 285 // Calling convention for CallConstructStub (from code-stubs-arm.cc) |
| 287 // ----------- S t a t e ------------- | 286 // ----------- S t a t e ------------- |
| 288 // -- r0 : number of arguments (not smi) | 287 // -- r0 : number of arguments (not smi) |
| 289 // -- r1 : constructor function | 288 // -- r1 : constructor function |
| 290 // -- r2 : feedback array | 289 // -- r2 : cache cell for call target |
| 291 // -- r3 : feedback slot (smi) | |
| 292 // ----------------------------------- | 290 // ----------------------------------- |
| 293 Generate_DebugBreakCallHelper(masm, r1.bit() | r2.bit() | r3.bit(), r0.bit()); | 291 Generate_DebugBreakCallHelper(masm, r1.bit() | r2.bit(), r0.bit()); |
| 294 } | 292 } |
| 295 | 293 |
| 296 | 294 |
| 297 void Debug::GenerateSlot(MacroAssembler* masm) { | 295 void Debug::GenerateSlot(MacroAssembler* masm) { |
| 298 // Generate enough nop's to make space for a call instruction. Avoid emitting | 296 // Generate enough nop's to make space for a call instruction. Avoid emitting |
| 299 // the constant pool in the debug break slot code. | 297 // the constant pool in the debug break slot code. |
| 300 Assembler::BlockConstPoolScope block_const_pool(masm); | 298 Assembler::BlockConstPoolScope block_const_pool(masm); |
| 301 Label check_codesize; | 299 Label check_codesize; |
| 302 __ bind(&check_codesize); | 300 __ bind(&check_codesize); |
| 303 __ RecordDebugBreakSlot(); | 301 __ RecordDebugBreakSlot(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 329 | 327 |
| 330 #undef __ | 328 #undef __ |
| 331 | 329 |
| 332 | 330 |
| 333 | 331 |
| 334 #endif // ENABLE_DEBUGGER_SUPPORT | 332 #endif // ENABLE_DEBUGGER_SUPPORT |
| 335 | 333 |
| 336 } } // namespace v8::internal | 334 } } // namespace v8::internal |
| 337 | 335 |
| 338 #endif // V8_TARGET_ARCH_ARM | 336 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |