Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 15094018: Create AllocationSite objects, pointed to by AllocationSiteInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment response Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698