| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 if (data.start() == NULL) { | 56 if (data.start() == NULL) { |
| 57 V8::FatalProcessOutOfMemory("PrintLn"); | 57 V8::FatalProcessOutOfMemory("PrintLn"); |
| 58 return; | 58 return; |
| 59 } | 59 } |
| 60 s->WriteAscii(data.start()); | 60 s->WriteAscii(data.start()); |
| 61 PrintF("%s\n", data.start()); | 61 PrintF("%s\n", data.start()); |
| 62 } | 62 } |
| 63 | 63 |
| 64 | 64 |
| 65 static Handle<Code> ComputeCallDebugBreak(int argc) { | 65 static Handle<Code> ComputeCallDebugBreak(int argc) { |
| 66 CALL_HEAP_FUNCTION(StubCache::ComputeCallDebugBreak(argc), Code); | 66 CALL_HEAP_FUNCTION( |
| 67 Isolate::Current()->stub_cache()->ComputeCallDebugBreak(argc), |
| 68 Code); |
| 67 } | 69 } |
| 68 | 70 |
| 69 | 71 |
| 70 static Handle<Code> ComputeCallDebugPrepareStepIn(int argc) { | 72 static Handle<Code> ComputeCallDebugPrepareStepIn(int argc) { |
| 71 CALL_HEAP_FUNCTION(StubCache::ComputeCallDebugPrepareStepIn(argc), Code); | 73 CALL_HEAP_FUNCTION( |
| 74 Isolate::Current()->stub_cache()->ComputeCallDebugPrepareStepIn(argc), |
| 75 Code); |
| 72 } | 76 } |
| 73 | 77 |
| 74 | 78 |
| 75 static v8::Handle<v8::Context> GetDebugEventContext() { | 79 static v8::Handle<v8::Context> GetDebugEventContext() { |
| 76 Handle<Context> context = Debug::debugger_entry()->GetContext(); | 80 Handle<Context> context = Debug::debugger_entry()->GetContext(); |
| 77 // Top::context() may have been NULL when "script collected" event occured. | 81 // Top::context() may have been NULL when "script collected" event occured. |
| 78 if (*context == NULL) { | 82 if (*context == NULL) { |
| 79 return v8::Local<v8::Context>(); | 83 return v8::Local<v8::Context>(); |
| 80 } | 84 } |
| 81 Handle<Context> global_context(context->global_context()); | 85 Handle<Context> global_context(context->global_context()); |
| (...skipping 2768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2850 { | 2854 { |
| 2851 Locker locker; | 2855 Locker locker; |
| 2852 Debugger::CallMessageDispatchHandler(); | 2856 Debugger::CallMessageDispatchHandler(); |
| 2853 } | 2857 } |
| 2854 } | 2858 } |
| 2855 } | 2859 } |
| 2856 | 2860 |
| 2857 #endif // ENABLE_DEBUGGER_SUPPORT | 2861 #endif // ENABLE_DEBUGGER_SUPPORT |
| 2858 | 2862 |
| 2859 } } // namespace v8::internal | 2863 } } // namespace v8::internal |
| OLD | NEW |