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 4269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4280 } | 4280 } |
4281 | 4281 |
4282 | 4282 |
4283 void LCodeGen::DoCallNew(LCallNew* instr) { | 4283 void LCodeGen::DoCallNew(LCallNew* instr) { |
4284 ASSERT(ToRegister(instr->context()).is(esi)); | 4284 ASSERT(ToRegister(instr->context()).is(esi)); |
4285 ASSERT(ToRegister(instr->constructor()).is(edi)); | 4285 ASSERT(ToRegister(instr->constructor()).is(edi)); |
4286 ASSERT(ToRegister(instr->result()).is(eax)); | 4286 ASSERT(ToRegister(instr->result()).is(eax)); |
4287 | 4287 |
4288 // No cell in ebx for construct type feedback in optimized code | 4288 // No cell in ebx for construct type feedback in optimized code |
4289 __ mov(ebx, isolate()->factory()->undefined_value()); | 4289 __ mov(ebx, isolate()->factory()->undefined_value()); |
4290 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); | 4290 CallConstructStub stub(NO_CALL_CONSTRUCTOR_FLAGS); |
4291 __ Move(eax, Immediate(instr->arity())); | 4291 __ Move(eax, Immediate(instr->arity())); |
4292 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); | 4292 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
4293 } | 4293 } |
4294 | 4294 |
4295 | 4295 |
4296 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { | 4296 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
4297 ASSERT(ToRegister(instr->context()).is(esi)); | 4297 ASSERT(ToRegister(instr->context()).is(esi)); |
4298 ASSERT(ToRegister(instr->constructor()).is(edi)); | 4298 ASSERT(ToRegister(instr->constructor()).is(edi)); |
4299 ASSERT(ToRegister(instr->result()).is(eax)); | 4299 ASSERT(ToRegister(instr->result()).is(eax)); |
4300 | 4300 |
(...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6442 __ bind(deferred->exit()); | 6442 __ bind(deferred->exit()); |
6443 __ bind(&done); | 6443 __ bind(&done); |
6444 } | 6444 } |
6445 | 6445 |
6446 | 6446 |
6447 #undef __ | 6447 #undef __ |
6448 | 6448 |
6449 } } // namespace v8::internal | 6449 } } // namespace v8::internal |
6450 | 6450 |
6451 #endif // V8_TARGET_ARCH_IA32 | 6451 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |