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

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: 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/ia32/ic-ia32.cc ('k') | src/ia32/lithium-ia32.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 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 4180 matching lines...) Expand 10 before | Expand all | Expand 10 after
4191 4191
4192 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { 4192 void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
4193 ASSERT(ToRegister(instr->context()).is(esi)); 4193 ASSERT(ToRegister(instr->context()).is(esi));
4194 ASSERT(ToRegister(instr->constructor()).is(edi)); 4194 ASSERT(ToRegister(instr->constructor()).is(edi));
4195 ASSERT(ToRegister(instr->result()).is(eax)); 4195 ASSERT(ToRegister(instr->result()).is(eax));
4196 4196
4197 __ Set(eax, Immediate(instr->arity())); 4197 __ Set(eax, Immediate(instr->arity()));
4198 __ mov(ebx, instr->hydrogen()->property_cell()); 4198 __ mov(ebx, instr->hydrogen()->property_cell());
4199 ElementsKind kind = instr->hydrogen()->elements_kind(); 4199 ElementsKind kind = instr->hydrogen()->elements_kind();
4200 AllocationSiteOverrideMode override_mode = 4200 AllocationSiteOverrideMode override_mode =
4201 (AllocationSiteInfo::GetMode(kind) == TRACK_ALLOCATION_SITE) 4201 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE)
4202 ? DISABLE_ALLOCATION_SITES 4202 ? DISABLE_ALLOCATION_SITES
4203 : DONT_OVERRIDE; 4203 : DONT_OVERRIDE;
4204 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; 4204 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED;
4205 4205
4206 if (instr->arity() == 0) { 4206 if (instr->arity() == 0) {
4207 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); 4207 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode);
4208 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); 4208 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
4209 } else if (instr->arity() == 1) { 4209 } else if (instr->arity() == 1) {
4210 Label done; 4210 Label done;
4211 if (IsFastPackedElementsKind(kind)) { 4211 if (IsFastPackedElementsKind(kind)) {
(...skipping 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after
6573 FixedArray::kHeaderSize - kPointerSize)); 6573 FixedArray::kHeaderSize - kPointerSize));
6574 __ bind(&done); 6574 __ bind(&done);
6575 } 6575 }
6576 6576
6577 6577
6578 #undef __ 6578 #undef __
6579 6579
6580 } } // namespace v8::internal 6580 } } // namespace v8::internal
6581 6581
6582 #endif // V8_TARGET_ARCH_IA32 6582 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698