Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: src/ast/ast.cc

Issue 2632503003: [runtime] Allocate space for computed property names (Closed)
Patch Set: Comments and reorder. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast/ast.h ('k') | src/compiler/access-info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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++) {
« no previous file with comments | « src/ast/ast.h ('k') | src/compiler/access-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698