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

Unified Diff: src/bootstrapper.cc

Issue 2795003003: Revert of [inspector] move console to builtins (Closed)
Patch Set: Created 3 years, 9 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/api.cc ('k') | src/builtins/builtins-console.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 9587403cdcf1360246a4cc650b44f38d1c85fbaa..eb06ff17a3e38b139019522152360d478422e55d 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2604,54 +2604,6 @@
static_cast<PropertyAttributes>(DONT_ENUM | READ_ONLY));
}
- { // -- C o n s o l e
- Handle<String> name = factory->InternalizeUtf8String("console");
- Handle<JSFunction> cons = factory->NewFunction(name);
- Handle<JSObject> empty = factory->NewJSObject(isolate->object_function());
- JSFunction::SetInstancePrototype(cons, empty);
- Handle<JSObject> console = factory->NewJSObject(cons, TENURED);
- DCHECK(console->IsJSObject());
- JSObject::AddProperty(global, name, console, DONT_ENUM);
- SimpleInstallFunction(console, "debug", Builtins::kConsoleDebug, 1, false);
- SimpleInstallFunction(console, "error", Builtins::kConsoleError, 1, false);
- SimpleInstallFunction(console, "info", Builtins::kConsoleInfo, 1, false);
- SimpleInstallFunction(console, "log", Builtins::kConsoleLog, 1, false);
- SimpleInstallFunction(console, "warn", Builtins::kConsoleWarn, 1, false);
- SimpleInstallFunction(console, "dir", Builtins::kConsoleDir, 1, false);
- SimpleInstallFunction(console, "dirxml", Builtins::kConsoleDirXml, 1,
- false);
- SimpleInstallFunction(console, "table", Builtins::kConsoleTable, 1, false);
- SimpleInstallFunction(console, "trace", Builtins::kConsoleTrace, 1, false);
- SimpleInstallFunction(console, "group", Builtins::kConsoleGroup, 1, false);
- SimpleInstallFunction(console, "groupCollapsed",
- Builtins::kConsoleGroupCollapsed, 1, false);
- SimpleInstallFunction(console, "groupEnd", Builtins::kConsoleGroupEnd, 1,
- false);
- SimpleInstallFunction(console, "clear", Builtins::kConsoleClear, 1, false);
- SimpleInstallFunction(console, "count", Builtins::kConsoleCount, 1, false);
- SimpleInstallFunction(console, "assert", Builtins::kConsoleAssert, 1,
- false);
- SimpleInstallFunction(console, "markTimeline",
- Builtins::kConsoleMarkTimeline, 1, false);
- SimpleInstallFunction(console, "profile", Builtins::kConsoleProfile, 1,
- false);
- SimpleInstallFunction(console, "profileEnd", Builtins::kConsoleProfileEnd,
- 1, false);
- SimpleInstallFunction(console, "timeline", Builtins::kConsoleTimeline, 1,
- false);
- SimpleInstallFunction(console, "timelineEnd", Builtins::kConsoleTimelineEnd,
- 1, false);
- SimpleInstallFunction(console, "time", Builtins::kConsoleTime, 1, false);
- SimpleInstallFunction(console, "timeEnd", Builtins::kConsoleTimeEnd, 1,
- false);
- SimpleInstallFunction(console, "timeStamp", Builtins::kConsoleTimeStamp, 1,
- false);
- JSObject::AddProperty(
- console, factory->to_string_tag_symbol(),
- factory->NewStringFromAsciiChecked("Console"),
- static_cast<PropertyAttributes>(DONT_ENUM | READ_ONLY));
- }
-
#ifdef V8_I18N_SUPPORT
{ // -- I n t l
Handle<String> name = factory->InternalizeUtf8String("Intl");
« no previous file with comments | « src/api.cc ('k') | src/builtins/builtins-console.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698