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

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: REBASE. 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') | no next file with comments »
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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 1300
1301 List<Handle<JSFunction> > functions; 1301 List<Handle<JSFunction> > functions;
1302 List<Handle<JSGeneratorObject> > suspended_generators; 1302 List<Handle<JSGeneratorObject> > suspended_generators;
1303 1303
1304 // Flush all optimized code maps. Note that the below heap iteration does not 1304 // Flush all optimized code maps. Note that the below heap iteration does not
1305 // cover this, because the given function might have been inlined into code 1305 // cover this, because the given function might have been inlined into code
1306 // for which no JSFunction exists. 1306 // for which no JSFunction exists.
1307 { 1307 {
1308 SharedFunctionInfo::Iterator iterator(isolate_); 1308 SharedFunctionInfo::Iterator iterator(isolate_);
1309 while (SharedFunctionInfo* shared = iterator.Next()) { 1309 while (SharedFunctionInfo* shared = iterator.Next()) {
1310 if (!shared->optimized_code_map()->IsSmi()) { 1310 if (!shared->OptimizedCodeMapIsCleared()) {
1311 shared->ClearOptimizedCodeMap(); 1311 shared->ClearOptimizedCodeMap();
1312 } 1312 }
1313 } 1313 }
1314 } 1314 }
1315 1315
1316 // Make sure we abort incremental marking. 1316 // Make sure we abort incremental marking.
1317 isolate_->heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask, 1317 isolate_->heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask,
1318 "prepare for break points"); 1318 "prepare for break points");
1319 1319
1320 { 1320 {
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 } 2585 }
2586 2586
2587 2587
2588 void LockingCommandMessageQueue::Clear() { 2588 void LockingCommandMessageQueue::Clear() {
2589 base::LockGuard<base::Mutex> lock_guard(&mutex_); 2589 base::LockGuard<base::Mutex> lock_guard(&mutex_);
2590 queue_.Clear(); 2590 queue_.Clear();
2591 } 2591 }
2592 2592
2593 } // namespace internal 2593 } // namespace internal
2594 } // namespace v8 2594 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698