Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 99a84a1c1eb54aa19ff620770776c81d3ed21f38..7cfc3dadf8f0072ed35fbe1dcf7b893890492260 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -542,6 +542,9 @@ void Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
} |
} else if (is_monomorphic_) { |
monomorphic_receiver_type_ = oracle->LoadMonomorphicReceiverType(this); |
+ if (monomorphic_receiver_type_->has_external_array_elements()) { |
+ SetExternalArrayType(oracle->GetKeyedLoadExternalArrayType(this)); |
+ } |
} |
} |
@@ -559,6 +562,9 @@ void Assignment::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
} else if (is_monomorphic_) { |
// Record receiver type for monomorphic keyed loads. |
monomorphic_receiver_type_ = oracle->StoreMonomorphicReceiverType(this); |
+ if (monomorphic_receiver_type_->has_external_array_elements()) { |
+ SetExternalArrayType(oracle->GetKeyedStoreExternalArrayType(this)); |
+ } |
} |
} |