| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index c6a1c32eadab97f63990b1ff1be3a9d1c967f717..8fd5f3e992b89f0da001508e40af4a53a98615a7 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2437,6 +2437,22 @@ void Genesis::InitializeGlobal_harmony_simd() {
|
| }
|
|
|
|
|
| +void Genesis::InitializeGlobal_harmony_object_values() {
|
| + if (!FLAG_harmony_object_values) return;
|
| +
|
| + Handle<JSGlobalObject> global(
|
| + JSGlobalObject::cast(native_context()->global_object()));
|
| + Isolate* isolate = global->GetIsolate();
|
| + Factory* factory = isolate->factory();
|
| +
|
| + Handle<JSFunction> object_function = isolate->object_function();
|
| + SimpleInstallFunction(object_function, factory->entries_string(),
|
| + Builtins::kObjectEntries, 1, false);
|
| + SimpleInstallFunction(object_function, factory->values_string(),
|
| + Builtins::kObjectValues, 1, false);
|
| +}
|
| +
|
| +
|
| void Genesis::InstallJSProxyMaps() {
|
| // Allocate the different maps for all Proxy types.
|
| // Next to the default proxy, we need maps indicating callable and
|
| @@ -2842,6 +2858,7 @@ bool Genesis::InstallExperimentalNatives() {
|
| static const char* harmony_function_name_natives[] = {nullptr};
|
| static const char* promise_extra_natives[] = {"native promise-extra.js",
|
| nullptr};
|
| + static const char* harmony_object_values_natives[] = {nullptr};
|
|
|
| for (int i = ExperimentalNatives::GetDebuggerCount();
|
| i < ExperimentalNatives::GetBuiltinsCount(); i++) {
|
|
|