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 4112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4123 | 4123 |
4124 | 4124 |
4125 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { | 4125 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
4126 ASSERT(ToRegister(instr->constructor()).is(r1)); | 4126 ASSERT(ToRegister(instr->constructor()).is(r1)); |
4127 ASSERT(ToRegister(instr->result()).is(r0)); | 4127 ASSERT(ToRegister(instr->result()).is(r0)); |
4128 | 4128 |
4129 __ mov(r0, Operand(instr->arity())); | 4129 __ mov(r0, Operand(instr->arity())); |
4130 __ mov(r2, Operand(instr->hydrogen()->property_cell())); | 4130 __ mov(r2, Operand(instr->hydrogen()->property_cell())); |
4131 ElementsKind kind = instr->hydrogen()->elements_kind(); | 4131 ElementsKind kind = instr->hydrogen()->elements_kind(); |
4132 AllocationSiteOverrideMode override_mode = | 4132 AllocationSiteOverrideMode override_mode = |
4133 (AllocationSiteInfo::GetMode(kind) == TRACK_ALLOCATION_SITE) | 4133 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) |
4134 ? DISABLE_ALLOCATION_SITES | 4134 ? DISABLE_ALLOCATION_SITES |
4135 : DONT_OVERRIDE; | 4135 : DONT_OVERRIDE; |
4136 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; | 4136 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; |
4137 | 4137 |
4138 if (instr->arity() == 0) { | 4138 if (instr->arity() == 0) { |
4139 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); | 4139 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); |
4140 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); | 4140 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
4141 } else if (instr->arity() == 1) { | 4141 } else if (instr->arity() == 1) { |
4142 Label done; | 4142 Label done; |
4143 if (IsFastPackedElementsKind(kind)) { | 4143 if (IsFastPackedElementsKind(kind)) { |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5911 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5911 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
5912 __ ldr(result, FieldMemOperand(scratch, | 5912 __ ldr(result, FieldMemOperand(scratch, |
5913 FixedArray::kHeaderSize - kPointerSize)); | 5913 FixedArray::kHeaderSize - kPointerSize)); |
5914 __ bind(&done); | 5914 __ bind(&done); |
5915 } | 5915 } |
5916 | 5916 |
5917 | 5917 |
5918 #undef __ | 5918 #undef __ |
5919 | 5919 |
5920 } } // namespace v8::internal | 5920 } } // namespace v8::internal |
OLD | NEW |