Index: src/ast/ast.cc |
diff --git a/src/ast/ast.cc b/src/ast/ast.cc |
index c63f90ecf11f398ebfdecf5c6fd25356dd934f83..67b51fec9764bc50c299cfb81b4d49627e2b6124 100644 |
--- a/src/ast/ast.cc |
+++ b/src/ast/ast.cc |
@@ -582,9 +582,9 @@ void ObjectLiteral::InitDepthAndFlags() { |
void ObjectLiteral::BuildConstantProperties(Isolate* isolate) { |
if (!constant_properties_.is_null()) return; |
- // Allocate a fixed array to hold all the constant properties. |
- Handle<FixedArray> constant_properties = |
- isolate->factory()->NewFixedArray(boilerplate_properties_ * 2, TENURED); |
+ Handle<BoilerplateDescription> constant_properties = |
+ isolate->factory()->NewBoilerplateDescription( |
+ boilerplate_properties_, properties()->length(), has_seen_proto()); |
int position = 0; |
for (int i = 0; i < properties()->length(); i++) { |