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 "include/v8-debug.h" | 8 #include "include/v8-debug.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 Object* PromoteScheduledException(); | 794 Object* PromoteScheduledException(); |
795 void DoThrow(Object* exception, MessageLocation* location); | 795 void DoThrow(Object* exception, MessageLocation* location); |
796 // Checks if exception should be reported and finds out if it's | 796 // Checks if exception should be reported and finds out if it's |
797 // caught externally. | 797 // caught externally. |
798 bool ShouldReportException(bool* can_be_caught_externally, | 798 bool ShouldReportException(bool* can_be_caught_externally, |
799 bool catchable_by_javascript); | 799 bool catchable_by_javascript); |
800 | 800 |
801 // Attempts to compute the current source location, storing the | 801 // Attempts to compute the current source location, storing the |
802 // result in the target out parameter. | 802 // result in the target out parameter. |
803 void ComputeLocation(MessageLocation* target); | 803 void ComputeLocation(MessageLocation* target); |
804 void ComputeLocationFromStackTrace(MessageLocation* target, | 804 bool ComputeLocationFromStackTrace(MessageLocation* target, |
805 Handle<Object> exception); | 805 Handle<Object> exception); |
806 | 806 |
807 Handle<JSMessageObject> CreateMessage(Handle<Object> exception, | 807 Handle<JSMessageObject> CreateMessage(Handle<Object> exception, |
808 MessageLocation* location); | 808 MessageLocation* location); |
809 | 809 |
810 // Out of resource exception helpers. | 810 // Out of resource exception helpers. |
811 Object* StackOverflow(); | 811 Object* StackOverflow(); |
812 Object* TerminateExecution(); | 812 Object* TerminateExecution(); |
813 void CancelTerminateExecution(); | 813 void CancelTerminateExecution(); |
814 | 814 |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1538 } | 1538 } |
1539 | 1539 |
1540 EmbeddedVector<char, 128> filename_; | 1540 EmbeddedVector<char, 128> filename_; |
1541 FILE* file_; | 1541 FILE* file_; |
1542 int scope_depth_; | 1542 int scope_depth_; |
1543 }; | 1543 }; |
1544 | 1544 |
1545 } } // namespace v8::internal | 1545 } } // namespace v8::internal |
1546 | 1546 |
1547 #endif // V8_ISOLATE_H_ | 1547 #endif // V8_ISOLATE_H_ |
OLD | NEW |