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

Side by Side Diff: src/debug.cc

Issue 816353002: Revert "Retain maps for several garbage collections" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/flag-definitions.h » ('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/v8.h" 5 #include "src/v8.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 2455 matching lines...) Expand 10 before | Expand all | Expand 10 after
2466 } 2466 }
2467 2467
2468 2468
2469 Handle<FixedArray> Debug::GetLoadedScripts() { 2469 Handle<FixedArray> Debug::GetLoadedScripts() {
2470 // Create and fill the script cache when the loaded scripts is requested for 2470 // Create and fill the script cache when the loaded scripts is requested for
2471 // the first time. 2471 // the first time.
2472 if (script_cache_ == NULL) script_cache_ = new ScriptCache(isolate_); 2472 if (script_cache_ == NULL) script_cache_ = new ScriptCache(isolate_);
2473 2473
2474 // Perform GC to get unreferenced scripts evicted from the cache before 2474 // Perform GC to get unreferenced scripts evicted from the cache before
2475 // returning the content. 2475 // returning the content.
2476 isolate_->heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask, 2476 isolate_->heap()->CollectAllGarbage(Heap::kNoGCFlags,
2477 "Debug::GetLoadedScripts"); 2477 "Debug::GetLoadedScripts");
2478 2478
2479 // Get the scripts from the cache. 2479 // Get the scripts from the cache.
2480 return script_cache_->GetScripts(); 2480 return script_cache_->GetScripts();
2481 } 2481 }
2482 2482
2483 2483
2484 void Debug::RecordEvalCaller(Handle<Script> script) { 2484 void Debug::RecordEvalCaller(Handle<Script> script) {
2485 script->set_compilation_type(Script::COMPILATION_TYPE_EVAL); 2485 script->set_compilation_type(Script::COMPILATION_TYPE_EVAL);
2486 // For eval scripts add information on the function from which eval was 2486 // For eval scripts add information on the function from which eval was
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
3492 logger_->DebugEvent("Put", message.text()); 3492 logger_->DebugEvent("Put", message.text());
3493 } 3493 }
3494 3494
3495 3495
3496 void LockingCommandMessageQueue::Clear() { 3496 void LockingCommandMessageQueue::Clear() {
3497 base::LockGuard<base::Mutex> lock_guard(&mutex_); 3497 base::LockGuard<base::Mutex> lock_guard(&mutex_);
3498 queue_.Clear(); 3498 queue_.Clear();
3499 } 3499 }
3500 3500
3501 } } // namespace v8::internal 3501 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698