| 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 3989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4000 | 4000 |
| 4001 | 4001 |
| 4002 void LCodeGen::DoCallNew(LCallNew* instr) { | 4002 void LCodeGen::DoCallNew(LCallNew* instr) { |
| 4003 ASSERT(ToRegister(instr->context()).is(cp)); | 4003 ASSERT(ToRegister(instr->context()).is(cp)); |
| 4004 ASSERT(ToRegister(instr->constructor()).is(r1)); | 4004 ASSERT(ToRegister(instr->constructor()).is(r1)); |
| 4005 ASSERT(ToRegister(instr->result()).is(r0)); | 4005 ASSERT(ToRegister(instr->result()).is(r0)); |
| 4006 | 4006 |
| 4007 __ mov(r0, Operand(instr->arity())); | 4007 __ mov(r0, Operand(instr->arity())); |
| 4008 // No cell in r2 for construct type feedback in optimized code | 4008 // No cell in r2 for construct type feedback in optimized code |
| 4009 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); | 4009 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); |
| 4010 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); | 4010 CallConstructStub stub(NO_CALL_CONSTRUCTOR_FLAGS); |
| 4011 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); | 4011 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
| 4012 } | 4012 } |
| 4013 | 4013 |
| 4014 | 4014 |
| 4015 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { | 4015 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
| 4016 ASSERT(ToRegister(instr->context()).is(cp)); | 4016 ASSERT(ToRegister(instr->context()).is(cp)); |
| 4017 ASSERT(ToRegister(instr->constructor()).is(r1)); | 4017 ASSERT(ToRegister(instr->constructor()).is(r1)); |
| 4018 ASSERT(ToRegister(instr->result()).is(r0)); | 4018 ASSERT(ToRegister(instr->result()).is(r0)); |
| 4019 | 4019 |
| 4020 __ mov(r0, Operand(instr->arity())); | 4020 __ mov(r0, Operand(instr->arity())); |
| (...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5855 __ ldr(result, FieldMemOperand(scratch, | 5855 __ ldr(result, FieldMemOperand(scratch, |
| 5856 FixedArray::kHeaderSize - kPointerSize)); | 5856 FixedArray::kHeaderSize - kPointerSize)); |
| 5857 __ bind(deferred->exit()); | 5857 __ bind(deferred->exit()); |
| 5858 __ bind(&done); | 5858 __ bind(&done); |
| 5859 } | 5859 } |
| 5860 | 5860 |
| 5861 | 5861 |
| 5862 #undef __ | 5862 #undef __ |
| 5863 | 5863 |
| 5864 } } // namespace v8::internal | 5864 } } // namespace v8::internal |
| OLD | NEW |