| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 2363d032d1df71c321d21c537a0b1726599311cd..10cbb79617dbe1ed2a9ba9f4427f9c8b7928face 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2558,6 +2558,54 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
| 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("Object"),
|
| + static_cast<PropertyAttributes>(DONT_ENUM | READ_ONLY));
|
| + }
|
| +
|
| #ifdef V8_I18N_SUPPORT
|
| { // -- I n t l
|
| Handle<String> name = factory->InternalizeUtf8String("Intl");
|
|
|