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

Side by Side Diff: src/isolate.h

Issue 1309673003: Small MessageLocation related refactoring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: keep old default values Created 5 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 | « no previous file | 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 <set> 9 #include <set>
10 10
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 void CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler); 765 void CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler);
766 void ReportPendingMessages(); 766 void ReportPendingMessages();
767 // Return pending location if any or unfilled structure. 767 // Return pending location if any or unfilled structure.
768 MessageLocation GetMessageLocation(); 768 MessageLocation GetMessageLocation();
769 769
770 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. 770 // Promote a scheduled exception to pending. Asserts has_scheduled_exception.
771 Object* PromoteScheduledException(); 771 Object* PromoteScheduledException();
772 772
773 // Attempts to compute the current source location, storing the 773 // Attempts to compute the current source location, storing the
774 // result in the target out parameter. 774 // result in the target out parameter.
775 void ComputeLocation(MessageLocation* target); 775 bool ComputeLocation(MessageLocation* target);
776 bool ComputeLocationFromException(MessageLocation* target, 776 bool ComputeLocationFromException(MessageLocation* target,
777 Handle<Object> exception); 777 Handle<Object> exception);
778 bool ComputeLocationFromStackTrace(MessageLocation* target, 778 bool ComputeLocationFromStackTrace(MessageLocation* target,
779 Handle<Object> exception); 779 Handle<Object> exception);
780 780
781 Handle<JSMessageObject> CreateMessage(Handle<Object> exception, 781 Handle<JSMessageObject> CreateMessage(Handle<Object> exception,
782 MessageLocation* location); 782 MessageLocation* location);
783 783
784 // Out of resource exception helpers. 784 // Out of resource exception helpers.
785 Object* StackOverflow(); 785 Object* StackOverflow();
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 } 1587 }
1588 1588
1589 EmbeddedVector<char, 128> filename_; 1589 EmbeddedVector<char, 128> filename_;
1590 FILE* file_; 1590 FILE* file_;
1591 int scope_depth_; 1591 int scope_depth_;
1592 }; 1592 };
1593 1593
1594 } } // namespace v8::internal 1594 } } // namespace v8::internal
1595 1595
1596 #endif // V8_ISOLATE_H_ 1596 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698