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

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

Issue 1314863003: [heap] More flag cleanup. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added more comments 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/log.cc ('k') | test/cctest/test-api.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/debug/debug-evaluate.h" 9 #include "src/debug/debug-evaluate.h"
10 #include "src/debug/debug-frames.h" 10 #include "src/debug/debug-frames.h"
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 context->set_security_token(isolate->native_context()->security_token()); 1567 context->set_security_token(isolate->native_context()->security_token());
1568 return context->global_proxy(); 1568 return context->global_proxy();
1569 } 1569 }
1570 1570
1571 1571
1572 // Performs a GC. 1572 // Performs a GC.
1573 // Presently, it only does a full GC. 1573 // Presently, it only does a full GC.
1574 RUNTIME_FUNCTION(Runtime_CollectGarbage) { 1574 RUNTIME_FUNCTION(Runtime_CollectGarbage) {
1575 SealHandleScope shs(isolate); 1575 SealHandleScope shs(isolate);
1576 DCHECK(args.length() == 1); 1576 DCHECK(args.length() == 1);
1577 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, "%CollectGarbage"); 1577 isolate->heap()->CollectAllGarbage("%CollectGarbage", Heap::kNoGCFlags);
1578 return isolate->heap()->undefined_value(); 1578 return isolate->heap()->undefined_value();
1579 } 1579 }
1580 1580
1581 1581
1582 // Gets the current heap usage. 1582 // Gets the current heap usage.
1583 RUNTIME_FUNCTION(Runtime_GetHeapUsage) { 1583 RUNTIME_FUNCTION(Runtime_GetHeapUsage) {
1584 SealHandleScope shs(isolate); 1584 SealHandleScope shs(isolate);
1585 DCHECK(args.length() == 0); 1585 DCHECK(args.length() == 0);
1586 int usage = static_cast<int>(isolate->heap()->SizeOfObjects()); 1586 int usage = static_cast<int>(isolate->heap()->SizeOfObjects());
1587 if (!Smi::IsValid(usage)) { 1587 if (!Smi::IsValid(usage)) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 return *isolate->factory()->undefined_value(); 1720 return *isolate->factory()->undefined_value();
1721 } 1721 }
1722 1722
1723 1723
1724 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 1724 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
1725 UNIMPLEMENTED(); 1725 UNIMPLEMENTED();
1726 return NULL; 1726 return NULL;
1727 } 1727 }
1728 } // namespace internal 1728 } // namespace internal
1729 } // namespace v8 1729 } // namespace v8
OLDNEW
« no previous file with comments | « src/log.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698