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

Side by Side Diff: src/isolate-inl.h

Issue 1929293002: Revert of Remove more dead code after Object.observe removal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/isolate.h ('k') | src/js/array.js » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_INL_H_ 5 #ifndef V8_ISOLATE_INL_H_
6 #define V8_ISOLATE_INL_H_ 6 #define V8_ISOLATE_INL_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/objects-inl.h" 9 #include "src/objects-inl.h"
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 thread_local_top_.scheduled_exception_ = heap_.the_hole_value(); 66 thread_local_top_.scheduled_exception_ = heap_.the_hole_value();
67 } 67 }
68 68
69 69
70 bool Isolate::is_catchable_by_javascript(Object* exception) { 70 bool Isolate::is_catchable_by_javascript(Object* exception) {
71 return exception != heap()->termination_exception(); 71 return exception != heap()->termination_exception();
72 } 72 }
73 73
74 74
75 Handle<JSGlobalObject> Isolate::global_object() { 75 Handle<JSGlobalObject> Isolate::global_object() {
76 return handle(context()->global_object(), this); 76 return Handle<JSGlobalObject>(context()->global_object(), this);
77 }
78
79 Handle<JSObject> Isolate::global_proxy() {
80 return handle(context()->global_proxy(), this);
81 } 77 }
82 78
83 79
84 Isolate::ExceptionScope::ExceptionScope(Isolate* isolate) 80 Isolate::ExceptionScope::ExceptionScope(Isolate* isolate)
85 : isolate_(isolate), 81 : isolate_(isolate),
86 pending_exception_(isolate_->pending_exception(), isolate_) {} 82 pending_exception_(isolate_->pending_exception(), isolate_) {}
87 83
88 84
89 Isolate::ExceptionScope::~ExceptionScope() { 85 Isolate::ExceptionScope::~ExceptionScope() {
90 isolate_->set_pending_exception(*pending_exception_); 86 isolate_->set_pending_exception(*pending_exception_);
91 } 87 }
92 88
93 89
94 #define NATIVE_CONTEXT_FIELD_ACCESSOR(index, type, name) \ 90 #define NATIVE_CONTEXT_FIELD_ACCESSOR(index, type, name) \
95 Handle<type> Isolate::name() { \ 91 Handle<type> Isolate::name() { \
96 return Handle<type>(native_context()->name(), this); \ 92 return Handle<type>(native_context()->name(), this); \
97 } \ 93 } \
98 bool Isolate::is_##name(type* value) { \ 94 bool Isolate::is_##name(type* value) { \
99 return native_context()->is_##name(value); \ 95 return native_context()->is_##name(value); \
100 } 96 }
101 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) 97 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR)
102 #undef NATIVE_CONTEXT_FIELD_ACCESSOR 98 #undef NATIVE_CONTEXT_FIELD_ACCESSOR
103 99
104 100
105 } // namespace internal 101 } // namespace internal
106 } // namespace v8 102 } // namespace v8
107 103
108 #endif // V8_ISOLATE_INL_H_ 104 #endif // V8_ISOLATE_INL_H_
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/js/array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698