OLD | NEW |
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 "include/v8-debug.h" | 9 #include "include/v8-debug.h" |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 bool IsInternallyUsedPropertyName(Object* name); | 742 bool IsInternallyUsedPropertyName(Object* name); |
743 | 743 |
744 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); | 744 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); |
745 void ReportFailedAccessCheck(Handle<JSObject> receiver); | 745 void ReportFailedAccessCheck(Handle<JSObject> receiver); |
746 | 746 |
747 // Exception throwing support. The caller should use the result | 747 // Exception throwing support. The caller should use the result |
748 // of Throw() as its return value. | 748 // of Throw() as its return value. |
749 Object* Throw(Object* exception, MessageLocation* location = NULL); | 749 Object* Throw(Object* exception, MessageLocation* location = NULL); |
750 Object* ThrowIllegalOperation(); | 750 Object* ThrowIllegalOperation(); |
751 | 751 |
| 752 void ReportBootstrappingException(Handle<Object> exception, |
| 753 MessageLocation* location); |
| 754 |
752 template <typename T> | 755 template <typename T> |
753 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception, | 756 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception, |
754 MessageLocation* location = NULL) { | 757 MessageLocation* location = NULL) { |
755 Throw(*exception, location); | 758 Throw(*exception, location); |
756 return MaybeHandle<T>(); | 759 return MaybeHandle<T>(); |
757 } | 760 } |
758 | 761 |
759 // Re-throw an exception. This involves no error reporting since error | 762 // Re-throw an exception. This involves no error reporting since error |
760 // reporting was handled when the exception was thrown originally. | 763 // reporting was handled when the exception was thrown originally. |
761 Object* ReThrow(Object* exception); | 764 Object* ReThrow(Object* exception); |
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 } | 1600 } |
1598 | 1601 |
1599 EmbeddedVector<char, 128> filename_; | 1602 EmbeddedVector<char, 128> filename_; |
1600 FILE* file_; | 1603 FILE* file_; |
1601 int scope_depth_; | 1604 int scope_depth_; |
1602 }; | 1605 }; |
1603 | 1606 |
1604 } } // namespace v8::internal | 1607 } } // namespace v8::internal |
1605 | 1608 |
1606 #endif // V8_ISOLATE_H_ | 1609 #endif // V8_ISOLATE_H_ |
OLD | NEW |