Flush the runtime %DebugPrint output. Should have no performance impact,
authorwhessev8 <whessev8@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 18 Sep 2008 07:31:37 +0000 (07:31 +0000)
committerwhessev8 <whessev8@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 18 Sep 2008 07:31:37 +0000 (07:31 +0000)
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
src/runtime.cc

index f2c9ac4..2a5cf34 100644 (file)
@@ -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
 };
 
 
index c579a20..d1f5e9d 100644 (file)
@@ -3207,6 +3207,7 @@ static Object* Runtime_DebugPrint(Arguments args) {
   args[0]->ShortPrint();
 #endif
   PrintF("\n");
+  Flush();
 
   return args[0];  // return TOS
 }