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

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

Issue 180703004: Merged r19591, r19599 into 3.23 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.23
Patch Set: Add missing constant Created 6 years, 9 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/ia32/lithium-codegen-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 5379 matching lines...) Expand 10 before | Expand all | Expand 10 after
5390 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 5390 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
5391 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5391 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5392 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 5392 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5393 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 5393 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5394 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5394 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5395 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); 5395 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
5396 } 5396 }
5397 5397
5398 if (instr->size()->IsConstantOperand()) { 5398 if (instr->size()->IsConstantOperand()) {
5399 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5399 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5400 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); 5400 if (size <= Page::kMaxRegularHeapObjectSize) {
5401 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
5402 } else {
5403 __ jmp(deferred->entry());
5404 }
5401 } else { 5405 } else {
5402 Register size = ToRegister(instr->size()); 5406 Register size = ToRegister(instr->size());
5403 __ Allocate(size, 5407 __ Allocate(size,
5404 result, 5408 result,
5405 scratch, 5409 scratch,
5406 scratch2, 5410 scratch2,
5407 deferred->entry(), 5411 deferred->entry(),
5408 flags); 5412 flags);
5409 } 5413 }
5410 5414
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
5891 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5895 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5892 __ ldr(result, FieldMemOperand(scratch, 5896 __ ldr(result, FieldMemOperand(scratch,
5893 FixedArray::kHeaderSize - kPointerSize)); 5897 FixedArray::kHeaderSize - kPointerSize));
5894 __ bind(&done); 5898 __ bind(&done);
5895 } 5899 }
5896 5900
5897 5901
5898 #undef __ 5902 #undef __
5899 5903
5900 } } // namespace v8::internal 5904 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698