| 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 5813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5824 | 5824 |
| 5825 void Debug::DisableAgent() { | 5825 void Debug::DisableAgent() { |
| 5826 return i::Isolate::Current()->debugger()->StopAgent(); | 5826 return i::Isolate::Current()->debugger()->StopAgent(); |
| 5827 } | 5827 } |
| 5828 | 5828 |
| 5829 | 5829 |
| 5830 void Debug::ProcessDebugMessages() { | 5830 void Debug::ProcessDebugMessages() { |
| 5831 i::Execution::ProcessDebugMessages(true); | 5831 i::Execution::ProcessDebugMessages(true); |
| 5832 } | 5832 } |
| 5833 | 5833 |
| 5834 |
| 5834 Local<Context> Debug::GetDebugContext() { | 5835 Local<Context> Debug::GetDebugContext() { |
| 5835 i::Isolate* isolate = i::Isolate::Current(); | 5836 i::Isolate* isolate = i::Isolate::Current(); |
| 5836 EnsureInitializedForIsolate(isolate, "v8::Debug::GetDebugContext()"); | 5837 EnsureInitializedForIsolate(isolate, "v8::Debug::GetDebugContext()"); |
| 5837 ENTER_V8(isolate); | 5838 ENTER_V8(isolate); |
| 5838 return Utils::ToLocal(i::Isolate::Current()->debugger()->GetDebugContext()); | 5839 return Utils::ToLocal(i::Isolate::Current()->debugger()->GetDebugContext()); |
| 5839 } | 5840 } |
| 5840 | 5841 |
| 5842 |
| 5843 void Debug::SetLiveEditEnabled(bool enable, Isolate* isolate) { |
| 5844 // If no isolate is supplied, use the default isolate. |
| 5845 i::Debugger* debugger; |
| 5846 if (isolate != NULL) { |
| 5847 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate); |
| 5848 debugger = internal_isolate->debugger(); |
| 5849 } else { |
| 5850 debugger = i::Isolate::GetDefaultIsolateDebugger(); |
| 5851 } |
| 5852 debugger->set_live_edit_enabled(enable); |
| 5853 } |
| 5854 |
| 5855 |
| 5841 #endif // ENABLE_DEBUGGER_SUPPORT | 5856 #endif // ENABLE_DEBUGGER_SUPPORT |
| 5842 | 5857 |
| 5843 | 5858 |
| 5844 Handle<String> CpuProfileNode::GetFunctionName() const { | 5859 Handle<String> CpuProfileNode::GetFunctionName() const { |
| 5845 i::Isolate* isolate = i::Isolate::Current(); | 5860 i::Isolate* isolate = i::Isolate::Current(); |
| 5846 IsDeadCheck(isolate, "v8::CpuProfileNode::GetFunctionName"); | 5861 IsDeadCheck(isolate, "v8::CpuProfileNode::GetFunctionName"); |
| 5847 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | 5862 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
| 5848 const i::CodeEntry* entry = node->entry(); | 5863 const i::CodeEntry* entry = node->entry(); |
| 5849 if (!entry->has_name_prefix()) { | 5864 if (!entry->has_name_prefix()) { |
| 5850 return Handle<String>(ToApi<String>( | 5865 return Handle<String>(ToApi<String>( |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6527 | 6542 |
| 6528 v->VisitPointers(blocks_.first(), first_block_limit_); | 6543 v->VisitPointers(blocks_.first(), first_block_limit_); |
| 6529 | 6544 |
| 6530 for (int i = 1; i < blocks_.length(); i++) { | 6545 for (int i = 1; i < blocks_.length(); i++) { |
| 6531 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 6546 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
| 6532 } | 6547 } |
| 6533 } | 6548 } |
| 6534 | 6549 |
| 6535 | 6550 |
| 6536 } } // namespace v8::internal | 6551 } } // namespace v8::internal |
| OLD | NEW |