Revert "Revert "Upgrade to 5.0.71.48"" DO NOT MERGE
This reverts commit f2e3994fa5148cc3d9946666f0b0596290192b0e,
and updates the x64 makefile properly so it doesn't break that
build.
FPIIM-449
Change-Id: Ib83e35bfbae6af627451c926a9650ec57c045605
(cherry picked from commit 109988c7ccb6f3fd1a58574fa3dfb88beaef6632)
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc
index 3b92d7f..5f27a60 100644
--- a/src/runtime/runtime-test.cc
+++ b/src/runtime/runtime-test.cc
@@ -377,8 +377,7 @@
RUNTIME_FUNCTION(Runtime_NativeScriptsCount) {
DCHECK(args.length() == 0);
- return Smi::FromInt(Natives::GetBuiltinsCount() +
- ExtraNatives::GetBuiltinsCount());
+ return Smi::FromInt(Natives::GetBuiltinsCount());
}
@@ -409,53 +408,54 @@
return isolate->heap()->undefined_value();
}
+namespace {
-static int StackSize(Isolate* isolate) {
+int StackSize(Isolate* isolate) {
int n = 0;
for (JavaScriptFrameIterator it(isolate); !it.done(); it.Advance()) n++;
return n;
}
-
-static void PrintTransition(Isolate* isolate, Object* result) {
- // indentation
- {
- const int nmax = 80;
- int n = StackSize(isolate);
- if (n <= nmax)
- PrintF("%4d:%*s", n, n, "");
- else
- PrintF("%4d:%*s", n, nmax, "...");
- }
-
- if (result == NULL) {
- JavaScriptFrame::PrintTop(isolate, stdout, true, false);
- PrintF(" {\n");
+void PrintIndentation(Isolate* isolate) {
+ const int nmax = 80;
+ int n = StackSize(isolate);
+ if (n <= nmax) {
+ PrintF("%4d:%*s", n, n, "");
} else {
- // function result
- PrintF("} -> ");
- result->ShortPrint();
- PrintF("\n");
+ PrintF("%4d:%*s", n, nmax, "...");
}
}
+} // namespace
RUNTIME_FUNCTION(Runtime_TraceEnter) {
SealHandleScope shs(isolate);
- DCHECK(args.length() == 0);
- PrintTransition(isolate, NULL);
+ DCHECK_EQ(0, args.length());
+ PrintIndentation(isolate);
+ JavaScriptFrame::PrintTop(isolate, stdout, true, false);
+ PrintF(" {\n");
return isolate->heap()->undefined_value();
}
RUNTIME_FUNCTION(Runtime_TraceExit) {
SealHandleScope shs(isolate);
- DCHECK(args.length() == 1);
+ DCHECK_EQ(1, args.length());
CONVERT_ARG_CHECKED(Object, obj, 0);
- PrintTransition(isolate, obj);
+ PrintIndentation(isolate);
+ PrintF("} -> ");
+ obj->ShortPrint();
+ PrintF("\n");
return obj; // return TOS
}
+RUNTIME_FUNCTION(Runtime_TraceTailCall) {
+ SealHandleScope shs(isolate);
+ DCHECK_EQ(0, args.length());
+ PrintIndentation(isolate);
+ PrintF("} -> tail call ->\n");
+ return isolate->heap()->undefined_value();
+}
RUNTIME_FUNCTION(Runtime_HaveSameMap) {
SealHandleScope shs(isolate);