| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 3872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3883 | 3883 |
| 3884 | 3884 |
| 3885 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { | 3885 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
| 3886 ASSERT(ToRegister(instr->constructor()).is(rdi)); | 3886 ASSERT(ToRegister(instr->constructor()).is(rdi)); |
| 3887 ASSERT(ToRegister(instr->result()).is(rax)); | 3887 ASSERT(ToRegister(instr->result()).is(rax)); |
| 3888 | 3888 |
| 3889 __ Set(rax, instr->arity()); | 3889 __ Set(rax, instr->arity()); |
| 3890 __ Move(rbx, instr->hydrogen()->property_cell()); | 3890 __ Move(rbx, instr->hydrogen()->property_cell()); |
| 3891 ElementsKind kind = instr->hydrogen()->elements_kind(); | 3891 ElementsKind kind = instr->hydrogen()->elements_kind(); |
| 3892 AllocationSiteOverrideMode override_mode = | 3892 AllocationSiteOverrideMode override_mode = |
| 3893 (AllocationSiteInfo::GetMode(kind) == TRACK_ALLOCATION_SITE) | 3893 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) |
| 3894 ? DISABLE_ALLOCATION_SITES | 3894 ? DISABLE_ALLOCATION_SITES |
| 3895 : DONT_OVERRIDE; | 3895 : DONT_OVERRIDE; |
| 3896 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; | 3896 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; |
| 3897 | 3897 |
| 3898 if (instr->arity() == 0) { | 3898 if (instr->arity() == 0) { |
| 3899 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); | 3899 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); |
| 3900 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); | 3900 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
| 3901 } else if (instr->arity() == 1) { | 3901 } else if (instr->arity() == 1) { |
| 3902 Label done; | 3902 Label done; |
| 3903 if (IsFastPackedElementsKind(kind)) { | 3903 if (IsFastPackedElementsKind(kind)) { |
| (...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5665 FixedArray::kHeaderSize - kPointerSize)); | 5665 FixedArray::kHeaderSize - kPointerSize)); |
| 5666 __ bind(&done); | 5666 __ bind(&done); |
| 5667 } | 5667 } |
| 5668 | 5668 |
| 5669 | 5669 |
| 5670 #undef __ | 5670 #undef __ |
| 5671 | 5671 |
| 5672 } } // namespace v8::internal | 5672 } } // namespace v8::internal |
| 5673 | 5673 |
| 5674 #endif // V8_TARGET_ARCH_X64 | 5674 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |