| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { | 238 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { |
| 239 // Register state just before return from JS function (from codegen-ia32.cc). | 239 // Register state just before return from JS function (from codegen-ia32.cc). |
| 240 // ----------- S t a t e ------------- | 240 // ----------- S t a t e ------------- |
| 241 // -- eax: return value | 241 // -- eax: return value |
| 242 // ----------------------------------- | 242 // ----------------------------------- |
| 243 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, true); | 243 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, true); |
| 244 } | 244 } |
| 245 | 245 |
| 246 | 246 |
| 247 void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) { | 247 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { |
| 248 // Register state for stub CallFunction (from CallFunctionStub in ic-ia32.cc). | 248 // Register state for stub CallFunction (from CallFunctionStub in ic-ia32.cc). |
| 249 // ----------- S t a t e ------------- | 249 // ----------- S t a t e ------------- |
| 250 // No registers used on entry. | 250 // -- edi: function |
| 251 // ----------------------------------- | 251 // ----------------------------------- |
| 252 Generate_DebugBreakCallHelper(masm, 0, 0, false); | 252 Generate_DebugBreakCallHelper(masm, edi.bit(), 0, false); |
| 253 } | 253 } |
| 254 | 254 |
| 255 | 255 |
| 256 void Debug::GenerateSlot(MacroAssembler* masm) { | 256 void Debug::GenerateSlot(MacroAssembler* masm) { |
| 257 // Generate enough nop's to make space for a call instruction. | 257 // Generate enough nop's to make space for a call instruction. |
| 258 Label check_codesize; | 258 Label check_codesize; |
| 259 __ bind(&check_codesize); | 259 __ bind(&check_codesize); |
| 260 __ RecordDebugBreakSlot(); | 260 __ RecordDebugBreakSlot(); |
| 261 for (int i = 0; i < Assembler::kDebugBreakSlotLength; i++) { | 261 for (int i = 0; i < Assembler::kDebugBreakSlotLength; i++) { |
| 262 __ nop(); | 262 __ nop(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 304 |
| 305 const bool Debug::kFrameDropperSupported = true; | 305 const bool Debug::kFrameDropperSupported = true; |
| 306 | 306 |
| 307 #undef __ | 307 #undef __ |
| 308 | 308 |
| 309 #endif // ENABLE_DEBUGGER_SUPPORT | 309 #endif // ENABLE_DEBUGGER_SUPPORT |
| 310 | 310 |
| 311 } } // namespace v8::internal | 311 } } // namespace v8::internal |
| 312 | 312 |
| 313 #endif // V8_TARGET_ARCH_IA32 | 313 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |