| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 // Now that the break point has been handled, resume normal execution by | 191 // Now that the break point has been handled, resume normal execution by |
| 192 // jumping to the target address intended by the caller and that was | 192 // jumping to the target address intended by the caller and that was |
| 193 // overwritten by the address of DebugBreakXXX. | 193 // overwritten by the address of DebugBreakXXX. |
| 194 ExternalReference after_break_target = | 194 ExternalReference after_break_target = |
| 195 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); | 195 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); |
| 196 __ jmp(Operand::StaticVariable(after_break_target)); | 196 __ jmp(Operand::StaticVariable(after_break_target)); |
| 197 } | 197 } |
| 198 | 198 |
| 199 | 199 |
| 200 void Debug::GenerateCallICStubDebugBreak(MacroAssembler* masm) { |
| 201 // Register state for CallICStub |
| 202 // ----------- S t a t e ------------- |
| 203 // -- ebx : type feedback vector |
| 204 // -- edx : type feedback slot (smi) |
| 205 // -- edi : function |
| 206 // ----------------------------------- |
| 207 Generate_DebugBreakCallHelper(masm, ebx.bit() | edx.bit() | edi.bit(), |
| 208 0, false); |
| 209 } |
| 210 |
| 211 |
| 200 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { | 212 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { |
| 201 // Register state for IC load call (from ic-ia32.cc). | 213 // Register state for IC load call (from ic-ia32.cc). |
| 202 // ----------- S t a t e ------------- | 214 // ----------- S t a t e ------------- |
| 203 // -- ecx : name | 215 // -- ecx : name |
| 204 // -- edx : receiver | 216 // -- edx : receiver |
| 205 // ----------------------------------- | 217 // ----------------------------------- |
| 206 Generate_DebugBreakCallHelper(masm, ecx.bit() | edx.bit(), 0, false); | 218 Generate_DebugBreakCallHelper(masm, ecx.bit() | edx.bit(), 0, false); |
| 207 } | 219 } |
| 208 | 220 |
| 209 | 221 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 255 |
| 244 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { | 256 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { |
| 245 // Register state for CompareNil IC | 257 // Register state for CompareNil IC |
| 246 // ----------- S t a t e ------------- | 258 // ----------- S t a t e ------------- |
| 247 // -- eax : value | 259 // -- eax : value |
| 248 // ----------------------------------- | 260 // ----------------------------------- |
| 249 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, false); | 261 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, false); |
| 250 } | 262 } |
| 251 | 263 |
| 252 | 264 |
| 253 void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) { | |
| 254 // Register state for keyed IC call call (from ic-ia32.cc) | |
| 255 // ----------- S t a t e ------------- | |
| 256 // -- ecx: name | |
| 257 // ----------------------------------- | |
| 258 Generate_DebugBreakCallHelper(masm, ecx.bit(), 0, false); | |
| 259 } | |
| 260 | |
| 261 | |
| 262 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { | 265 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { |
| 263 // Register state just before return from JS function (from codegen-ia32.cc). | 266 // Register state just before return from JS function (from codegen-ia32.cc). |
| 264 // ----------- S t a t e ------------- | 267 // ----------- S t a t e ------------- |
| 265 // -- eax: return value | 268 // -- eax: return value |
| 266 // ----------------------------------- | 269 // ----------------------------------- |
| 267 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, true); | 270 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, true); |
| 268 } | 271 } |
| 269 | 272 |
| 270 | 273 |
| 271 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { | 274 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { |
| 272 // Register state for CallFunctionStub (from code-stubs-ia32.cc). | 275 // Register state for CallFunctionStub (from code-stubs-ia32.cc). |
| 273 // ----------- S t a t e ------------- | 276 // ----------- S t a t e ------------- |
| 274 // -- edi: function | 277 // -- edi: function |
| 275 // ----------------------------------- | 278 // ----------------------------------- |
| 276 Generate_DebugBreakCallHelper(masm, edi.bit(), 0, false); | 279 Generate_DebugBreakCallHelper(masm, edi.bit(), 0, false); |
| 277 } | 280 } |
| 278 | 281 |
| 279 | 282 |
| 280 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) { | |
| 281 // Register state for CallFunctionStub (from code-stubs-ia32.cc). | |
| 282 // ----------- S t a t e ------------- | |
| 283 // -- ebx: feedback array | |
| 284 // -- edx: slot in feedback array | |
| 285 // -- edi: function | |
| 286 // ----------------------------------- | |
| 287 Generate_DebugBreakCallHelper(masm, ebx.bit() | edx.bit() | edi.bit(), | |
| 288 0, false); | |
| 289 } | |
| 290 | |
| 291 | |
| 292 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { | 283 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { |
| 293 // Register state for CallConstructStub (from code-stubs-ia32.cc). | 284 // Register state for CallConstructStub (from code-stubs-ia32.cc). |
| 294 // eax is the actual number of arguments not encoded as a smi see comment | 285 // eax is the actual number of arguments not encoded as a smi see comment |
| 295 // above IC call. | 286 // above IC call. |
| 296 // ----------- S t a t e ------------- | 287 // ----------- S t a t e ------------- |
| 297 // -- eax: number of arguments (not smi) | 288 // -- eax: number of arguments (not smi) |
| 298 // -- edi: constructor function | 289 // -- edi: constructor function |
| 299 // ----------------------------------- | 290 // ----------------------------------- |
| 300 // The number of arguments in eax is not smi encoded. | 291 // The number of arguments in eax is not smi encoded. |
| 301 Generate_DebugBreakCallHelper(masm, edi.bit(), eax.bit(), false); | 292 Generate_DebugBreakCallHelper(masm, edi.bit(), eax.bit(), false); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 358 |
| 368 const bool Debug::kFrameDropperSupported = true; | 359 const bool Debug::kFrameDropperSupported = true; |
| 369 | 360 |
| 370 #undef __ | 361 #undef __ |
| 371 | 362 |
| 372 #endif // ENABLE_DEBUGGER_SUPPORT | 363 #endif // ENABLE_DEBUGGER_SUPPORT |
| 373 | 364 |
| 374 } } // namespace v8::internal | 365 } } // namespace v8::internal |
| 375 | 366 |
| 376 #endif // V8_TARGET_ARCH_IA32 | 367 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |