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