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

Side by Side Diff: src/isolate.h

Issue 1397853005: [es6] Partially implement Reflect.preventExtensions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
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 <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } \ 157 } \
158 } while (false) 158 } while (false)
159 159
160 #define RETURN_FAILURE_ON_EXCEPTION(isolate, call) \ 160 #define RETURN_FAILURE_ON_EXCEPTION(isolate, call) \
161 RETURN_ON_EXCEPTION_VALUE(isolate, call, isolate->heap()->exception()) 161 RETURN_ON_EXCEPTION_VALUE(isolate, call, isolate->heap()->exception())
162 162
163 #define RETURN_ON_EXCEPTION(isolate, call, T) \ 163 #define RETURN_ON_EXCEPTION(isolate, call, T) \
164 RETURN_ON_EXCEPTION_VALUE(isolate, call, MaybeHandle<T>()) 164 RETURN_ON_EXCEPTION_VALUE(isolate, call, MaybeHandle<T>())
165 165
166 166
167 // Macros for Maybe.
168
169 #define MAYBE_ASSIGN_RETURN_ON_EXCEPTION(isolate, T, dst, call) \
170 do { \
171 Maybe<T> result_of_the_call = (call); \
172 if (result_of_the_call.IsNothing()) { \
173 DCHECK((isolate)->has_pending_exception()); \
174 return isolate->heap()->exception(); \
175 } \
176 (dst) = result_of_the_call.FromJust(); \
177 } while (false)
178
179
167 #define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \ 180 #define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \
168 C(Handler, handler) \ 181 C(Handler, handler) \
169 C(CEntryFP, c_entry_fp) \ 182 C(CEntryFP, c_entry_fp) \
170 C(CFunction, c_function) \ 183 C(CFunction, c_function) \
171 C(Context, context) \ 184 C(Context, context) \
172 C(PendingException, pending_exception) \ 185 C(PendingException, pending_exception) \
173 C(PendingHandlerContext, pending_handler_context) \ 186 C(PendingHandlerContext, pending_handler_context) \
174 C(PendingHandlerCode, pending_handler_code) \ 187 C(PendingHandlerCode, pending_handler_code) \
175 C(PendingHandlerOffset, pending_handler_offset) \ 188 C(PendingHandlerOffset, pending_handler_offset) \
176 C(PendingHandlerFP, pending_handler_fp) \ 189 C(PendingHandlerFP, pending_handler_fp) \
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 1569
1557 EmbeddedVector<char, 128> filename_; 1570 EmbeddedVector<char, 128> filename_;
1558 FILE* file_; 1571 FILE* file_;
1559 int scope_depth_; 1572 int scope_depth_;
1560 }; 1573 };
1561 1574
1562 } // namespace internal 1575 } // namespace internal
1563 } // namespace v8 1576 } // namespace v8
1564 1577
1565 #endif // V8_ISOLATE_H_ 1578 #endif // V8_ISOLATE_H_
OLDNEW
« src/builtins.cc ('K') | « src/builtins.cc ('k') | test/mjsunit/harmony/reflect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698