| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 Handle<FixedArray> GetLoadedScripts(); | 423 Handle<FixedArray> GetLoadedScripts(); |
| 424 | 424 |
| 425 // Record function from which eval was called. | 425 // Record function from which eval was called. |
| 426 static void RecordEvalCaller(Handle<Script> script); | 426 static void RecordEvalCaller(Handle<Script> script); |
| 427 | 427 |
| 428 // Garbage collection notifications. | 428 // Garbage collection notifications. |
| 429 void AfterGarbageCollection(); | 429 void AfterGarbageCollection(); |
| 430 | 430 |
| 431 // Code generator routines. | 431 // Code generator routines. |
| 432 static void GenerateSlot(MacroAssembler* masm); | 432 static void GenerateSlot(MacroAssembler* masm); |
| 433 static void GenerateCallICStubDebugBreak(MacroAssembler* masm); |
| 433 static void GenerateLoadICDebugBreak(MacroAssembler* masm); | 434 static void GenerateLoadICDebugBreak(MacroAssembler* masm); |
| 434 static void GenerateStoreICDebugBreak(MacroAssembler* masm); | 435 static void GenerateStoreICDebugBreak(MacroAssembler* masm); |
| 435 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm); | 436 static void GenerateKeyedLoadICDebugBreak(MacroAssembler* masm); |
| 436 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm); | 437 static void GenerateKeyedStoreICDebugBreak(MacroAssembler* masm); |
| 437 static void GenerateCompareNilICDebugBreak(MacroAssembler* masm); | 438 static void GenerateCompareNilICDebugBreak(MacroAssembler* masm); |
| 438 static void GenerateReturnDebugBreak(MacroAssembler* masm); | 439 static void GenerateReturnDebugBreak(MacroAssembler* masm); |
| 439 static void GenerateCallFunctionStubDebugBreak(MacroAssembler* masm); | 440 static void GenerateCallFunctionStubDebugBreak(MacroAssembler* masm); |
| 440 static void GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm); | |
| 441 static void GenerateCallConstructStubDebugBreak(MacroAssembler* masm); | 441 static void GenerateCallConstructStubDebugBreak(MacroAssembler* masm); |
| 442 static void GenerateCallConstructStubRecordDebugBreak(MacroAssembler* masm); | 442 static void GenerateCallConstructStubRecordDebugBreak(MacroAssembler* masm); |
| 443 static void GenerateSlotDebugBreak(MacroAssembler* masm); | 443 static void GenerateSlotDebugBreak(MacroAssembler* masm); |
| 444 static void GeneratePlainReturnLiveEdit(MacroAssembler* masm); | 444 static void GeneratePlainReturnLiveEdit(MacroAssembler* masm); |
| 445 | 445 |
| 446 // FrameDropper is a code replacement for a JavaScript frame with possibly | 446 // FrameDropper is a code replacement for a JavaScript frame with possibly |
| 447 // several frames above. | 447 // several frames above. |
| 448 // There is no calling conventions here, because it never actually gets | 448 // There is no calling conventions here, because it never actually gets |
| 449 // called, it only gets returned to. | 449 // called, it only gets returned to. |
| 450 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); | 450 static void GenerateFrameDropperLiveEdit(MacroAssembler* masm); |
| 451 | 451 |
| 452 // Called from stub-cache.cc. | |
| 453 static void GenerateCallICDebugBreak(MacroAssembler* masm); | |
| 454 | |
| 455 // Describes how exactly a frame has been dropped from stack. | 452 // Describes how exactly a frame has been dropped from stack. |
| 456 enum FrameDropMode { | 453 enum FrameDropMode { |
| 457 // No frame has been dropped. | 454 // No frame has been dropped. |
| 458 FRAMES_UNTOUCHED, | 455 FRAMES_UNTOUCHED, |
| 459 // The top JS frame had been calling IC stub. IC stub mustn't be called now. | 456 // The top JS frame had been calling IC stub. IC stub mustn't be called now. |
| 460 FRAME_DROPPED_IN_IC_CALL, | 457 FRAME_DROPPED_IN_IC_CALL, |
| 461 // The top JS frame had been calling debug break slot stub. Patch the | 458 // The top JS frame had been calling debug break slot stub. Patch the |
| 462 // address this stub jumps to in the end. | 459 // address this stub jumps to in the end. |
| 463 FRAME_DROPPED_IN_DEBUG_SLOT_CALL, | 460 FRAME_DROPPED_IN_DEBUG_SLOT_CALL, |
| 464 // The top JS frame had been calling some C++ function. The return address | 461 // The top JS frame had been calling some C++ function. The return address |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 | 1055 |
| 1059 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 1056 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
| 1060 }; | 1057 }; |
| 1061 | 1058 |
| 1062 | 1059 |
| 1063 } } // namespace v8::internal | 1060 } } // namespace v8::internal |
| 1064 | 1061 |
| 1065 #endif // ENABLE_DEBUGGER_SUPPORT | 1062 #endif // ENABLE_DEBUGGER_SUPPORT |
| 1066 | 1063 |
| 1067 #endif // V8_DEBUG_H_ | 1064 #endif // V8_DEBUG_H_ |
| OLD | NEW |