| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index f908ea1ffc062b22096492a85d9cb9de9a14931d..124d6760ec825139843cae60b86f5510cca30a6d 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -5212,46 +5212,6 @@ void LCodeGen::DoArrayLiteral(LArrayLiteral* instr) {
|
| }
|
|
|
|
|
| -void LCodeGen::DoObjectLiteral(LObjectLiteral* instr) {
|
| - Handle<FixedArray> literals = instr->hydrogen()->literals();
|
| - Handle<FixedArray> constant_properties =
|
| - instr->hydrogen()->constant_properties();
|
| -
|
| - int flags = instr->hydrogen()->fast_elements()
|
| - ? ObjectLiteral::kFastElements
|
| - : ObjectLiteral::kNoFlags;
|
| - flags |= instr->hydrogen()->has_function()
|
| - ? ObjectLiteral::kHasFunction
|
| - : ObjectLiteral::kNoFlags;
|
| -
|
| - // Set up the parameters to the stub/runtime call and pick the right
|
| - // runtime function or stub to call.
|
| - int properties_count = instr->hydrogen()->constant_properties_length() / 2;
|
| - if ((FLAG_track_double_fields && instr->hydrogen()->may_store_doubles()) ||
|
| - instr->hydrogen()->depth() > 1) {
|
| - __ PushHeapObject(literals);
|
| - __ Push(Smi::FromInt(instr->hydrogen()->literal_index()));
|
| - __ Push(constant_properties);
|
| - __ Push(Smi::FromInt(flags));
|
| - CallRuntime(Runtime::kCreateObjectLiteral, 4, instr);
|
| - } else if (flags != ObjectLiteral::kFastElements ||
|
| - properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) {
|
| - __ PushHeapObject(literals);
|
| - __ Push(Smi::FromInt(instr->hydrogen()->literal_index()));
|
| - __ Push(constant_properties);
|
| - __ Push(Smi::FromInt(flags));
|
| - CallRuntime(Runtime::kCreateObjectLiteralShallow, 4, instr);
|
| - } else {
|
| - __ LoadHeapObject(rax, literals);
|
| - __ Move(rbx, Smi::FromInt(instr->hydrogen()->literal_index()));
|
| - __ Move(rcx, constant_properties);
|
| - __ Move(rdx, Smi::FromInt(flags));
|
| - FastCloneShallowObjectStub stub(properties_count);
|
| - CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
|
| - }
|
| -}
|
| -
|
| -
|
| void LCodeGen::DoToFastProperties(LToFastProperties* instr) {
|
| ASSERT(ToRegister(instr->value()).is(rax));
|
| __ push(rax);
|
|
|