Remove some unused and unneeded flags.
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 11 Oct 2011 09:28:06 +0000 (09:28 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 11 Oct 2011 09:28:06 +0000 (09:28 +0000)
Review URL: http://codereview.chromium.org/8228004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9576 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

benchmarks/spinning-balls/v.js
src/arm/code-stubs-arm.cc
src/flag-definitions.h
src/ia32/code-stubs-ia32.cc
src/mips/code-stubs-mips.cc
src/spaces.h
src/x64/code-stubs-x64.cc

index 87366d939303312af2fc67a38779940a45feb66e..056c56dbff1d7f82fb166071a7f3980675b4e97a 100644 (file)
@@ -42,6 +42,9 @@ if ( !window.requestAnimationFrame ) {
   } )();
 }
 
+
+
+
 var kNPoints = 8000;
 var kNModifications = 20;
 var kNVisiblePoints = 200;
@@ -54,10 +57,22 @@ var livePoints = void 0;
 var dyingPoints = void 0;
 var scene = void 0;
 var renderingStartTime = void 0;
+var omitFrameDueToVisibilityChange = false;
 var scene = void 0;
 var pausePlot = void 0;
 var splayTree = void 0;
 
+handleVisibilityChange();
+
+function handleVisibilityChange() {
+  console.log("visibility change");
+  omitFrameDueToVisibilityChange = true;
+  document.addEventListener("webkitvisibilitychange", handleVisibilityChange);
+  document.addEventListener("msvisibilitychange", handleVisibilityChange);
+  document.addEventListener("mozvisibilitychange", handleVisibilityChange);
+  document.addEventListener("visibilitychange", handleVisibilityChange);
+}
+
 
 function Point(x, y, z, payload) {
   this.x = x;
@@ -353,9 +368,12 @@ function render() {
   scene.draw();
 
   var renderingEndTime = Date.now();
-  var pause = renderingEndTime - renderingStartTime;
-  pausePlot.addPause(pause);
+  if (!omitFrameDueToVisibilityChange) {
+    var pause = renderingEndTime - renderingStartTime;
+    pausePlot.addPause(pause);
+  }
   renderingStartTime = renderingEndTime;
+  omitFrameDueToVisibilityChange = false;
 
   pausePlot.draw();
 
index effa6080e9a7e419a1eec16c29eecb48318276d7..44923a1843d63736df76bafa052b9f26e416cdfb 100644 (file)
@@ -4426,10 +4426,6 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
 #ifdef V8_INTERPRETED_REGEXP
   __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
 #else  // V8_INTERPRETED_REGEXP
-  if (!FLAG_regexp_entry_native) {
-    __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
-    return;
-  }
 
   // Stack frame on entry.
   //  sp[0]: last_match_info (expected JSArray)
index 3d0d5bb0e49c4f414522eab192f7515634536bf9..6c66c0c35c41882985659bc212bd6b01ada1cf7c 100644 (file)
@@ -300,9 +300,6 @@ DEFINE_int(random_seed, 0,
 DEFINE_bool(canonicalize_object_literal_maps, true,
             "Canonicalize maps for object literals.")
 
-DEFINE_bool(use_big_map_space, true,
-            "Use big map space, but don't compact if it grew too big.")
-
 DEFINE_int(max_map_space_pages, MapSpace::kMaxMapPageIndex - 1,
            "Maximum number of pages in map space which still allows to encode "
            "forwarding pointers.  That's actually a constant, but it's useful "
@@ -338,7 +335,6 @@ DEFINE_bool(preemption, false,
 
 // Regexp
 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code")
-DEFINE_bool(regexp_entry_native, true, "use native code to enter regexp")
 
 // Testing flags test/cctest/test-{flags,api,serialization}.cc
 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag")
@@ -465,9 +461,6 @@ DEFINE_bool(collect_heap_spill_statistics, false,
 
 DEFINE_bool(trace_isolates, false, "trace isolate state changes")
 
-DEFINE_bool(trace_live_byte_count, false,
-            "trace updates to page live byte count")
-
 // VM state
 DEFINE_bool(log_state_changes, false, "Log state changes.")
 
index 8a3b897a842426f0d32edd1454451fc27fea98e3..1e886e202b315f03ca34e28b7749ba8c9a81f834 100644 (file)
@@ -3384,10 +3384,6 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
 #ifdef V8_INTERPRETED_REGEXP
   __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
 #else  // V8_INTERPRETED_REGEXP
-  if (!FLAG_regexp_entry_native) {
-    __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
-    return;
-  }
 
   // Stack frame on entry.
   //  esp[0]: return address
index a0c6d5055981b215eb0f2ba17aca0b6a70dcdc88..1fbbcfa66296d7a2771bb83e2d7422bbba548277 100644 (file)
@@ -4471,10 +4471,6 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
 #ifdef V8_INTERPRETED_REGEXP
   __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
 #else  // V8_INTERPRETED_REGEXP
-  if (!FLAG_regexp_entry_native) {
-    __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
-    return;
-  }
 
   // Stack frame on entry.
   //  sp[0]: last_match_info (expected JSArray)
index 6149334fe8cdccaeb29801818bde11d8f5c79d0a..ce8e382aaa9f96383ccad1ea524f02debe5b11bc 100644 (file)
@@ -452,7 +452,7 @@ class MemoryChunk {
   // Manage live byte count (count of bytes known to be live,
   // because they are marked black).
   void ResetLiveBytes() {
-    if (FLAG_trace_live_byte_count) {
+    if (FLAG_gc_verbose) {
       PrintF("ResetLiveBytes:%p:%x->0\n",
              static_cast<void*>(this), live_byte_count_);
     }
@@ -460,7 +460,7 @@ class MemoryChunk {
   }
   void IncrementLiveBytes(int by) {
     ASSERT_LE(static_cast<unsigned>(live_byte_count_), size_);
-    if (FLAG_trace_live_byte_count) {
+    if (FLAG_gc_verbose) {
       printf("UpdateLiveBytes:%p:%x%c=%x->%x\n",
              static_cast<void*>(this), live_byte_count_,
              ((by < 0) ? '-' : '+'), ((by < 0) ? -by : by),
index 5250f474369a367a57016f6fa0f38c705bb85928..7d41ffe53932610814debaf8e91b47bb7430e365 100644 (file)
@@ -2438,10 +2438,6 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
 #ifdef V8_INTERPRETED_REGEXP
   __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
 #else  // V8_INTERPRETED_REGEXP
-  if (!FLAG_regexp_entry_native) {
-    __ TailCallRuntime(Runtime::kRegExpExec, 4, 1);
-    return;
-  }
 
   // Stack frame on entry.
   //  rsp[0]: return address