OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 // originally. | 782 // originally. |
783 Failure* ReThrow(MaybeObject* exception); | 783 Failure* ReThrow(MaybeObject* exception); |
784 void ScheduleThrow(Object* exception); | 784 void ScheduleThrow(Object* exception); |
785 // Re-set pending message, script and positions reported to the TryCatch | 785 // Re-set pending message, script and positions reported to the TryCatch |
786 // back to the TLS for re-use when rethrowing. | 786 // back to the TLS for re-use when rethrowing. |
787 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler); | 787 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler); |
788 void ReportPendingMessages(); | 788 void ReportPendingMessages(); |
789 // Return pending location if any or unfilled structure. | 789 // Return pending location if any or unfilled structure. |
790 MessageLocation GetMessageLocation(); | 790 MessageLocation GetMessageLocation(); |
791 Failure* ThrowIllegalOperation(); | 791 Failure* ThrowIllegalOperation(); |
| 792 Failure* ThrowInvalidStringLength(); |
792 | 793 |
793 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. | 794 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. |
794 Failure* PromoteScheduledException(); | 795 Failure* PromoteScheduledException(); |
795 void DoThrow(Object* exception, MessageLocation* location); | 796 void DoThrow(Object* exception, MessageLocation* location); |
796 // Checks if exception should be reported and finds out if it's | 797 // Checks if exception should be reported and finds out if it's |
797 // caught externally. | 798 // caught externally. |
798 bool ShouldReportException(bool* can_be_caught_externally, | 799 bool ShouldReportException(bool* can_be_caught_externally, |
799 bool catchable_by_javascript); | 800 bool catchable_by_javascript); |
800 | 801 |
801 // Attempts to compute the current source location, storing the | 802 // Attempts to compute the current source location, storing the |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1549 } | 1550 } |
1550 | 1551 |
1551 EmbeddedVector<char, 128> filename_; | 1552 EmbeddedVector<char, 128> filename_; |
1552 FILE* file_; | 1553 FILE* file_; |
1553 int scope_depth_; | 1554 int scope_depth_; |
1554 }; | 1555 }; |
1555 | 1556 |
1556 } } // namespace v8::internal | 1557 } } // namespace v8::internal |
1557 | 1558 |
1558 #endif // V8_ISOLATE_H_ | 1559 #endif // V8_ISOLATE_H_ |
OLD | NEW |