| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 // -- a1 : function | 267 // -- a1 : function |
| 268 // ----------------------------------- | 268 // ----------------------------------- |
| 269 Generate_DebugBreakCallHelper(masm, a1.bit(), 0); | 269 Generate_DebugBreakCallHelper(masm, a1.bit(), 0); |
| 270 } | 270 } |
| 271 | 271 |
| 272 | 272 |
| 273 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) { | 273 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) { |
| 274 // Register state for CallFunctionStub (from code-stubs-mips.cc). | 274 // Register state for CallFunctionStub (from code-stubs-mips.cc). |
| 275 // ----------- S t a t e ------------- | 275 // ----------- S t a t e ------------- |
| 276 // -- a1 : function | 276 // -- a1 : function |
| 277 // -- a2 : feedback array | 277 // -- a2 : cache cell for call target |
| 278 // -- a3 : slot in feedback array | |
| 279 // ----------------------------------- | 278 // ----------------------------------- |
| 280 Generate_DebugBreakCallHelper(masm, a1.bit() | a2.bit() | a3.bit(), 0); | 279 Generate_DebugBreakCallHelper(masm, a1.bit() | a2.bit(), 0); |
| 281 } | 280 } |
| 282 | 281 |
| 283 | 282 |
| 284 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { | 283 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { |
| 285 // Calling convention for CallConstructStub (from code-stubs-mips.cc). | 284 // Calling convention for CallConstructStub (from code-stubs-mips.cc). |
| 286 // ----------- S t a t e ------------- | 285 // ----------- S t a t e ------------- |
| 287 // -- a0 : number of arguments (not smi) | 286 // -- a0 : number of arguments (not smi) |
| 288 // -- a1 : constructor function | 287 // -- a1 : constructor function |
| 289 // ----------------------------------- | 288 // ----------------------------------- |
| 290 Generate_DebugBreakCallHelper(masm, a1.bit() , a0.bit()); | 289 Generate_DebugBreakCallHelper(masm, a1.bit() , a0.bit()); |
| 291 } | 290 } |
| 292 | 291 |
| 293 | 292 |
| 294 void Debug::GenerateCallConstructStubRecordDebugBreak(MacroAssembler* masm) { | 293 void Debug::GenerateCallConstructStubRecordDebugBreak(MacroAssembler* masm) { |
| 295 // Calling convention for CallConstructStub (from code-stubs-mips.cc). | 294 // Calling convention for CallConstructStub (from code-stubs-mips.cc). |
| 296 // ----------- S t a t e ------------- | 295 // ----------- S t a t e ------------- |
| 297 // -- a0 : number of arguments (not smi) | 296 // -- a0 : number of arguments (not smi) |
| 298 // -- a1 : constructor function | 297 // -- a1 : constructor function |
| 299 // -- a2 : feedback array | 298 // -- a2 : cache cell for call target |
| 300 // -- a3 : feedback slot (smi) | |
| 301 // ----------------------------------- | 299 // ----------------------------------- |
| 302 Generate_DebugBreakCallHelper(masm, a1.bit() | a2.bit() | a3.bit(), a0.bit()); | 300 Generate_DebugBreakCallHelper(masm, a1.bit() | a2.bit(), a0.bit()); |
| 303 } | 301 } |
| 304 | 302 |
| 305 | 303 |
| 306 void Debug::GenerateSlot(MacroAssembler* masm) { | 304 void Debug::GenerateSlot(MacroAssembler* masm) { |
| 307 // Generate enough nop's to make space for a call instruction. Avoid emitting | 305 // Generate enough nop's to make space for a call instruction. Avoid emitting |
| 308 // the trampoline pool in the debug break slot code. | 306 // the trampoline pool in the debug break slot code. |
| 309 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm); | 307 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm); |
| 310 Label check_codesize; | 308 Label check_codesize; |
| 311 __ bind(&check_codesize); | 309 __ bind(&check_codesize); |
| 312 __ RecordDebugBreakSlot(); | 310 __ RecordDebugBreakSlot(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 338 const bool Debug::kFrameDropperSupported = false; | 336 const bool Debug::kFrameDropperSupported = false; |
| 339 | 337 |
| 340 #undef __ | 338 #undef __ |
| 341 | 339 |
| 342 | 340 |
| 343 #endif // ENABLE_DEBUGGER_SUPPORT | 341 #endif // ENABLE_DEBUGGER_SUPPORT |
| 344 | 342 |
| 345 } } // namespace v8::internal | 343 } } // namespace v8::internal |
| 346 | 344 |
| 347 #endif // V8_TARGET_ARCH_MIPS | 345 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |