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

Side by Side Diff: src/isolate.h

Issue 206383002: Revert "Throw exception on invalid string length instead of OOM." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/func-name-inferrer.cc ('k') | 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 // 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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 // originally. 782 // originally.
783 Failure* ReThrow(MaybeObject* exception); 783 Failure* ReThrow(MaybeObject* exception);
784 void ScheduleThrow(Object* exception); 784 void ScheduleThrow(Object* exception);
785 // Re-set pending message, script and positions reported to the TryCatch 785 // Re-set pending message, script and positions reported to the TryCatch
786 // back to the TLS for re-use when rethrowing. 786 // back to the TLS for re-use when rethrowing.
787 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler); 787 void RestorePendingMessageFromTryCatch(v8::TryCatch* handler);
788 void ReportPendingMessages(); 788 void ReportPendingMessages();
789 // Return pending location if any or unfilled structure. 789 // Return pending location if any or unfilled structure.
790 MessageLocation GetMessageLocation(); 790 MessageLocation GetMessageLocation();
791 Failure* ThrowIllegalOperation(); 791 Failure* ThrowIllegalOperation();
792 Failure* ThrowInvalidStringLength();
793 792
794 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. 793 // Promote a scheduled exception to pending. Asserts has_scheduled_exception.
795 Failure* PromoteScheduledException(); 794 Failure* PromoteScheduledException();
796 void DoThrow(Object* exception, MessageLocation* location); 795 void DoThrow(Object* exception, MessageLocation* location);
797 // 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
798 // caught externally. 797 // caught externally.
799 bool ShouldReportException(bool* can_be_caught_externally, 798 bool ShouldReportException(bool* can_be_caught_externally,
800 bool catchable_by_javascript); 799 bool catchable_by_javascript);
801 800
802 // Attempts to compute the current source location, storing the 801 // Attempts to compute the current source location, storing the
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 } 1549 }
1551 1550
1552 EmbeddedVector<char, 128> filename_; 1551 EmbeddedVector<char, 128> filename_;
1553 FILE* file_; 1552 FILE* file_;
1554 int scope_depth_; 1553 int scope_depth_;
1555 }; 1554 };
1556 1555
1557 } } // namespace v8::internal 1556 } } // namespace v8::internal
1558 1557
1559 #endif // V8_ISOLATE_H_ 1558 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/func-name-inferrer.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698