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

Side by Side Diff: src/isolate.h

Issue 294943009: Allow microtasks to throw exceptions and handle them gracefully (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') | src/isolate.cc » ('J')
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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 bool ShouldReportException(bool* can_be_caught_externally, 749 bool ShouldReportException(bool* can_be_caught_externally,
750 bool catchable_by_javascript); 750 bool catchable_by_javascript);
751 751
752 // Attempts to compute the current source location, storing the 752 // Attempts to compute the current source location, storing the
753 // result in the target out parameter. 753 // result in the target out parameter.
754 void ComputeLocation(MessageLocation* target); 754 void ComputeLocation(MessageLocation* target);
755 755
756 // Out of resource exception helpers. 756 // Out of resource exception helpers.
757 Object* StackOverflow(); 757 Object* StackOverflow();
758 Object* TerminateExecution(); 758 Object* TerminateExecution();
759 bool IsExecutionTerminating();
759 void CancelTerminateExecution(); 760 void CancelTerminateExecution();
760 761
761 void InvokeApiInterruptCallback(); 762 void InvokeApiInterruptCallback();
762 763
763 // Administration 764 // Administration
764 void Iterate(ObjectVisitor* v); 765 void Iterate(ObjectVisitor* v);
765 void Iterate(ObjectVisitor* v, ThreadLocalTop* t); 766 void Iterate(ObjectVisitor* v, ThreadLocalTop* t);
766 char* Iterate(ObjectVisitor* v, char* t); 767 char* Iterate(ObjectVisitor* v, char* t);
767 void IterateThread(ThreadVisitor* v, char* t); 768 void IterateThread(ThreadVisitor* v, char* t);
768 769
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 } 1484 }
1484 1485
1485 EmbeddedVector<char, 128> filename_; 1486 EmbeddedVector<char, 128> filename_;
1486 FILE* file_; 1487 FILE* file_;
1487 int scope_depth_; 1488 int scope_depth_;
1488 }; 1489 };
1489 1490
1490 } } // namespace v8::internal 1491 } } // namespace v8::internal
1491 1492
1492 #endif // V8_ISOLATE_H_ 1493 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/isolate.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698