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

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

Issue 200113002: Fix for issue 351261. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added test. 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/ic.cc ('k') | src/x64/lithium-codegen-x64.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.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 5173 matching lines...) Expand 10 before | Expand all | Expand 10 after
5184 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) { 5184 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) {
5185 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 5185 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
5186 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5186 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5187 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 5187 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5188 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 5188 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5189 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5189 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5190 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); 5190 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
5191 } 5191 }
5192 if (instr->size()->IsConstantOperand()) { 5192 if (instr->size()->IsConstantOperand()) {
5193 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5193 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5194 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); 5194 if (size <= Page::kMaxRegularHeapObjectSize) {
5195 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
5196 } else {
5197 __ jmp(deferred->entry());
5198 }
5195 } else { 5199 } else {
5196 Register size = ToRegister(instr->size()); 5200 Register size = ToRegister(instr->size());
5197 __ Allocate(size, 5201 __ Allocate(size,
5198 result, 5202 result,
5199 scratch, 5203 scratch,
5200 scratch2, 5204 scratch2,
5201 deferred->entry(), 5205 deferred->entry(),
5202 flags); 5206 flags);
5203 } 5207 }
5204 5208
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
5725 __ Subu(scratch, result, scratch); 5729 __ Subu(scratch, result, scratch);
5726 __ lw(result, FieldMemOperand(scratch, 5730 __ lw(result, FieldMemOperand(scratch,
5727 FixedArray::kHeaderSize - kPointerSize)); 5731 FixedArray::kHeaderSize - kPointerSize));
5728 __ bind(&done); 5732 __ bind(&done);
5729 } 5733 }
5730 5734
5731 5735
5732 #undef __ 5736 #undef __
5733 5737
5734 } } // namespace v8::internal 5738 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698