| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |