| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 | 273 |
| 274 void Debug::GenerateSlot(MacroAssembler* masm) { | 274 void Debug::GenerateSlot(MacroAssembler* masm) { |
| 275 // Generate enough nop's to make space for a call instruction. Avoid emitting | 275 // Generate enough nop's to make space for a call instruction. Avoid emitting |
| 276 // the constant pool in the debug break slot code. | 276 // the constant pool in the debug break slot code. |
| 277 Assembler::BlockConstPoolScope block_const_pool(masm); | 277 Assembler::BlockConstPoolScope block_const_pool(masm); |
| 278 Label check_codesize; | 278 Label check_codesize; |
| 279 __ bind(&check_codesize); | 279 __ bind(&check_codesize); |
| 280 __ RecordDebugBreakSlot(); | 280 __ RecordDebugBreakSlot(); |
| 281 for (int i = 0; i < Assembler::kDebugBreakSlotInstructions; i++) { | 281 for (int i = 0; i < Assembler::kDebugBreakSlotInstructions; i++) { |
| 282 __ nop(2); | 282 __ nop(Assembler::DEBUG_BREAK_NOP); |
| 283 } | 283 } |
| 284 ASSERT_EQ(Assembler::kDebugBreakSlotInstructions, | 284 ASSERT_EQ(Assembler::kDebugBreakSlotInstructions, |
| 285 masm->InstructionsGeneratedSince(&check_codesize)); | 285 masm->InstructionsGeneratedSince(&check_codesize)); |
| 286 } | 286 } |
| 287 | 287 |
| 288 | 288 |
| 289 void Debug::GenerateSlotDebugBreak(MacroAssembler* masm) { | 289 void Debug::GenerateSlotDebugBreak(MacroAssembler* masm) { |
| 290 // In the places where a debug break slot is inserted no registers can contain | 290 // In the places where a debug break slot is inserted no registers can contain |
| 291 // object pointers. | 291 // object pointers. |
| 292 Generate_DebugBreakCallHelper(masm, 0, 0); | 292 Generate_DebugBreakCallHelper(masm, 0, 0); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 306 | 306 |
| 307 #undef __ | 307 #undef __ |
| 308 | 308 |
| 309 | 309 |
| 310 | 310 |
| 311 #endif // ENABLE_DEBUGGER_SUPPORT | 311 #endif // ENABLE_DEBUGGER_SUPPORT |
| 312 | 312 |
| 313 } } // namespace v8::internal | 313 } } // namespace v8::internal |
| 314 | 314 |
| 315 #endif // V8_TARGET_ARCH_ARM | 315 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |