| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 1d9e9421b1c831805af498222cdf071f8344d0a0..9d2fb6cb693c5df48d6292967db780741a634a1c 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -6130,47 +6130,6 @@ void LCodeGen::DoArrayLiteral(LArrayLiteral* instr) {
|
| }
|
|
|
|
|
| -void LCodeGen::DoObjectLiteral(LObjectLiteral* instr) {
|
| - ASSERT(ToRegister(instr->context()).is(esi));
|
| - 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(Immediate(Smi::FromInt(instr->hydrogen()->literal_index())));
|
| - __ push(Immediate(constant_properties));
|
| - __ push(Immediate(Smi::FromInt(flags)));
|
| - CallRuntime(Runtime::kCreateObjectLiteral, 4, instr);
|
| - } else if (flags != ObjectLiteral::kFastElements ||
|
| - properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) {
|
| - __ PushHeapObject(literals);
|
| - __ push(Immediate(Smi::FromInt(instr->hydrogen()->literal_index())));
|
| - __ push(Immediate(constant_properties));
|
| - __ push(Immediate(Smi::FromInt(flags)));
|
| - CallRuntime(Runtime::kCreateObjectLiteralShallow, 4, instr);
|
| - } else {
|
| - __ LoadHeapObject(eax, literals);
|
| - __ mov(ebx, Immediate(Smi::FromInt(instr->hydrogen()->literal_index())));
|
| - __ mov(ecx, Immediate(constant_properties));
|
| - __ mov(edx, Immediate(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(eax));
|
| __ push(eax);
|
|
|