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

Unified Diff: src/runtime/runtime-strings.cc

Issue 1010673004: Tweak the TurboFan pipeline for stub compilation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed spurious edit Created 5 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 side-by-side diff with in-line comments
Download patch
Index: src/runtime/runtime-strings.cc
diff --git a/src/runtime/runtime-strings.cc b/src/runtime/runtime-strings.cc
index 89b0d2bfa8fe08e430a19f65397f0d15a46604f7..09d2b47a9ac1181b9ceac1a25047c8fe6fdd54c8 100644
--- a/src/runtime/runtime-strings.cc
+++ b/src/runtime/runtime-strings.cc
@@ -1301,5 +1301,13 @@ RUNTIME_FUNCTION(Runtime_IsStringWrapperSafeForDefaultValueOf) {
UNIMPLEMENTED();
return NULL;
}
+
+
+RUNTIME_FUNCTION(Runtime_StringLength) {
+ HandleScope scope(isolate);
+ DCHECK(args.length() == 1);
+ CONVERT_ARG_HANDLE_CHECKED(String, s, 0);
+ return Smi::FromInt(s->length());
+}
}
} // namespace v8::internal

Powered by Google App Engine
This is Rietveld 408576698