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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/arm/lithium-codegen-arm.cc ('k') | src/ic.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 5771 matching lines...) Expand 10 before | Expand all | Expand 10 after
5782 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 5782 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
5783 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5783 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5784 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 5784 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5785 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 5785 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5786 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5786 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5787 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); 5787 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
5788 } 5788 }
5789 5789
5790 if (instr->size()->IsConstantOperand()) { 5790 if (instr->size()->IsConstantOperand()) {
5791 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5791 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5792 if (size <= Page::kMaxRegularHeapObjectSize) { 5792 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5793 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5794 } else {
5795 __ jmp(deferred->entry());
5796 }
5797 } else { 5793 } else {
5798 Register size = ToRegister(instr->size()); 5794 Register size = ToRegister(instr->size());
5799 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); 5795 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5800 } 5796 }
5801 5797
5802 __ bind(deferred->exit()); 5798 __ bind(deferred->exit());
5803 5799
5804 if (instr->hydrogen()->MustPrefillWithFiller()) { 5800 if (instr->hydrogen()->MustPrefillWithFiller()) {
5805 if (instr->size()->IsConstantOperand()) { 5801 if (instr->size()->IsConstantOperand()) {
5806 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5802 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
6279 FixedArray::kHeaderSize - kPointerSize)); 6275 FixedArray::kHeaderSize - kPointerSize));
6280 __ bind(&done); 6276 __ bind(&done);
6281 } 6277 }
6282 6278
6283 6279
6284 #undef __ 6280 #undef __
6285 6281
6286 } } // namespace v8::internal 6282 } } // namespace v8::internal
6287 6283
6288 #endif // V8_TARGET_ARCH_IA32 6284 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698