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