Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Side by Side Diff: src/debug/debug.cc

Issue 1433923002: Maintain a FixedArray for the optimized code map. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Missed a case, also turn on flag for testing. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/flag-definitions.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/debug/debug.h" 5 #include "src/debug/debug.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 1304
1305 List<Handle<JSFunction> > functions; 1305 List<Handle<JSFunction> > functions;
1306 List<Handle<JSGeneratorObject> > suspended_generators; 1306 List<Handle<JSGeneratorObject> > suspended_generators;
1307 1307
1308 // Flush all optimized code maps. Note that the below heap iteration does not 1308 // Flush all optimized code maps. Note that the below heap iteration does not
1309 // cover this, because the given function might have been inlined into code 1309 // cover this, because the given function might have been inlined into code
1310 // for which no JSFunction exists. 1310 // for which no JSFunction exists.
1311 { 1311 {
1312 SharedFunctionInfo::Iterator iterator(isolate_); 1312 SharedFunctionInfo::Iterator iterator(isolate_);
1313 while (SharedFunctionInfo* shared = iterator.Next()) { 1313 while (SharedFunctionInfo* shared = iterator.Next()) {
1314 if (!shared->optimized_code_map()->IsSmi()) { 1314 if (!shared->OptimizedCodeMapIsCleared()) {
1315 shared->ClearOptimizedCodeMap(); 1315 shared->ClearOptimizedCodeMap();
1316 } 1316 }
1317 } 1317 }
1318 } 1318 }
1319 1319
1320 // Make sure we abort incremental marking. 1320 // Make sure we abort incremental marking.
1321 isolate_->heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask, 1321 isolate_->heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask,
1322 "prepare for break points"); 1322 "prepare for break points");
1323 1323
1324 { 1324 {
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2589 } 2589 }
2590 2590
2591 2591
2592 void LockingCommandMessageQueue::Clear() { 2592 void LockingCommandMessageQueue::Clear() {
2593 base::LockGuard<base::Mutex> lock_guard(&mutex_); 2593 base::LockGuard<base::Mutex> lock_guard(&mutex_);
2594 queue_.Clear(); 2594 queue_.Clear();
2595 } 2595 }
2596 2596
2597 } // namespace internal 2597 } // namespace internal
2598 } // namespace v8 2598 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698