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

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

Issue 1303393004: Revert of [heap] More flag cleanup. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months 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 | « src/api.cc ('k') | src/extensions/statistics-extension.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 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 } 1302 }
1303 1303
1304 List<Handle<JSFunction> > functions; 1304 List<Handle<JSFunction> > functions;
1305 List<Handle<JSGeneratorObject> > suspended_generators; 1305 List<Handle<JSGeneratorObject> > suspended_generators;
1306 1306
1307 if (!shared->optimized_code_map()->IsSmi()) { 1307 if (!shared->optimized_code_map()->IsSmi()) {
1308 shared->ClearOptimizedCodeMap(); 1308 shared->ClearOptimizedCodeMap();
1309 } 1309 }
1310 1310
1311 // Make sure we abort incremental marking. 1311 // Make sure we abort incremental marking.
1312 isolate_->heap()->CollectAllGarbage("prepare for break points", 1312 isolate_->heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask,
1313 Heap::kMakeHeapIterableMask); 1313 "prepare for break points");
1314 1314
1315 { 1315 {
1316 HeapIterator iterator(isolate_->heap()); 1316 HeapIterator iterator(isolate_->heap());
1317 HeapObject* obj; 1317 HeapObject* obj;
1318 bool include_generators = shared->is_generator(); 1318 bool include_generators = shared->is_generator();
1319 1319
1320 while ((obj = iterator.next())) { 1320 while ((obj = iterator.next())) {
1321 if (obj->IsJSFunction()) { 1321 if (obj->IsJSFunction()) {
1322 JSFunction* function = JSFunction::cast(obj); 1322 JSFunction* function = JSFunction::cast(obj);
1323 if (!function->Inlines(*shared)) continue; 1323 if (!function->Inlines(*shared)) continue;
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 } 2613 }
2614 2614
2615 2615
2616 void LockingCommandMessageQueue::Clear() { 2616 void LockingCommandMessageQueue::Clear() {
2617 base::LockGuard<base::Mutex> lock_guard(&mutex_); 2617 base::LockGuard<base::Mutex> lock_guard(&mutex_);
2618 queue_.Clear(); 2618 queue_.Clear();
2619 } 2619 }
2620 2620
2621 } // namespace internal 2621 } // namespace internal
2622 } // namespace v8 2622 } // namespace v8
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/extensions/statistics-extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698