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

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

Issue 181183007: Merged r19591, r19599 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: 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 | « src/ia32/lithium-codegen-ia32.cc ('k') | src/property-details.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 5178 matching lines...) Expand 10 before | Expand all | Expand 10 after
5189 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) { 5189 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) {
5190 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 5190 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
5191 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5191 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5192 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 5192 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5193 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 5193 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5194 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5194 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5195 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); 5195 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
5196 } 5196 }
5197 if (instr->size()->IsConstantOperand()) { 5197 if (instr->size()->IsConstantOperand()) {
5198 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5198 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5199 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); 5199 if (size <= Page::kMaxRegularHeapObjectSize) {
5200 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
5201 } else {
5202 __ jmp(deferred->entry());
5203 }
5200 } else { 5204 } else {
5201 Register size = ToRegister(instr->size()); 5205 Register size = ToRegister(instr->size());
5202 __ Allocate(size, 5206 __ Allocate(size,
5203 result, 5207 result,
5204 scratch, 5208 scratch,
5205 scratch2, 5209 scratch2,
5206 deferred->entry(), 5210 deferred->entry(),
5207 flags); 5211 flags);
5208 } 5212 }
5209 5213
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
5730 __ Subu(scratch, result, scratch); 5734 __ Subu(scratch, result, scratch);
5731 __ lw(result, FieldMemOperand(scratch, 5735 __ lw(result, FieldMemOperand(scratch,
5732 FixedArray::kHeaderSize - kPointerSize)); 5736 FixedArray::kHeaderSize - kPointerSize));
5733 __ bind(&done); 5737 __ bind(&done);
5734 } 5738 }
5735 5739
5736 5740
5737 #undef __ 5741 #undef __
5738 5742
5739 } } // namespace v8::internal 5743 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/property-details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698