| Index: src/crankshaft/hydrogen.cc
|
| diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
|
| index 974621aa31e88ae7f0e2d3e2a00bb1ba7dcab912..d4b55c3ef5e4cf8688428243bee27d252febd7e2 100644
|
| --- a/src/crankshaft/hydrogen.cc
|
| +++ b/src/crankshaft/hydrogen.cc
|
| @@ -5658,7 +5658,7 @@ void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) {
|
| Handle<Context> script_context = ScriptContextTable::GetContext(
|
| script_contexts, lookup.context_index);
|
| Handle<Object> current_value =
|
| - FixedArray::get(script_context, lookup.slot_index);
|
| + FixedArray::get(*script_context, lookup.slot_index, isolate());
|
|
|
| // If the values is not the hole, it will stay initialized,
|
| // so no need to generate a check.
|
| @@ -6864,7 +6864,7 @@ void HOptimizedGraphBuilder::HandleGlobalVariableAssignment(
|
| ScriptContextTable::GetContext(script_contexts, lookup.context_index);
|
|
|
| Handle<Object> current_value =
|
| - FixedArray::get(script_context, lookup.slot_index);
|
| + FixedArray::get(*script_context, lookup.slot_index, isolate());
|
|
|
| // If the values is not the hole, it will stay initialized,
|
| // so no need to generate a check.
|
| @@ -7388,8 +7388,8 @@ HInstruction* HOptimizedGraphBuilder::BuildMonomorphicElementAccess(
|
|
|
|
|
| static bool CanInlineElementAccess(Handle<Map> map) {
|
| - return map->IsJSObjectMap() && !map->has_dictionary_elements() &&
|
| - !map->has_sloppy_arguments_elements() &&
|
| + return map->IsJSObjectMap() &&
|
| + (map->has_fast_elements() || map->has_fixed_typed_array_elements()) &&
|
| !map->has_indexed_interceptor() && !map->is_access_check_needed();
|
| }
|
|
|
|
|