| 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 3977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3988 | 3988 |
| 3989 | 3989 |
| 3990 void LCodeGen::DoCallNew(LCallNew* instr) { | 3990 void LCodeGen::DoCallNew(LCallNew* instr) { |
| 3991 ASSERT(ToRegister(instr->context()).is(cp)); | 3991 ASSERT(ToRegister(instr->context()).is(cp)); |
| 3992 ASSERT(ToRegister(instr->constructor()).is(r1)); | 3992 ASSERT(ToRegister(instr->constructor()).is(r1)); |
| 3993 ASSERT(ToRegister(instr->result()).is(r0)); | 3993 ASSERT(ToRegister(instr->result()).is(r0)); |
| 3994 | 3994 |
| 3995 __ mov(r0, Operand(instr->arity())); | 3995 __ mov(r0, Operand(instr->arity())); |
| 3996 // No cell in r2 for construct type feedback in optimized code | 3996 // No cell in r2 for construct type feedback in optimized code |
| 3997 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); | 3997 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); |
| 3998 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); | 3998 CallConstructStub stub(NO_CALL_CONSTRUCTOR_FLAGS); |
| 3999 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); | 3999 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
| 4000 } | 4000 } |
| 4001 | 4001 |
| 4002 | 4002 |
| 4003 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { | 4003 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
| 4004 ASSERT(ToRegister(instr->context()).is(cp)); | 4004 ASSERT(ToRegister(instr->context()).is(cp)); |
| 4005 ASSERT(ToRegister(instr->constructor()).is(r1)); | 4005 ASSERT(ToRegister(instr->constructor()).is(r1)); |
| 4006 ASSERT(ToRegister(instr->result()).is(r0)); | 4006 ASSERT(ToRegister(instr->result()).is(r0)); |
| 4007 | 4007 |
| 4008 __ mov(r0, Operand(instr->arity())); | 4008 __ mov(r0, Operand(instr->arity())); |
| (...skipping 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5850 __ ldr(result, FieldMemOperand(scratch, | 5850 __ ldr(result, FieldMemOperand(scratch, |
| 5851 FixedArray::kHeaderSize - kPointerSize)); | 5851 FixedArray::kHeaderSize - kPointerSize)); |
| 5852 __ bind(deferred->exit()); | 5852 __ bind(deferred->exit()); |
| 5853 __ bind(&done); | 5853 __ bind(&done); |
| 5854 } | 5854 } |
| 5855 | 5855 |
| 5856 | 5856 |
| 5857 #undef __ | 5857 #undef __ |
| 5858 | 5858 |
| 5859 } } // namespace v8::internal | 5859 } } // namespace v8::internal |
| OLD | NEW |