OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "arm/lithium-codegen-arm.h" | 7 #include "arm/lithium-codegen-arm.h" |
8 #include "arm/lithium-gap-resolver-arm.h" | 8 #include "arm/lithium-gap-resolver-arm.h" |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
(...skipping 3966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3977 | 3977 |
3978 | 3978 |
3979 void LCodeGen::DoCallNew(LCallNew* instr) { | 3979 void LCodeGen::DoCallNew(LCallNew* instr) { |
3980 ASSERT(ToRegister(instr->context()).is(cp)); | 3980 ASSERT(ToRegister(instr->context()).is(cp)); |
3981 ASSERT(ToRegister(instr->constructor()).is(r1)); | 3981 ASSERT(ToRegister(instr->constructor()).is(r1)); |
3982 ASSERT(ToRegister(instr->result()).is(r0)); | 3982 ASSERT(ToRegister(instr->result()).is(r0)); |
3983 | 3983 |
3984 __ mov(r0, Operand(instr->arity())); | 3984 __ mov(r0, Operand(instr->arity())); |
3985 // No cell in r2 for construct type feedback in optimized code | 3985 // No cell in r2 for construct type feedback in optimized code |
3986 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); | 3986 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); |
3987 CallConstructStub stub(isolate(), NO_CALL_FUNCTION_FLAGS); | 3987 CallConstructStub stub(isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
3988 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); | 3988 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); |
3989 } | 3989 } |
3990 | 3990 |
3991 | 3991 |
3992 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { | 3992 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
3993 ASSERT(ToRegister(instr->context()).is(cp)); | 3993 ASSERT(ToRegister(instr->context()).is(cp)); |
3994 ASSERT(ToRegister(instr->constructor()).is(r1)); | 3994 ASSERT(ToRegister(instr->constructor()).is(r1)); |
3995 ASSERT(ToRegister(instr->result()).is(r0)); | 3995 ASSERT(ToRegister(instr->result()).is(r0)); |
3996 | 3996 |
3997 __ mov(r0, Operand(instr->arity())); | 3997 __ mov(r0, Operand(instr->arity())); |
(...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5836 __ ldr(result, FieldMemOperand(scratch, | 5836 __ ldr(result, FieldMemOperand(scratch, |
5837 FixedArray::kHeaderSize - kPointerSize)); | 5837 FixedArray::kHeaderSize - kPointerSize)); |
5838 __ bind(deferred->exit()); | 5838 __ bind(deferred->exit()); |
5839 __ bind(&done); | 5839 __ bind(&done); |
5840 } | 5840 } |
5841 | 5841 |
5842 | 5842 |
5843 #undef __ | 5843 #undef __ |
5844 | 5844 |
5845 } } // namespace v8::internal | 5845 } } // namespace v8::internal |
OLD | NEW |