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

Unified Diff: src/factory.cc

Issue 1077343002: [turbofan] Optimize loads of global constants in JSTypedLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/factory.h ('k') | src/types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 8fe765d9e2a9b785fa300a4695d5f01fa3288ac8..a33f288ccbe7dfd2457f4350e2815930c5784a0e 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -2342,10 +2342,10 @@ void Factory::SetRegExpIrregexpData(Handle<JSRegExp> regexp,
}
-Handle<Object> Factory::GlobalConstantFor(Handle<String> name) {
- if (String::Equals(name, undefined_string())) return undefined_value();
- if (String::Equals(name, nan_string())) return nan_value();
- if (String::Equals(name, infinity_string())) return infinity_value();
+Handle<Object> Factory::GlobalConstantFor(Handle<Name> name) {
+ if (Name::Equals(name, undefined_string())) return undefined_value();
+ if (Name::Equals(name, nan_string())) return nan_value();
+ if (Name::Equals(name, infinity_string())) return infinity_value();
return Handle<Object>::null();
}
« no previous file with comments | « src/factory.h ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698