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 "include/v8-debug.h" | 9 #include "include/v8-debug.h" |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 } | 759 } |
760 | 760 |
761 // Re-throw an exception. This involves no error reporting since error | 761 // Re-throw an exception. This involves no error reporting since error |
762 // reporting was handled when the exception was thrown originally. | 762 // reporting was handled when the exception was thrown originally. |
763 Object* ReThrow(Object* exception); | 763 Object* ReThrow(Object* exception); |
764 | 764 |
765 // Find the correct handler for the current pending exception. This also | 765 // Find the correct handler for the current pending exception. This also |
766 // clears and returns the current pending exception. | 766 // clears and returns the current pending exception. |
767 Object* FindHandler(); | 767 Object* FindHandler(); |
768 | 768 |
| 769 // Remove per-frame stored materialized objects when we are unwinding |
| 770 // the frame. |
| 771 void RemoveMaterializedObjectsOnUnwind(StackFrame* frame); |
| 772 |
769 // Tries to predict whether an exception will be caught. Note that this can | 773 // Tries to predict whether an exception will be caught. Note that this can |
770 // only produce an estimate, because it is undecidable whether a finally | 774 // only produce an estimate, because it is undecidable whether a finally |
771 // clause will consume or re-throw an exception. We conservatively assume any | 775 // clause will consume or re-throw an exception. We conservatively assume any |
772 // finally clause will behave as if the exception were consumed. | 776 // finally clause will behave as if the exception were consumed. |
773 enum CatchType { NOT_CAUGHT, CAUGHT_BY_JAVASCRIPT, CAUGHT_BY_EXTERNAL }; | 777 enum CatchType { NOT_CAUGHT, CAUGHT_BY_JAVASCRIPT, CAUGHT_BY_EXTERNAL }; |
774 CatchType PredictExceptionCatcher(); | 778 CatchType PredictExceptionCatcher(); |
775 | 779 |
776 void ScheduleThrow(Object* exception); | 780 void ScheduleThrow(Object* exception); |
777 // Re-set pending message, script and positions reported to the TryCatch | 781 // Re-set pending message, script and positions reported to the TryCatch |
778 // back to the TLS for re-use when rethrowing. | 782 // back to the TLS for re-use when rethrowing. |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 } | 1603 } |
1600 | 1604 |
1601 EmbeddedVector<char, 128> filename_; | 1605 EmbeddedVector<char, 128> filename_; |
1602 FILE* file_; | 1606 FILE* file_; |
1603 int scope_depth_; | 1607 int scope_depth_; |
1604 }; | 1608 }; |
1605 | 1609 |
1606 } } // namespace v8::internal | 1610 } } // namespace v8::internal |
1607 | 1611 |
1608 #endif // V8_ISOLATE_H_ | 1612 #endif // V8_ISOLATE_H_ |
OLD | NEW |