Chromium Code Reviews| Index: src/compiler/bytecode-graph-builder.cc |
| diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
| index 7a0f635651718a915bc275b2a1a35370eb5f1f82..e3031ffb7f174ce740735308339d67f1953767b2 100644 |
| --- a/src/compiler/bytecode-graph-builder.cc |
| +++ b/src/compiler/bytecode-graph-builder.cc |
| @@ -1213,15 +1213,16 @@ void BytecodeGraphBuilder::VisitCreateArrayLiteral() { |
| void BytecodeGraphBuilder::VisitCreateObjectLiteral() { |
| PrepareEagerCheckpoint(); |
| - Handle<FixedArray> constant_properties = Handle<FixedArray>::cast( |
| - bytecode_iterator().GetConstantForIndexOperand(0)); |
| + Handle<BoilerplateDescription> constant_properties = |
| + Handle<BoilerplateDescription>::cast( |
| + bytecode_iterator().GetConstantForIndexOperand(0)); |
| int literal_index = bytecode_iterator().GetIndexOperand(1); |
| int bytecode_flags = bytecode_iterator().GetFlagOperand(2); |
| int literal_flags = |
| interpreter::CreateObjectLiteralFlags::FlagsBits::decode(bytecode_flags); |
| // TODO(mstarzinger): Thread through number of properties. The below number is |
| // only an estimate and does not match {ObjectLiteral::properties_count}. |
| - int number_of_properties = constant_properties->length() / 2; |
| + int number_of_properties = constant_properties->size(); |
|
Michael Starzinger
2017/01/27 12:11:31
This is the only note-worthy piece of the change,
|
| Node* literal = NewNode( |
| javascript()->CreateLiteralObject(constant_properties, literal_flags, |
| literal_index, number_of_properties), |