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 4158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4169 | 4169 |
4170 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { | 4170 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
4171 ASSERT(ToRegister(instr->context()).is(esi)); | 4171 ASSERT(ToRegister(instr->context()).is(esi)); |
4172 ASSERT(ToRegister(instr->constructor()).is(edi)); | 4172 ASSERT(ToRegister(instr->constructor()).is(edi)); |
4173 ASSERT(ToRegister(instr->result()).is(eax)); | 4173 ASSERT(ToRegister(instr->result()).is(eax)); |
4174 | 4174 |
4175 __ Set(eax, Immediate(instr->arity())); | 4175 __ Set(eax, Immediate(instr->arity())); |
4176 __ mov(ebx, instr->hydrogen()->property_cell()); | 4176 __ mov(ebx, instr->hydrogen()->property_cell()); |
4177 ElementsKind kind = instr->hydrogen()->elements_kind(); | 4177 ElementsKind kind = instr->hydrogen()->elements_kind(); |
4178 AllocationSiteOverrideMode override_mode = | 4178 AllocationSiteOverrideMode override_mode = |
4179 (AllocationSiteInfo::GetMode(kind) == TRACK_ALLOCATION_SITE) | 4179 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) |
4180 ? DISABLE_ALLOCATION_SITES | 4180 ? DISABLE_ALLOCATION_SITES |
4181 : DONT_OVERRIDE; | 4181 : DONT_OVERRIDE; |
4182 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; | 4182 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; |
4183 | 4183 |
4184 if (instr->arity() == 0) { | 4184 if (instr->arity() == 0) { |
4185 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); | 4185 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); |
4186 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); | 4186 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
4187 } else if (instr->arity() == 1) { | 4187 } else if (instr->arity() == 1) { |
4188 Label done; | 4188 Label done; |
4189 if (IsFastPackedElementsKind(kind)) { | 4189 if (IsFastPackedElementsKind(kind)) { |
(...skipping 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6551 FixedArray::kHeaderSize - kPointerSize)); | 6551 FixedArray::kHeaderSize - kPointerSize)); |
6552 __ bind(&done); | 6552 __ bind(&done); |
6553 } | 6553 } |
6554 | 6554 |
6555 | 6555 |
6556 #undef __ | 6556 #undef __ |
6557 | 6557 |
6558 } } // namespace v8::internal | 6558 } } // namespace v8::internal |
6559 | 6559 |
6560 #endif // V8_TARGET_ARCH_IA32 | 6560 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |