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

Unified Diff: src/factory.h

Issue 2357433002: Revert of [crankshaft] Protect against deopt loops from string length overflows. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.h
diff --git a/src/factory.h b/src/factory.h
index 94ae55850a3a243bd7c6bbb63ebc510d5f7c5ebb..fc7870496e3ef2fcf590b39a80b78bbeb4cbde53 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -586,7 +586,9 @@
Handle<Object> NewError(Handle<JSFunction> constructor,
Handle<String> message);
- Handle<Object> NewInvalidStringLengthError();
+ Handle<Object> NewInvalidStringLengthError() {
+ return NewRangeError(MessageTemplate::kInvalidStringLength);
+ }
Handle<Object> NewURIError() {
return NewError(isolate()->uri_error_function(),
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698