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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/ic-arm.cc ('k') | src/arm/stub-cache-arm.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 4124 matching lines...) Expand 10 before | Expand all | Expand 10 after
4135 4135
4136 4136
4137 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { 4137 void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
4138 ASSERT(ToRegister(instr->constructor()).is(r1)); 4138 ASSERT(ToRegister(instr->constructor()).is(r1));
4139 ASSERT(ToRegister(instr->result()).is(r0)); 4139 ASSERT(ToRegister(instr->result()).is(r0));
4140 4140
4141 __ mov(r0, Operand(instr->arity())); 4141 __ mov(r0, Operand(instr->arity()));
4142 __ mov(r2, Operand(instr->hydrogen()->property_cell())); 4142 __ mov(r2, Operand(instr->hydrogen()->property_cell()));
4143 ElementsKind kind = instr->hydrogen()->elements_kind(); 4143 ElementsKind kind = instr->hydrogen()->elements_kind();
4144 AllocationSiteOverrideMode override_mode = 4144 AllocationSiteOverrideMode override_mode =
4145 (AllocationSiteInfo::GetMode(kind) == TRACK_ALLOCATION_SITE) 4145 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE)
4146 ? DISABLE_ALLOCATION_SITES 4146 ? DISABLE_ALLOCATION_SITES
4147 : DONT_OVERRIDE; 4147 : DONT_OVERRIDE;
4148 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED; 4148 ContextCheckMode context_mode = CONTEXT_CHECK_NOT_REQUIRED;
4149 4149
4150 if (instr->arity() == 0) { 4150 if (instr->arity() == 0) {
4151 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode); 4151 ArrayNoArgumentConstructorStub stub(kind, context_mode, override_mode);
4152 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); 4152 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
4153 } else if (instr->arity() == 1) { 4153 } else if (instr->arity() == 1) {
4154 Label done; 4154 Label done;
4155 if (IsFastPackedElementsKind(kind)) { 4155 if (IsFastPackedElementsKind(kind)) {
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after
5923 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5923 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5924 __ ldr(result, FieldMemOperand(scratch, 5924 __ ldr(result, FieldMemOperand(scratch,
5925 FixedArray::kHeaderSize - kPointerSize)); 5925 FixedArray::kHeaderSize - kPointerSize));
5926 __ bind(&done); 5926 __ bind(&done);
5927 } 5927 }
5928 5928
5929 5929
5930 #undef __ 5930 #undef __
5931 5931
5932 } } // namespace v8::internal 5932 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698