OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 | 736 |
737 // Exception throwing support. The caller should use the result | 737 // Exception throwing support. The caller should use the result |
738 // of Throw() as its return value. | 738 // of Throw() as its return value. |
739 Failure* Throw(Object* exception, MessageLocation* location = NULL); | 739 Failure* Throw(Object* exception, MessageLocation* location = NULL); |
740 // Re-throw an exception. This involves no error reporting since | 740 // Re-throw an exception. This involves no error reporting since |
741 // error reporting was handled when the exception was thrown | 741 // error reporting was handled when the exception was thrown |
742 // originally. | 742 // originally. |
743 Failure* ReThrow(MaybeObject* exception); | 743 Failure* ReThrow(MaybeObject* exception); |
744 void ScheduleThrow(Object* exception); | 744 void ScheduleThrow(Object* exception); |
745 void ReportPendingMessages(); | 745 void ReportPendingMessages(); |
| 746 // Return pending location if any or unfilled structure. |
| 747 MessageLocation GetMessageLocation(); |
746 Failure* ThrowIllegalOperation(); | 748 Failure* ThrowIllegalOperation(); |
747 | 749 |
748 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. | 750 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. |
749 Failure* PromoteScheduledException(); | 751 Failure* PromoteScheduledException(); |
750 void DoThrow(Object* exception, MessageLocation* location); | 752 void DoThrow(Object* exception, MessageLocation* location); |
751 // Checks if exception should be reported and finds out if it's | 753 // Checks if exception should be reported and finds out if it's |
752 // caught externally. | 754 // caught externally. |
753 bool ShouldReportException(bool* can_be_caught_externally, | 755 bool ShouldReportException(bool* can_be_caught_externally, |
754 bool catchable_by_javascript); | 756 bool catchable_by_javascript); |
755 | 757 |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 | 1445 |
1444 // Mark the native context with out of memory. | 1446 // Mark the native context with out of memory. |
1445 inline void Context::mark_out_of_memory() { | 1447 inline void Context::mark_out_of_memory() { |
1446 native_context()->set_out_of_memory(HEAP->true_value()); | 1448 native_context()->set_out_of_memory(HEAP->true_value()); |
1447 } | 1449 } |
1448 | 1450 |
1449 | 1451 |
1450 } } // namespace v8::internal | 1452 } } // namespace v8::internal |
1451 | 1453 |
1452 #endif // V8_ISOLATE_H_ | 1454 #endif // V8_ISOLATE_H_ |
OLD | NEW |