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

Side by Side Diff: src/isolate.h

Issue 296133013: Revert "Make v8::TryCatch able to consume natively thrown exceptions (again)." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/api.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 "../include/v8-debug.h" 8 #include "../include/v8-debug.h"
9 #include "allocation.h" 9 #include "allocation.h"
10 #include "assert-scope.h" 10 #include "assert-scope.h"
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 } 728 }
729 729
730 // Re-throw an exception. This involves no error reporting since 730 // Re-throw an exception. This involves no error reporting since
731 // error reporting was handled when the exception was thrown 731 // error reporting was handled when the exception was thrown
732 // originally. 732 // originally.
733 Object* ReThrow(Object* exception); 733 Object* ReThrow(Object* exception);
734 void ScheduleThrow(Object* exception); 734 void ScheduleThrow(Object* exception);
735 // Re-set pending message, script and positions reported to the TryCatch 735 // Re-set pending message, script and positions reported to the TryCatch
736 // back to the TLS for re-use when rethrowing. 736 // back to the TLS for re-use when rethrowing.
737 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler); 737 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler);
738 // Un-schedule an exception that was caught by a TryCatch handler.
739 void CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler);
740 void ReportPendingMessages(); 738 void ReportPendingMessages();
741 // Return pending location if any or unfilled structure. 739 // Return pending location if any or unfilled structure.
742 MessageLocation GetMessageLocation(); 740 MessageLocation GetMessageLocation();
743 Object* ThrowIllegalOperation(); 741 Object* ThrowIllegalOperation();
744 Object* ThrowInvalidStringLength(); 742 Object* ThrowInvalidStringLength();
745 743
746 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. 744 // Promote a scheduled exception to pending. Asserts has_scheduled_exception.
747 Object* PromoteScheduledException(); 745 Object* PromoteScheduledException();
748 void DoThrow(Object* exception, MessageLocation* location); 746 void DoThrow(Object* exception, MessageLocation* location);
749 // Checks if exception should be reported and finds out if it's 747 // Checks if exception should be reported and finds out if it's
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 } 1491 }
1494 1492
1495 EmbeddedVector<char, 128> filename_; 1493 EmbeddedVector<char, 128> filename_;
1496 FILE* file_; 1494 FILE* file_;
1497 int scope_depth_; 1495 int scope_depth_;
1498 }; 1496 };
1499 1497
1500 } } // namespace v8::internal 1498 } } // namespace v8::internal
1501 1499
1502 #endif // V8_ISOLATE_H_ 1500 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698