Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index dac09a9cdde0b2b063118b6523f8da426f6dc067..8d0c6332b4dfb9afb8fd8bed6acff7d254821aaf 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1166,7 +1166,8 @@ void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { |
void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
Comment cmnt(masm_, "[ ObjectLiteral"); |
- Handle<FixedArray> constant_properties = expr->constant_properties(); |
+ Handle<FixedArray> constant_properties = |
+ expr->GetOrBuildConstantProperties(isolate()); |
__ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
__ Mov(x2, Smi::FromInt(expr->literal_index())); |
__ Mov(x1, Operand(constant_properties)); |
@@ -1295,7 +1296,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
Comment cmnt(masm_, "[ ArrayLiteral"); |
- Handle<ConstantElementsPair> constant_elements = expr->constant_elements(); |
+ Handle<ConstantElementsPair> constant_elements = |
+ expr->GetOrBuildConstantElements(isolate()); |
bool has_fast_elements = |
IsFastObjectElementsKind(expr->constant_elements_kind()); |