| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // ----------- S t a t e ------------- | 273 // ----------- S t a t e ------------- |
| 274 // -- edi: function | 274 // -- edi: function |
| 275 // ----------------------------------- | 275 // ----------------------------------- |
| 276 Generate_DebugBreakCallHelper(masm, edi.bit(), 0, false); | 276 Generate_DebugBreakCallHelper(masm, edi.bit(), 0, false); |
| 277 } | 277 } |
| 278 | 278 |
| 279 | 279 |
| 280 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) { | 280 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) { |
| 281 // Register state for CallFunctionStub (from code-stubs-ia32.cc). | 281 // Register state for CallFunctionStub (from code-stubs-ia32.cc). |
| 282 // ----------- S t a t e ------------- | 282 // ----------- S t a t e ------------- |
| 283 // -- ebx: feedback array | 283 // -- ebx: cache cell for call target |
| 284 // -- edx: slot in feedback array | |
| 285 // -- edi: function | 284 // -- edi: function |
| 286 // ----------------------------------- | 285 // ----------------------------------- |
| 287 Generate_DebugBreakCallHelper(masm, ebx.bit() | edx.bit() | edi.bit(), | 286 Generate_DebugBreakCallHelper(masm, ebx.bit() | edi.bit(), 0, false); |
| 288 0, false); | |
| 289 } | 287 } |
| 290 | 288 |
| 291 | 289 |
| 292 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { | 290 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { |
| 293 // Register state for CallConstructStub (from code-stubs-ia32.cc). | 291 // Register state for CallConstructStub (from code-stubs-ia32.cc). |
| 294 // eax is the actual number of arguments not encoded as a smi see comment | 292 // eax is the actual number of arguments not encoded as a smi see comment |
| 295 // above IC call. | 293 // above IC call. |
| 296 // ----------- S t a t e ------------- | 294 // ----------- S t a t e ------------- |
| 297 // -- eax: number of arguments (not smi) | 295 // -- eax: number of arguments (not smi) |
| 298 // -- edi: constructor function | 296 // -- edi: constructor function |
| 299 // ----------------------------------- | 297 // ----------------------------------- |
| 300 // The number of arguments in eax is not smi encoded. | 298 // The number of arguments in eax is not smi encoded. |
| 301 Generate_DebugBreakCallHelper(masm, edi.bit(), eax.bit(), false); | 299 Generate_DebugBreakCallHelper(masm, edi.bit(), eax.bit(), false); |
| 302 } | 300 } |
| 303 | 301 |
| 304 | 302 |
| 305 void Debug::GenerateCallConstructStubRecordDebugBreak(MacroAssembler* masm) { | 303 void Debug::GenerateCallConstructStubRecordDebugBreak(MacroAssembler* masm) { |
| 306 // Register state for CallConstructStub (from code-stubs-ia32.cc). | 304 // Register state for CallConstructStub (from code-stubs-ia32.cc). |
| 307 // eax is the actual number of arguments not encoded as a smi see comment | 305 // eax is the actual number of arguments not encoded as a smi see comment |
| 308 // above IC call. | 306 // above IC call. |
| 309 // ----------- S t a t e ------------- | 307 // ----------- S t a t e ------------- |
| 310 // -- eax: number of arguments (not smi) | 308 // -- eax: number of arguments (not smi) |
| 311 // -- ebx: feedback array | 309 // -- ebx: cache cell for call target |
| 312 // -- edx: feedback slot (smi) | |
| 313 // -- edi: constructor function | 310 // -- edi: constructor function |
| 314 // ----------------------------------- | 311 // ----------------------------------- |
| 315 // The number of arguments in eax is not smi encoded. | 312 // The number of arguments in eax is not smi encoded. |
| 316 Generate_DebugBreakCallHelper(masm, ebx.bit() | edx.bit() | edi.bit(), | 313 Generate_DebugBreakCallHelper(masm, ebx.bit() | edi.bit(), eax.bit(), false); |
| 317 eax.bit(), false); | |
| 318 } | 314 } |
| 319 | 315 |
| 320 | 316 |
| 321 void Debug::GenerateSlot(MacroAssembler* masm) { | 317 void Debug::GenerateSlot(MacroAssembler* masm) { |
| 322 // Generate enough nop's to make space for a call instruction. | 318 // Generate enough nop's to make space for a call instruction. |
| 323 Label check_codesize; | 319 Label check_codesize; |
| 324 __ bind(&check_codesize); | 320 __ bind(&check_codesize); |
| 325 __ RecordDebugBreakSlot(); | 321 __ RecordDebugBreakSlot(); |
| 326 __ Nop(Assembler::kDebugBreakSlotLength); | 322 __ Nop(Assembler::kDebugBreakSlotLength); |
| 327 ASSERT_EQ(Assembler::kDebugBreakSlotLength, | 323 ASSERT_EQ(Assembler::kDebugBreakSlotLength, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 363 |
| 368 const bool Debug::kFrameDropperSupported = true; | 364 const bool Debug::kFrameDropperSupported = true; |
| 369 | 365 |
| 370 #undef __ | 366 #undef __ |
| 371 | 367 |
| 372 #endif // ENABLE_DEBUGGER_SUPPORT | 368 #endif // ENABLE_DEBUGGER_SUPPORT |
| 373 | 369 |
| 374 } } // namespace v8::internal | 370 } } // namespace v8::internal |
| 375 | 371 |
| 376 #endif // V8_TARGET_ARCH_IA32 | 372 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |