| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 260 |
| 261 | 261 |
| 262 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { | 262 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { |
| 263 // In places other than IC call sites it is expected that r0 is TOS which | 263 // In places other than IC call sites it is expected that r0 is TOS which |
| 264 // is an object - this is not generally the case so this should be used with | 264 // is an object - this is not generally the case so this should be used with |
| 265 // care. | 265 // care. |
| 266 Generate_DebugBreakCallHelper(masm, r0.bit(), 0); | 266 Generate_DebugBreakCallHelper(masm, r0.bit(), 0); |
| 267 } | 267 } |
| 268 | 268 |
| 269 | 269 |
| 270 void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) { | 270 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { |
| 271 // ----------- S t a t e ------------- | 271 // ----------- S t a t e ------------- |
| 272 // No registers used on entry. | 272 // -- r1 : function |
| 273 // ----------------------------------- | 273 // ----------------------------------- |
| 274 Generate_DebugBreakCallHelper(masm, 0, 0); | 274 Generate_DebugBreakCallHelper(masm, r1.bit(), 0); |
| 275 } | 275 } |
| 276 | 276 |
| 277 | 277 |
| 278 void Debug::GenerateSlot(MacroAssembler* masm) { | 278 void Debug::GenerateSlot(MacroAssembler* masm) { |
| 279 // Generate enough nop's to make space for a call instruction. Avoid emitting | 279 // Generate enough nop's to make space for a call instruction. Avoid emitting |
| 280 // the constant pool in the debug break slot code. | 280 // the constant pool in the debug break slot code. |
| 281 Assembler::BlockConstPoolScope block_const_pool(masm); | 281 Assembler::BlockConstPoolScope block_const_pool(masm); |
| 282 Label check_codesize; | 282 Label check_codesize; |
| 283 __ bind(&check_codesize); | 283 __ bind(&check_codesize); |
| 284 __ RecordDebugBreakSlot(); | 284 __ RecordDebugBreakSlot(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 310 | 310 |
| 311 #undef __ | 311 #undef __ |
| 312 | 312 |
| 313 | 313 |
| 314 | 314 |
| 315 #endif // ENABLE_DEBUGGER_SUPPORT | 315 #endif // ENABLE_DEBUGGER_SUPPORT |
| 316 | 316 |
| 317 } } // namespace v8::internal | 317 } } // namespace v8::internal |
| 318 | 318 |
| 319 #endif // V8_TARGET_ARCH_ARM | 319 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |