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

Side by Side Diff: src/isolate.h

Issue 1154163006: Debugger: consider try-finally scopes not catching wrt debug events. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: do not specifically test turbofan Created 5 years, 6 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/full-codegen.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 <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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 740
741 // Find the correct handler for the current pending exception. This also 741 // Find the correct handler for the current pending exception. This also
742 // clears and returns the current pending exception. 742 // clears and returns the current pending exception.
743 Object* UnwindAndFindHandler(); 743 Object* UnwindAndFindHandler();
744 744
745 // Tries to predict whether an exception will be caught. Note that this can 745 // Tries to predict whether an exception will be caught. Note that this can
746 // only produce an estimate, because it is undecidable whether a finally 746 // only produce an estimate, because it is undecidable whether a finally
747 // clause will consume or re-throw an exception. We conservatively assume any 747 // clause will consume or re-throw an exception. We conservatively assume any
748 // finally clause will behave as if the exception were consumed. 748 // finally clause will behave as if the exception were consumed.
749 enum CatchType { NOT_CAUGHT, CAUGHT_BY_JAVASCRIPT, CAUGHT_BY_EXTERNAL }; 749 enum CatchType { NOT_CAUGHT, CAUGHT_BY_JAVASCRIPT, CAUGHT_BY_EXTERNAL };
750 CatchType PredictExceptionCatcher(); 750 // With the PRECISE mode, try-finally is considered to catch the exception,
751 // as the exception may or may not be rethrown. With the CONSERVATIVE mode,
752 // try-finally is considered to always rethrow. This is to meet the
753 // expectation of the debugger.
754 enum ExceptionPredictionMode { PRECISE_PREDICTION, CONSERVATIVE_PREDICTION };
755 CatchType PredictExceptionCatcher(
756 ExceptionPredictionMode prediction_mode = PRECISE_PREDICTION);
Michael Starzinger 2015/05/29 09:00:55 As discussed offline: The only reason PredictExcep
751 757
752 void ScheduleThrow(Object* exception); 758 void ScheduleThrow(Object* exception);
753 // Re-set pending message, script and positions reported to the TryCatch 759 // Re-set pending message, script and positions reported to the TryCatch
754 // back to the TLS for re-use when rethrowing. 760 // back to the TLS for re-use when rethrowing.
755 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler); 761 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler);
756 // Un-schedule an exception that was caught by a TryCatch handler. 762 // Un-schedule an exception that was caught by a TryCatch handler.
757 void CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler); 763 void CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler);
758 void ReportPendingMessages(); 764 void ReportPendingMessages();
759 // Return pending location if any or unfilled structure. 765 // Return pending location if any or unfilled structure.
760 MessageLocation GetMessageLocation(); 766 MessageLocation GetMessageLocation();
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1581 } 1587 }
1582 1588
1583 EmbeddedVector<char, 128> filename_; 1589 EmbeddedVector<char, 128> filename_;
1584 FILE* file_; 1590 FILE* file_;
1585 int scope_depth_; 1591 int scope_depth_;
1586 }; 1592 };
1587 1593
1588 } } // namespace v8::internal 1594 } } // namespace v8::internal
1589 1595
1590 #endif // V8_ISOLATE_H_ 1596 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698