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

Side by Side Diff: src/isolate.h

Issue 2203803002: [debug] Don't notify listener of exceptions internal to a desugaring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « src/debug/debug.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 // reporting was handled when the exception was thrown originally. 741 // reporting was handled when the exception was thrown originally.
742 Object* ReThrow(Object* exception); 742 Object* ReThrow(Object* exception);
743 743
744 // Find the correct handler for the current pending exception. This also 744 // Find the correct handler for the current pending exception. This also
745 // clears and returns the current pending exception. 745 // clears and returns the current pending exception.
746 Object* UnwindAndFindHandler(); 746 Object* UnwindAndFindHandler();
747 747
748 // Tries to predict whether an exception will be caught. Note that this can 748 // Tries to predict whether an exception will be caught. Note that this can
749 // only produce an estimate, because it is undecidable whether a finally 749 // only produce an estimate, because it is undecidable whether a finally
750 // clause will consume or re-throw an exception. 750 // clause will consume or re-throw an exception.
751 enum CatchType { NOT_CAUGHT, CAUGHT_BY_JAVASCRIPT, CAUGHT_BY_EXTERNAL }; 751 enum CatchType {
752 NOT_CAUGHT,
753 CAUGHT_BY_JAVASCRIPT,
754 CAUGHT_BY_EXTERNAL,
755 CAUGHT_BY_DESUGARING
756 };
752 CatchType PredictExceptionCatcher(); 757 CatchType PredictExceptionCatcher();
753 758
754 void ScheduleThrow(Object* exception); 759 void ScheduleThrow(Object* exception);
755 // Re-set pending message, script and positions reported to the TryCatch 760 // Re-set pending message, script and positions reported to the TryCatch
756 // back to the TLS for re-use when rethrowing. 761 // back to the TLS for re-use when rethrowing.
757 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler); 762 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler);
758 // Un-schedule an exception that was caught by a TryCatch handler. 763 // Un-schedule an exception that was caught by a TryCatch handler.
759 void CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler); 764 void CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler);
760 void ReportPendingMessages(); 765 void ReportPendingMessages();
761 // Return pending location if any or unfilled structure. 766 // Return pending location if any or unfilled structure.
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 1660
1656 EmbeddedVector<char, 128> filename_; 1661 EmbeddedVector<char, 128> filename_;
1657 FILE* file_; 1662 FILE* file_;
1658 int scope_depth_; 1663 int scope_depth_;
1659 }; 1664 };
1660 1665
1661 } // namespace internal 1666 } // namespace internal
1662 } // namespace v8 1667 } // namespace v8
1663 1668
1664 #endif // V8_ISOLATE_H_ 1669 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/debug/debug.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698