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 <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
666 | 666 |
667 // This method is called by the api after operations that may throw | 667 // This method is called by the api after operations that may throw |
668 // exceptions. If an exception was thrown and not handled by an external | 668 // exceptions. If an exception was thrown and not handled by an external |
669 // handler the exception is scheduled to be rethrown when we return to running | 669 // handler the exception is scheduled to be rethrown when we return to running |
670 // JavaScript code. If an exception is scheduled true is returned. | 670 // JavaScript code. If an exception is scheduled true is returned. |
671 bool OptionalRescheduleException(bool is_bottom_call); | 671 bool OptionalRescheduleException(bool is_bottom_call); |
672 | 672 |
673 // Push and pop a promise and the current try-catch handler. | 673 // Push and pop a promise and the current try-catch handler. |
674 void PushPromise(Handle<JSObject> promise); | 674 void PushPromise(Handle<JSObject> promise); |
675 void PopPromise(); | 675 void PopPromise(); |
676 Handle<Object> GetPromiseOnStackOnThrow(); | 676 Handle<Object> GetPromiseOnStackOnThrow(); |
adamk
2016/09/09 19:13:44
Please give this a comment while you're changing w
Dan Ehrenberg
2016/09/10 01:58:03
Done
jgruber
2016/09/12 10:27:31
I think Adam meant a comment on GetPromiseOnStackO
Dan Ehrenberg
2016/09/12 22:12:11
Oops, gave a comment on that too. It's still retur
| |
677 bool PromiseHasUserDefinedRejectHandler(Handle<Object> promise); | |
677 | 678 |
678 class ExceptionScope { | 679 class ExceptionScope { |
679 public: | 680 public: |
680 // Scope currently can only be used for regular exceptions, | 681 // Scope currently can only be used for regular exceptions, |
681 // not termination exception. | 682 // not termination exception. |
682 inline explicit ExceptionScope(Isolate* isolate); | 683 inline explicit ExceptionScope(Isolate* isolate); |
683 inline ~ExceptionScope(); | 684 inline ~ExceptionScope(); |
684 | 685 |
685 private: | 686 private: |
686 Isolate* isolate_; | 687 Isolate* isolate_; |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1673 | 1674 |
1674 EmbeddedVector<char, 128> filename_; | 1675 EmbeddedVector<char, 128> filename_; |
1675 FILE* file_; | 1676 FILE* file_; |
1676 int scope_depth_; | 1677 int scope_depth_; |
1677 }; | 1678 }; |
1678 | 1679 |
1679 } // namespace internal | 1680 } // namespace internal |
1680 } // namespace v8 | 1681 } // namespace v8 |
1681 | 1682 |
1682 #endif // V8_ISOLATE_H_ | 1683 #endif // V8_ISOLATE_H_ |
OLD | NEW |