| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3691 } | 3691 } |
| 3692 | 3692 |
| 3693 | 3693 |
| 3694 void LCodeGen::DoCallNew(LCallNew* instr) { | 3694 void LCodeGen::DoCallNew(LCallNew* instr) { |
| 3695 ASSERT(ToRegister(instr->context()).is(esi)); | 3695 ASSERT(ToRegister(instr->context()).is(esi)); |
| 3696 ASSERT(ToRegister(instr->constructor()).is(edi)); | 3696 ASSERT(ToRegister(instr->constructor()).is(edi)); |
| 3697 ASSERT(ToRegister(instr->result()).is(eax)); | 3697 ASSERT(ToRegister(instr->result()).is(eax)); |
| 3698 | 3698 |
| 3699 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); | 3699 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); |
| 3700 __ Set(eax, Immediate(instr->arity())); | 3700 __ Set(eax, Immediate(instr->arity())); |
| 3701 // No cell in ebx for construct type feedback in optimized code. |
| 3702 Handle<Object> undefined_value(isolate()->heap()->undefined_value()); |
| 3703 __ mov(ebx, Immediate(undefined_value)); |
| 3701 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); | 3704 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); |
| 3702 } | 3705 } |
| 3703 | 3706 |
| 3704 | 3707 |
| 3705 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { | 3708 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { |
| 3706 CallRuntime(instr->function(), instr->arity(), instr); | 3709 CallRuntime(instr->function(), instr->arity(), instr); |
| 3707 } | 3710 } |
| 3708 | 3711 |
| 3709 | 3712 |
| 3710 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { | 3713 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
| (...skipping 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5537 FixedArray::kHeaderSize - kPointerSize)); | 5540 FixedArray::kHeaderSize - kPointerSize)); |
| 5538 __ bind(&done); | 5541 __ bind(&done); |
| 5539 } | 5542 } |
| 5540 | 5543 |
| 5541 | 5544 |
| 5542 #undef __ | 5545 #undef __ |
| 5543 | 5546 |
| 5544 } } // namespace v8::internal | 5547 } } // namespace v8::internal |
| 5545 | 5548 |
| 5546 #endif // V8_TARGET_ARCH_IA32 | 5549 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |