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

Side by Side Diff: src/x64/lithium-codegen-x64.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/mips/lithium-codegen-mips.cc ('k') | test/mjsunit/regress/regress-351261.js » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 5127 matching lines...) Expand 10 before | Expand all | Expand 10 after
5138 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 5138 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
5139 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5139 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5140 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 5140 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5141 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 5141 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5142 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5142 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5143 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); 5143 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
5144 } 5144 }
5145 5145
5146 if (instr->size()->IsConstantOperand()) { 5146 if (instr->size()->IsConstantOperand()) {
5147 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5147 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5148 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); 5148 if (size <= Page::kMaxRegularHeapObjectSize) {
5149 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5150 } else {
5151 __ jmp(deferred->entry());
5152 }
5149 } else { 5153 } else {
5150 Register size = ToRegister(instr->size()); 5154 Register size = ToRegister(instr->size());
5151 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); 5155 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5152 } 5156 }
5153 5157
5154 __ bind(deferred->exit()); 5158 __ bind(deferred->exit());
5155 5159
5156 if (instr->hydrogen()->MustPrefillWithFiller()) { 5160 if (instr->hydrogen()->MustPrefillWithFiller()) {
5157 if (instr->size()->IsConstantOperand()) { 5161 if (instr->size()->IsConstantOperand()) {
5158 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5162 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
5639 FixedArray::kHeaderSize - kPointerSize)); 5643 FixedArray::kHeaderSize - kPointerSize));
5640 __ bind(&done); 5644 __ bind(&done);
5641 } 5645 }
5642 5646
5643 5647
5644 #undef __ 5648 #undef __
5645 5649
5646 } } // namespace v8::internal 5650 } } // namespace v8::internal
5647 5651
5648 #endif // V8_TARGET_ARCH_X64 5652 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | test/mjsunit/regress/regress-351261.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698