From 0d05c71db4d42eb044b83c5b6e5388b583141790 Mon Sep 17 00:00:00 2001 From: whessev8 Date: Thu, 18 Sep 2008 07:31:37 +0000 Subject: [PATCH] Flush the runtime %DebugPrint output. Should have no performance impact, since %DebugPrint is not often used. Needed for some performance testing statistics outputting. Fix the declaration of descriptor enumerated constants to be more readable. Review URL: http://codereview.chromium.org/3100 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@332 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/globals.h | 5 +++-- src/runtime.cc | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/globals.h b/src/globals.h index f2c9ac47f9..2a5cf34ced 100644 --- a/src/globals.h +++ b/src/globals.h @@ -303,10 +303,11 @@ enum PropertyType { CONSTANT_FUNCTION = 2, // only in fast mode CALLBACKS = 3, INTERCEPTOR = 4, // only in lookup results, not in descriptors. - FIRST_PHANTOM_PROPERTY_TYPE = 5, // All properties before this are real. MAP_TRANSITION = 5, // only in fast mode CONSTANT_TRANSITION = 6, // only in fast mode - NULL_DESCRIPTOR = 7 // only in fast mode + NULL_DESCRIPTOR = 7, // only in fast mode + // All properties before MAP_TRANSITION are real. + FIRST_PHANTOM_PROPERTY_TYPE = MAP_TRANSITION }; diff --git a/src/runtime.cc b/src/runtime.cc index c579a206ef..d1f5e9d253 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -3207,6 +3207,7 @@ static Object* Runtime_DebugPrint(Arguments args) { args[0]->ShortPrint(); #endif PrintF("\n"); + Flush(); return args[0]; // return TOS }