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 "include/v8-debug.h" | 8 #include "include/v8-debug.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 } | 743 } |
744 | 744 |
745 // Re-throw an exception. This involves no error reporting since | 745 // Re-throw an exception. This involves no error reporting since |
746 // error reporting was handled when the exception was thrown | 746 // error reporting was handled when the exception was thrown |
747 // originally. | 747 // originally. |
748 Object* ReThrow(Object* exception); | 748 Object* ReThrow(Object* exception); |
749 void ScheduleThrow(Object* exception); | 749 void ScheduleThrow(Object* exception); |
750 // Re-set pending message, script and positions reported to the TryCatch | 750 // Re-set pending message, script and positions reported to the TryCatch |
751 // back to the TLS for re-use when rethrowing. | 751 // back to the TLS for re-use when rethrowing. |
752 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler); | 752 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler); |
| 753 // Un-schedule an exception that was caught by a TryCatch handler. |
| 754 void CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler); |
753 void ReportPendingMessages(); | 755 void ReportPendingMessages(); |
754 // Return pending location if any or unfilled structure. | 756 // Return pending location if any or unfilled structure. |
755 MessageLocation GetMessageLocation(); | 757 MessageLocation GetMessageLocation(); |
756 Object* ThrowIllegalOperation(); | 758 Object* ThrowIllegalOperation(); |
757 Object* ThrowInvalidStringLength(); | 759 Object* ThrowInvalidStringLength(); |
758 | 760 |
759 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. | 761 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. |
760 Object* PromoteScheduledException(); | 762 Object* PromoteScheduledException(); |
761 void DoThrow(Object* exception, MessageLocation* location); | 763 void DoThrow(Object* exception, MessageLocation* location); |
762 // Checks if exception should be reported and finds out if it's | 764 // Checks if exception should be reported and finds out if it's |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1526 } | 1528 } |
1527 | 1529 |
1528 EmbeddedVector<char, 128> filename_; | 1530 EmbeddedVector<char, 128> filename_; |
1529 FILE* file_; | 1531 FILE* file_; |
1530 int scope_depth_; | 1532 int scope_depth_; |
1531 }; | 1533 }; |
1532 | 1534 |
1533 } } // namespace v8::internal | 1535 } } // namespace v8::internal |
1534 | 1536 |
1535 #endif // V8_ISOLATE_H_ | 1537 #endif // V8_ISOLATE_H_ |
OLD | NEW |