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

Unified Diff: src/runtime.cc

Issue 6080009: Revert r6180 as it caused test failures (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
===================================================================
--- src/runtime.cc (revision 6182)
+++ src/runtime.cc (working copy)
@@ -10406,36 +10406,10 @@
}
-// Sets a v8 flag.
-static MaybeObject* Runtime_SetFlags(Arguments args) {
- CONVERT_CHECKED(String, arg, args[0]);
- SmartPointer<char> flags =
- arg->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL);
- FlagList::SetFlagsFromString(*flags, strlen(*flags));
- return Heap::undefined_value();
-}
-
-
-// Performs a GC.
-// Presently, it only does a full GC.
-static MaybeObject* Runtime_CollectGarbage(Arguments args) {
- Heap::CollectAllGarbage(true);
- return Heap::undefined_value();
-}
-
-
-// Gets the current heap usage.
-static MaybeObject* Runtime_GetHeapUsage(Arguments args) {
- int usage = Heap::SizeOfObjects();
- if (!Smi::IsValid(usage)) {
- return *Factory::NewNumberFromInt(usage);
- }
- return Smi::FromInt(usage);
-}
#endif // ENABLE_DEBUGGER_SUPPORT
-
#ifdef ENABLE_LOGGING_AND_PROFILING
+
static MaybeObject* Runtime_ProfilerResume(Arguments args) {
NoHandleAllocation ha;
ASSERT(args.length() == 2);
« no previous file with comments | « src/runtime.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698