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

Unified Diff: src/runtime.cc

Issue 356213003: Support non-internalized string key lookups in Hydrogen KeyedLoadIC (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 6 years, 6 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
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index e1540477f5386d11e8d3e1533dc209f1d1656e17..8728a0559b3d25c9a44fd156949e68edb3d93d7f 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -4476,6 +4476,14 @@ RUNTIME_FUNCTION(Runtime_SubString) {
}
+RUNTIME_FUNCTION(Runtime_InternalizeString) {
+ HandleScope handles(isolate);
+ RUNTIME_ASSERT(args.length() == 1);
+ CONVERT_ARG_HANDLE_CHECKED(String, string, 0);
+ return *isolate->factory()->InternalizeString(string);
+}
+
+
RUNTIME_FUNCTION(Runtime_StringMatch) {
HandleScope handles(isolate);
ASSERT(args.length() == 3);

Powered by Google App Engine
This is Rietveld 408576698