| 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 3860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3871 | 3871 |
| 3872 | 3872 |
| 3873 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { | 3873 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
| 3874 ASSERT(ToRegister(instr->constructor()).is(rdi)); | 3874 ASSERT(ToRegister(instr->constructor()).is(rdi)); |
| 3875 ASSERT(ToRegister(instr->result()).is(rax)); | 3875 ASSERT(ToRegister(instr->result()).is(rax)); |
| 3876 | 3876 |
| 3877 __ Set(rax, instr->arity()); | 3877 __ Set(rax, instr->arity()); |
| 3878 __ Move(rbx, instr->hydrogen()->property_cell()); | 3878 __ Move(rbx, instr->hydrogen()->property_cell()); |
| 3879 ElementsKind kind = instr->hydrogen()->elements_kind(); | 3879 ElementsKind kind = instr->hydrogen()->elements_kind(); |
| 3880 AllocationSiteOverrideMode override_mode = | 3880 AllocationSiteOverrideMode override_mode = |
| 3881 (AllocationSiteInfo::GetMode(kind) == TRACK_ALLOCATION_SITE) | 3881 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) |
| 3882 ? DISABLE_ALLOCATION_SITES | 3882 ? DISABLE_ALLOCATION_SITES |
| 3883 : DONT_OVERRIDE; | 3883 : DONT_OVERRIDE; |
| 3884 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; | 3884 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; |
| 3885 | 3885 |
| 3886 if (instr->arity() == 0) { | 3886 if (instr->arity() == 0) { |
| 3887 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); | 3887 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); |
| 3888 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); | 3888 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |
| 3889 } else if (instr->arity() == 1) { | 3889 } else if (instr->arity() == 1) { |
| 3890 Label done; | 3890 Label done; |
| 3891 if (IsFastPackedElementsKind(kind)) { | 3891 if (IsFastPackedElementsKind(kind)) { |
| (...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5653 FixedArray::kHeaderSize - kPointerSize)); | 5653 FixedArray::kHeaderSize - kPointerSize)); |
| 5654 __ bind(&done); | 5654 __ bind(&done); |
| 5655 } | 5655 } |
| 5656 | 5656 |
| 5657 | 5657 |
| 5658 #undef __ | 5658 #undef __ |
| 5659 | 5659 |
| 5660 } } // namespace v8::internal | 5660 } } // namespace v8::internal |
| 5661 | 5661 |
| 5662 #endif // V8_TARGET_ARCH_X64 | 5662 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |