Commit 3e46a3b7 authored by mvstanton's avatar mvstanton Committed by Commit bot

Remove FLAG_flush_optimized_code_cache

It's no longer necessary, and has been off for a year.

BUG=

Review-Url: https://codereview.chromium.org/2553643002
Cr-Commit-Position: refs/heads/master@{#41499}
parent a32a67c7
...@@ -429,12 +429,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo( ...@@ -429,12 +429,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo(
if (shared->ic_age() != heap->global_ic_age()) { if (shared->ic_age() != heap->global_ic_age()) {
shared->ResetForNewContext(heap->global_ic_age()); shared->ResetForNewContext(heap->global_ic_age());
} }
if (FLAG_flush_optimized_code_cache) {
if (!shared->OptimizedCodeMapIsCleared()) {
// Always flush the optimized code map if requested by flag.
shared->ClearOptimizedCodeMap();
}
}
MarkCompactCollector* collector = heap->mark_compact_collector(); MarkCompactCollector* collector = heap->mark_compact_collector();
if (collector->is_code_flushing_enabled()) { if (collector->is_code_flushing_enabled()) {
if (IsFlushable(heap, shared)) { if (IsFlushable(heap, shared)) {
......
...@@ -4260,7 +4260,6 @@ TEST(Regress169928) { ...@@ -4260,7 +4260,6 @@ TEST(Regress169928) {
#ifdef DEBUG #ifdef DEBUG
TEST(Regress513507) { TEST(Regress513507) {
i::FLAG_flush_optimized_code_cache = false;
i::FLAG_allow_natives_syntax = true; i::FLAG_allow_natives_syntax = true;
i::FLAG_gc_global = true; i::FLAG_gc_global = true;
CcTest::InitializeVM(); CcTest::InitializeVM();
...@@ -4317,7 +4316,6 @@ TEST(Regress513507) { ...@@ -4317,7 +4316,6 @@ TEST(Regress513507) {
TEST(Regress514122) { TEST(Regress514122) {
if (!i::FLAG_incremental_marking) return; if (!i::FLAG_incremental_marking) return;
i::FLAG_flush_optimized_code_cache = false;
i::FLAG_allow_natives_syntax = true; i::FLAG_allow_natives_syntax = true;
CcTest::InitializeVM(); CcTest::InitializeVM();
Isolate* isolate = CcTest::i_isolate(); Isolate* isolate = CcTest::i_isolate();
...@@ -4410,7 +4408,6 @@ TEST(Regress514122) { ...@@ -4410,7 +4408,6 @@ TEST(Regress514122) {
TEST(OptimizedCodeMapReuseEntries) { TEST(OptimizedCodeMapReuseEntries) {
i::FLAG_flush_optimized_code_cache = false;
i::FLAG_allow_natives_syntax = true; i::FLAG_allow_natives_syntax = true;
// BUG(v8:4598): Since TurboFan doesn't treat maps in code weakly, we can't // BUG(v8:4598): Since TurboFan doesn't treat maps in code weakly, we can't
// run this test. // run this test.
...@@ -4518,7 +4515,6 @@ TEST(OptimizedCodeMapReuseEntries) { ...@@ -4518,7 +4515,6 @@ TEST(OptimizedCodeMapReuseEntries) {
TEST(Regress513496) { TEST(Regress513496) {
i::FLAG_flush_optimized_code_cache = false;
i::FLAG_allow_natives_syntax = true; i::FLAG_allow_natives_syntax = true;
CcTest::InitializeVM(); CcTest::InitializeVM();
Isolate* isolate = CcTest::i_isolate(); Isolate* isolate = CcTest::i_isolate();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --noflush-optimized-code-cache --allow-natives-syntax // Flags: --allow-natives-syntax
// The following triggers a GC in SharedFunctionInfo::AddToOptimizedCodeMap. // The following triggers a GC in SharedFunctionInfo::AddToOptimizedCodeMap.
// Flags: --gc-interval=1234 --gc-global // Flags: --gc-interval=1234 --gc-global
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment