| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index dd2f788b4bfa1283aa3fc420aa656b6c5631f5e9..d44d47dd49e7888d1c067c9561be18ce589f4614 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -1566,7 +1566,7 @@ HValue* CodeStubGraphBuilder<FastNewClosureStub>::BuildCodeStub() {
|
| HInstruction* js_function =
|
| Add<HAllocate>(size, HType::JSObject(), NOT_TENURED, JS_FUNCTION_TYPE);
|
|
|
| - int map_index = Context::FunctionMapIndex(casted_stub()->strict_mode(),
|
| + int map_index = Context::FunctionMapIndex(casted_stub()->language_mode(),
|
| casted_stub()->kind());
|
|
|
| // Compute the function map in the current native context and set that
|
|
|