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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698