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

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

Issue 188643002: Bugfix for 349874: we incorrectly believe we saw a growing store (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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/ic.cc ('k') | src/objects.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 5199 matching lines...) Expand 10 before | Expand all | Expand 10 after
5210 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) { 5210 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) {
5211 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 5211 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
5212 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5212 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5213 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 5213 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5214 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 5214 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5215 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5215 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5216 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); 5216 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
5217 } 5217 }
5218 if (instr->size()->IsConstantOperand()) { 5218 if (instr->size()->IsConstantOperand()) {
5219 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5219 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5220 if (size <= Page::kMaxRegularHeapObjectSize) { 5220 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
5221 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
5222 } else {
5223 __ jmp(deferred->entry());
5224 }
5225 } else { 5221 } else {
5226 Register size = ToRegister(instr->size()); 5222 Register size = ToRegister(instr->size());
5227 __ Allocate(size, 5223 __ Allocate(size,
5228 result, 5224 result,
5229 scratch, 5225 scratch,
5230 scratch2, 5226 scratch2,
5231 deferred->entry(), 5227 deferred->entry(),
5232 flags); 5228 flags);
5233 } 5229 }
5234 5230
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
5755 __ Subu(scratch, result, scratch); 5751 __ Subu(scratch, result, scratch);
5756 __ lw(result, FieldMemOperand(scratch, 5752 __ lw(result, FieldMemOperand(scratch,
5757 FixedArray::kHeaderSize - kPointerSize)); 5753 FixedArray::kHeaderSize - kPointerSize));
5758 __ bind(&done); 5754 __ bind(&done);
5759 } 5755 }
5760 5756
5761 5757
5762 #undef __ 5758 #undef __
5763 5759
5764 } } // namespace v8::internal 5760 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698