| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 8c08ba1587f6d5fc4600fa716bfed0997d5b356d..bdd501cfa2a0624ba1385c43dda68c56ead6da69 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1230,6 +1230,7 @@ void Factory::InitializeFunction(Handle<JSFunction> function,
|
| function->set_prototype_or_initial_map(*the_hole_value());
|
| function->set_literals_or_bindings(*empty_fixed_array());
|
| function->set_next_function_link(*undefined_value());
|
| + if (info->is_arrow()) function->RemovePrototype();
|
| }
|
|
|
|
|
| @@ -1889,15 +1890,13 @@ Handle<FixedArray> Factory::NewTypeFeedbackVector(int slot_count) {
|
|
|
|
|
| Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
|
| - Handle<String> name,
|
| - int number_of_literals,
|
| - bool is_generator,
|
| - Handle<Code> code,
|
| - Handle<ScopeInfo> scope_info,
|
| + Handle<String> name, int number_of_literals, bool is_generator,
|
| + bool is_arrow, Handle<Code> code, Handle<ScopeInfo> scope_info,
|
| Handle<FixedArray> feedback_vector) {
|
| Handle<SharedFunctionInfo> shared = NewSharedFunctionInfo(name, code);
|
| shared->set_scope_info(*scope_info);
|
| shared->set_feedback_vector(*feedback_vector);
|
| + shared->set_is_arrow(is_arrow);
|
| int literals_array_size = number_of_literals;
|
| // If the function contains object, regexp or array literals,
|
| // allocate extra space for a literals array prefix containing the
|
|
|