Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 9fad2183ecafb643a6e8aa7e3305ad346ab5cc44..2222f4723ba39f3109460553f6559248dc5fc847 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -3564,6 +3564,26 @@ void Genesis::InitializeGlobal_enable_fast_array_builtins() { |
Handle<JSFunction>::cast(for_each_function) |
->shared() |
->set_code(isolate->builtins()->builtin(Builtins::kArrayForEach)); |
+ |
+ LookupIterator it4(array_prototype, |
+ factory->NewStringFromAsciiChecked("every"), |
+ LookupIterator::OWN_SKIP_INTERCEPTOR); |
+ Handle<Object> every_function = Object::GetProperty(&it4).ToHandleChecked(); |
+ Handle<JSFunction>::cast(every_function) |
+ ->set_code(isolate->builtins()->builtin(Builtins::kArrayEvery)); |
+ Handle<JSFunction>::cast(every_function) |
+ ->shared() |
+ ->set_code(isolate->builtins()->builtin(Builtins::kArrayEvery)); |
+ |
+ LookupIterator it5(array_prototype, |
+ factory->NewStringFromAsciiChecked("some"), |
+ LookupIterator::OWN_SKIP_INTERCEPTOR); |
+ Handle<Object> some_function = Object::GetProperty(&it5).ToHandleChecked(); |
+ Handle<JSFunction>::cast(some_function) |
+ ->set_code(isolate->builtins()->builtin(Builtins::kArraySome)); |
+ Handle<JSFunction>::cast(some_function) |
+ ->shared() |
+ ->set_code(isolate->builtins()->builtin(Builtins::kArraySome)); |
} |
void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { |