Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(889)

Side by Side Diff: src/isolate.h

Issue 2801023003: Revert of [inspector] move console to builtins (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/inspector/v8-inspector-impl.cc ('k') | src/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 16 matching lines...) Expand all
27 #include "src/zone/zone.h" 27 #include "src/zone/zone.h"
28 28
29 class TestIsolate; 29 class TestIsolate;
30 30
31 namespace v8 { 31 namespace v8 {
32 32
33 namespace base { 33 namespace base {
34 class RandomNumberGenerator; 34 class RandomNumberGenerator;
35 } 35 }
36 36
37 namespace debug {
38 class ConsoleDelegate;
39 }
40
41 namespace internal { 37 namespace internal {
42 38
43 class AccessCompilerData; 39 class AccessCompilerData;
44 class AddressToIndexHashMap; 40 class AddressToIndexHashMap;
45 class AstStringConstants; 41 class AstStringConstants;
46 class BasicBlockProfiler; 42 class BasicBlockProfiler;
47 class Bootstrapper; 43 class Bootstrapper;
48 class CancelableTaskManager; 44 class CancelableTaskManager;
49 class CallInterfaceDescriptorData; 45 class CallInterfaceDescriptorData;
50 class CodeAgingHelper; 46 class CodeAgingHelper;
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 Object* Throw(Object* exception, MessageLocation* location = NULL); 733 Object* Throw(Object* exception, MessageLocation* location = NULL);
738 Object* ThrowIllegalOperation(); 734 Object* ThrowIllegalOperation();
739 735
740 template <typename T> 736 template <typename T>
741 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception, 737 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception,
742 MessageLocation* location = NULL) { 738 MessageLocation* location = NULL) {
743 Throw(*exception, location); 739 Throw(*exception, location);
744 return MaybeHandle<T>(); 740 return MaybeHandle<T>();
745 } 741 }
746 742
747 void set_console_delegate(debug::ConsoleDelegate* delegate) {
748 console_delegate_ = delegate;
749 }
750 debug::ConsoleDelegate* console_delegate() { return console_delegate_; }
751
752 // Re-throw an exception. This involves no error reporting since error 743 // Re-throw an exception. This involves no error reporting since error
753 // reporting was handled when the exception was thrown originally. 744 // reporting was handled when the exception was thrown originally.
754 Object* ReThrow(Object* exception); 745 Object* ReThrow(Object* exception);
755 746
756 // Find the correct handler for the current pending exception. This also 747 // Find the correct handler for the current pending exception. This also
757 // clears and returns the current pending exception. 748 // clears and returns the current pending exception.
758 Object* UnwindAndFindHandler(); 749 Object* UnwindAndFindHandler();
759 750
760 // Tries to predict whether an exception will be caught. Note that this can 751 // Tries to predict whether an exception will be caught. Note that this can
761 // only produce an estimate, because it is undecidable whether a finally 752 // only produce an estimate, because it is undecidable whether a finally
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 BasicBlockProfiler* basic_block_profiler_; 1529 BasicBlockProfiler* basic_block_profiler_;
1539 1530
1540 List<Object*> partial_snapshot_cache_; 1531 List<Object*> partial_snapshot_cache_;
1541 1532
1542 v8::ArrayBuffer::Allocator* array_buffer_allocator_; 1533 v8::ArrayBuffer::Allocator* array_buffer_allocator_;
1543 1534
1544 FutexWaitListNode futex_wait_list_node_; 1535 FutexWaitListNode futex_wait_list_node_;
1545 1536
1546 CancelableTaskManager* cancelable_task_manager_; 1537 CancelableTaskManager* cancelable_task_manager_;
1547 1538
1548 debug::ConsoleDelegate* console_delegate_ = nullptr;
1549
1550 v8::Isolate::AbortOnUncaughtExceptionCallback 1539 v8::Isolate::AbortOnUncaughtExceptionCallback
1551 abort_on_uncaught_exception_callback_; 1540 abort_on_uncaught_exception_callback_;
1552 1541
1553 #ifdef USE_SIMULATOR 1542 #ifdef USE_SIMULATOR
1554 base::Mutex simulator_i_cache_mutex_; 1543 base::Mutex simulator_i_cache_mutex_;
1555 #endif 1544 #endif
1556 1545
1557 bool allow_atomics_wait_; 1546 bool allow_atomics_wait_;
1558 1547
1559 ManagedObjectFinalizer managed_object_finalizers_list_; 1548 ManagedObjectFinalizer managed_object_finalizers_list_;
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 1781
1793 EmbeddedVector<char, 128> filename_; 1782 EmbeddedVector<char, 128> filename_;
1794 FILE* file_; 1783 FILE* file_;
1795 int scope_depth_; 1784 int scope_depth_;
1796 }; 1785 };
1797 1786
1798 } // namespace internal 1787 } // namespace internal
1799 } // namespace v8 1788 } // namespace v8
1800 1789
1801 #endif // V8_ISOLATE_H_ 1790 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/inspector/v8-inspector-impl.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698