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

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: Platform ports and perf bugfix 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
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 3860 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« src/x64/ic-x64.cc ('K') | « 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