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 4180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4191 | 4191 |
4192 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { | 4192 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
4193 ASSERT(ToRegister(instr->context()).is(esi)); | 4193 ASSERT(ToRegister(instr->context()).is(esi)); |
4194 ASSERT(ToRegister(instr->constructor()).is(edi)); | 4194 ASSERT(ToRegister(instr->constructor()).is(edi)); |
4195 ASSERT(ToRegister(instr->result()).is(eax)); | 4195 ASSERT(ToRegister(instr->result()).is(eax)); |
4196 | 4196 |
4197 __ Set(eax, Immediate(instr->arity())); | 4197 __ Set(eax, Immediate(instr->arity())); |
4198 __ mov(ebx, instr->hydrogen()->property_cell()); | 4198 __ mov(ebx, instr->hydrogen()->property_cell()); |
4199 ElementsKind kind = instr->hydrogen()->elements_kind(); | 4199 ElementsKind kind = instr->hydrogen()->elements_kind(); |
4200 AllocationSiteOverrideMode override_mode = | 4200 AllocationSiteOverrideMode override_mode = |
4201 (AllocationSiteInfo::GetMode(kind) == TRACK_ALLOCATION_SITE) | 4201 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) |
4202 ? DISABLE_ALLOCATION_SITES | 4202 ? DISABLE_ALLOCATION_SITES |
4203 : DONT_OVERRIDE; | 4203 : DONT_OVERRIDE; |
4204 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; | 4204 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; |
4205 | 4205 |
4206 if (instr->arity() == 0) { | 4206 if (instr->arity() == 0) { |
4207 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); | 4207 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); |
4208 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); | 4208 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
4209 } else if (instr->arity() == 1) { | 4209 } else if (instr->arity() == 1) { |
4210 Label done; | 4210 Label done; |
4211 if (IsFastPackedElementsKind(kind)) { | 4211 if (IsFastPackedElementsKind(kind)) { |
(...skipping 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6573 FixedArray::kHeaderSize - kPointerSize)); | 6573 FixedArray::kHeaderSize - kPointerSize)); |
6574 __ bind(&done); | 6574 __ bind(&done); |
6575 } | 6575 } |
6576 | 6576 |
6577 | 6577 |
6578 #undef __ | 6578 #undef __ |
6579 | 6579 |
6580 } } // namespace v8::internal | 6580 } } // namespace v8::internal |
6581 | 6581 |
6582 #endif // V8_TARGET_ARCH_IA32 | 6582 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |