| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // jumping to the target address intended by the caller and that was | 172 // jumping to the target address intended by the caller and that was |
| 173 // overwritten by the address of DebugBreakXXX. | 173 // overwritten by the address of DebugBreakXXX. |
| 174 ExternalReference after_break_target = | 174 ExternalReference after_break_target = |
| 175 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); | 175 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); |
| 176 __ mov(ip, Operand(after_break_target)); | 176 __ mov(ip, Operand(after_break_target)); |
| 177 __ ldr(ip, MemOperand(ip)); | 177 __ ldr(ip, MemOperand(ip)); |
| 178 __ Jump(ip); | 178 __ Jump(ip); |
| 179 } | 179 } |
| 180 | 180 |
| 181 | 181 |
| 182 void Debug::GenerateCallICStubDebugBreak(MacroAssembler* masm) { | |
| 183 // Register state for CallICStub | |
| 184 // ----------- S t a t e ------------- | |
| 185 // -- r1 : function | |
| 186 // -- r2 : feedback array | |
| 187 // -- r3 : slot in feedback array (smi) | |
| 188 // ----------------------------------- | |
| 189 Generate_DebugBreakCallHelper(masm, r1.bit() | r2.bit() | r3.bit(), 0); | |
| 190 } | |
| 191 | |
| 192 | |
| 193 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { | 182 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { |
| 194 // Calling convention for IC load (from ic-arm.cc). | 183 // Calling convention for IC load (from ic-arm.cc). |
| 195 // ----------- S t a t e ------------- | 184 // ----------- S t a t e ------------- |
| 196 // -- r2 : name | 185 // -- r2 : name |
| 197 // -- lr : return address | 186 // -- lr : return address |
| 198 // -- r0 : receiver | 187 // -- r0 : receiver |
| 199 // -- [sp] : receiver | 188 // -- [sp] : receiver |
| 200 // ----------------------------------- | 189 // ----------------------------------- |
| 201 // Registers r0 and r2 contain objects that need to be pushed on the | 190 // Registers r0 and r2 contain objects that need to be pushed on the |
| 202 // expression stack of the fake JS frame. | 191 // expression stack of the fake JS frame. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 228 |
| 240 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { | 229 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { |
| 241 // Register state for CompareNil IC | 230 // Register state for CompareNil IC |
| 242 // ----------- S t a t e ------------- | 231 // ----------- S t a t e ------------- |
| 243 // -- r0 : value | 232 // -- r0 : value |
| 244 // ----------------------------------- | 233 // ----------------------------------- |
| 245 Generate_DebugBreakCallHelper(masm, r0.bit(), 0); | 234 Generate_DebugBreakCallHelper(masm, r0.bit(), 0); |
| 246 } | 235 } |
| 247 | 236 |
| 248 | 237 |
| 238 void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) { |
| 239 // Calling convention for IC call (from ic-arm.cc) |
| 240 // ----------- S t a t e ------------- |
| 241 // -- r2 : name |
| 242 // ----------------------------------- |
| 243 Generate_DebugBreakCallHelper(masm, r2.bit(), 0); |
| 244 } |
| 245 |
| 246 |
| 249 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { | 247 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { |
| 250 // In places other than IC call sites it is expected that r0 is TOS which | 248 // In places other than IC call sites it is expected that r0 is TOS which |
| 251 // is an object - this is not generally the case so this should be used with | 249 // is an object - this is not generally the case so this should be used with |
| 252 // care. | 250 // care. |
| 253 Generate_DebugBreakCallHelper(masm, r0.bit(), 0); | 251 Generate_DebugBreakCallHelper(masm, r0.bit(), 0); |
| 254 } | 252 } |
| 255 | 253 |
| 256 | 254 |
| 257 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { | 255 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { |
| 258 // Register state for CallFunctionStub (from code-stubs-arm.cc). | 256 // Register state for CallFunctionStub (from code-stubs-arm.cc). |
| 259 // ----------- S t a t e ------------- | 257 // ----------- S t a t e ------------- |
| 260 // -- r1 : function | 258 // -- r1 : function |
| 261 // ----------------------------------- | 259 // ----------------------------------- |
| 262 Generate_DebugBreakCallHelper(masm, r1.bit(), 0); | 260 Generate_DebugBreakCallHelper(masm, r1.bit(), 0); |
| 263 } | 261 } |
| 264 | 262 |
| 265 | 263 |
| 264 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) { |
| 265 // Register state for CallFunctionStub (from code-stubs-arm.cc). |
| 266 // ----------- S t a t e ------------- |
| 267 // -- r1 : function |
| 268 // -- r2 : feedback array |
| 269 // -- r3 : slot in feedback array |
| 270 // ----------------------------------- |
| 271 Generate_DebugBreakCallHelper(masm, r1.bit() | r2.bit() | r3.bit(), 0); |
| 272 } |
| 273 |
| 274 |
| 266 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { | 275 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { |
| 267 // Calling convention for CallConstructStub (from code-stubs-arm.cc) | 276 // Calling convention for CallConstructStub (from code-stubs-arm.cc) |
| 268 // ----------- S t a t e ------------- | 277 // ----------- S t a t e ------------- |
| 269 // -- r0 : number of arguments (not smi) | 278 // -- r0 : number of arguments (not smi) |
| 270 // -- r1 : constructor function | 279 // -- r1 : constructor function |
| 271 // ----------------------------------- | 280 // ----------------------------------- |
| 272 Generate_DebugBreakCallHelper(masm, r1.bit(), r0.bit()); | 281 Generate_DebugBreakCallHelper(masm, r1.bit(), r0.bit()); |
| 273 } | 282 } |
| 274 | 283 |
| 275 | 284 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 329 |
| 321 #undef __ | 330 #undef __ |
| 322 | 331 |
| 323 | 332 |
| 324 | 333 |
| 325 #endif // ENABLE_DEBUGGER_SUPPORT | 334 #endif // ENABLE_DEBUGGER_SUPPORT |
| 326 | 335 |
| 327 } } // namespace v8::internal | 336 } } // namespace v8::internal |
| 328 | 337 |
| 329 #endif // V8_TARGET_ARCH_ARM | 338 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |