| 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 |
| 208 // TODO(mvstanton): should eax be saved, non-object reg? |
| 209 Generate_DebugBreakCallHelper(masm, ebx.bit() | edx.bit() | edi.bit(), |
| 210 0, false); |
| 211 } |
| 212 |
| 213 |
| 200 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { | 214 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { |
| 201 // Register state for IC load call (from ic-ia32.cc). | 215 // Register state for IC load call (from ic-ia32.cc). |
| 202 // ----------- S t a t e ------------- | 216 // ----------- S t a t e ------------- |
| 203 // -- ecx : name | 217 // -- ecx : name |
| 204 // -- edx : receiver | 218 // -- edx : receiver |
| 205 // ----------------------------------- | 219 // ----------------------------------- |
| 206 Generate_DebugBreakCallHelper(masm, ecx.bit() | edx.bit(), 0, false); | 220 Generate_DebugBreakCallHelper(masm, ecx.bit() | edx.bit(), 0, false); |
| 207 } | 221 } |
| 208 | 222 |
| 209 | 223 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 257 |
| 244 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { | 258 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { |
| 245 // Register state for CompareNil IC | 259 // Register state for CompareNil IC |
| 246 // ----------- S t a t e ------------- | 260 // ----------- S t a t e ------------- |
| 247 // -- eax : value | 261 // -- eax : value |
| 248 // ----------------------------------- | 262 // ----------------------------------- |
| 249 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, false); | 263 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, false); |
| 250 } | 264 } |
| 251 | 265 |
| 252 | 266 |
| 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) { | 267 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { |
| 263 // Register state just before return from JS function (from codegen-ia32.cc). | 268 // Register state just before return from JS function (from codegen-ia32.cc). |
| 264 // ----------- S t a t e ------------- | 269 // ----------- S t a t e ------------- |
| 265 // -- eax: return value | 270 // -- eax: return value |
| 266 // ----------------------------------- | 271 // ----------------------------------- |
| 267 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, true); | 272 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, true); |
| 268 } | 273 } |
| 269 | 274 |
| 270 | 275 |
| 271 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { | 276 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 372 |
| 368 const bool Debug::kFrameDropperSupported = true; | 373 const bool Debug::kFrameDropperSupported = true; |
| 369 | 374 |
| 370 #undef __ | 375 #undef __ |
| 371 | 376 |
| 372 #endif // ENABLE_DEBUGGER_SUPPORT | 377 #endif // ENABLE_DEBUGGER_SUPPORT |
| 373 | 378 |
| 374 } } // namespace v8::internal | 379 } } // namespace v8::internal |
| 375 | 380 |
| 376 #endif // V8_TARGET_ARCH_IA32 | 381 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |