| 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 4216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4227 } | 4227 } |
| 4228 | 4228 |
| 4229 | 4229 |
| 4230 void LCodeGen::DoCallNew(LCallNew* instr) { | 4230 void LCodeGen::DoCallNew(LCallNew* instr) { |
| 4231 ASSERT(ToRegister(instr->context()).is(esi)); | 4231 ASSERT(ToRegister(instr->context()).is(esi)); |
| 4232 ASSERT(ToRegister(instr->constructor()).is(edi)); | 4232 ASSERT(ToRegister(instr->constructor()).is(edi)); |
| 4233 ASSERT(ToRegister(instr->result()).is(eax)); | 4233 ASSERT(ToRegister(instr->result()).is(eax)); |
| 4234 | 4234 |
| 4235 // No cell in ebx for construct type feedback in optimized code | 4235 // No cell in ebx for construct type feedback in optimized code |
| 4236 __ mov(ebx, isolate()->factory()->undefined_value()); | 4236 __ mov(ebx, isolate()->factory()->undefined_value()); |
| 4237 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); | 4237 CallConstructStub stub(NO_CALL_CONSTRUCTOR_FLAGS); |
| 4238 __ Set(eax, Immediate(instr->arity())); | 4238 __ Set(eax, Immediate(instr->arity())); |
| 4239 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); | 4239 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
| 4240 } | 4240 } |
| 4241 | 4241 |
| 4242 | 4242 |
| 4243 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { | 4243 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
| 4244 ASSERT(ToRegister(instr->context()).is(esi)); | 4244 ASSERT(ToRegister(instr->context()).is(esi)); |
| 4245 ASSERT(ToRegister(instr->constructor()).is(edi)); | 4245 ASSERT(ToRegister(instr->constructor()).is(edi)); |
| 4246 ASSERT(ToRegister(instr->result()).is(eax)); | 4246 ASSERT(ToRegister(instr->result()).is(eax)); |
| 4247 | 4247 |
| (...skipping 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6352 FixedArray::kHeaderSize - kPointerSize)); | 6352 FixedArray::kHeaderSize - kPointerSize)); |
| 6353 __ bind(&done); | 6353 __ bind(&done); |
| 6354 } | 6354 } |
| 6355 | 6355 |
| 6356 | 6356 |
| 6357 #undef __ | 6357 #undef __ |
| 6358 | 6358 |
| 6359 } } // namespace v8::internal | 6359 } } // namespace v8::internal |
| 6360 | 6360 |
| 6361 #endif // V8_TARGET_ARCH_IA32 | 6361 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |