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

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

Issue 13866005: Activate generation of Crankshafted KeyedStores (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix tests Created 7 years, 8 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 | « no previous file | src/flag-definitions.h » ('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 5459 matching lines...) Expand 10 before | Expand all | Expand 10 after
5470 5470
5471 Register result = ToRegister(instr->result()); 5471 Register result = ToRegister(instr->result());
5472 Register scratch = ToRegister(instr->temp1()); 5472 Register scratch = ToRegister(instr->temp1());
5473 Register scratch2 = ToRegister(instr->temp2()); 5473 Register scratch2 = ToRegister(instr->temp2());
5474 5474
5475 // Allocate memory for the object. 5475 // Allocate memory for the object.
5476 AllocationFlags flags = TAG_OBJECT; 5476 AllocationFlags flags = TAG_OBJECT;
5477 if (instr->hydrogen()->MustAllocateDoubleAligned()) { 5477 if (instr->hydrogen()->MustAllocateDoubleAligned()) {
5478 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 5478 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
5479 } 5479 }
5480 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
5481 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5482 }
5480 if (instr->size()->IsConstantOperand()) { 5483 if (instr->size()->IsConstantOperand()) {
5481 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5484 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5482 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
5483 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5484 }
5485 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); 5485 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
5486 } else { 5486 } else {
5487 Register size = ToRegister(instr->size()); 5487 Register size = ToRegister(instr->size());
5488 __ Allocate(size, 5488 __ Allocate(size,
5489 result, 5489 result,
5490 scratch, 5490 scratch,
5491 scratch2, 5491 scratch2,
5492 deferred->entry(), 5492 deferred->entry(),
5493 flags); 5493 flags);
5494 } 5494 }
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
6206 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 6206 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
6207 __ ldr(result, FieldMemOperand(scratch, 6207 __ ldr(result, FieldMemOperand(scratch,
6208 FixedArray::kHeaderSize - kPointerSize)); 6208 FixedArray::kHeaderSize - kPointerSize));
6209 __ bind(&done); 6209 __ bind(&done);
6210 } 6210 }
6211 6211
6212 6212
6213 #undef __ 6213 #undef __
6214 6214
6215 } } // namespace v8::internal 6215 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698