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

Side by Side Diff: src/a64/lithium-codegen-a64.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 | « no previous file | src/arm/lithium-codegen-arm.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 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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 1482 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
1483 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 1483 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
1484 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 1484 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
1485 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 1485 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
1486 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 1486 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
1487 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); 1487 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
1488 } 1488 }
1489 1489
1490 if (instr->size()->IsConstantOperand()) { 1490 if (instr->size()->IsConstantOperand()) {
1491 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 1491 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
1492 if (size <= Page::kMaxRegularHeapObjectSize) { 1492 __ Allocate(size, result, temp1, temp2, deferred->entry(), flags);
1493 __ Allocate(size, result, temp1, temp2, deferred->entry(), flags);
1494 } else {
1495 __ B(deferred->entry());
1496 }
1497 } else { 1493 } else {
1498 Register size = ToRegister32(instr->size()); 1494 Register size = ToRegister32(instr->size());
1499 __ Sxtw(size.X(), size); 1495 __ Sxtw(size.X(), size);
1500 __ Allocate(size.X(), result, temp1, temp2, deferred->entry(), flags); 1496 __ Allocate(size.X(), result, temp1, temp2, deferred->entry(), flags);
1501 } 1497 }
1502 1498
1503 __ Bind(deferred->exit()); 1499 __ Bind(deferred->exit());
1504 1500
1505 if (instr->hydrogen()->MustPrefillWithFiller()) { 1501 if (instr->hydrogen()->MustPrefillWithFiller()) {
1506 if (instr->size()->IsConstantOperand()) { 1502 if (instr->size()->IsConstantOperand()) {
(...skipping 4162 matching lines...) Expand 10 before | Expand all | Expand 10 after
5669 __ Bind(&out_of_object); 5665 __ Bind(&out_of_object);
5670 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5666 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5671 // Index is equal to negated out of object property index plus 1. 5667 // Index is equal to negated out of object property index plus 1.
5672 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5668 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5673 __ Ldr(result, FieldMemOperand(result, 5669 __ Ldr(result, FieldMemOperand(result,
5674 FixedArray::kHeaderSize - kPointerSize)); 5670 FixedArray::kHeaderSize - kPointerSize));
5675 __ Bind(&done); 5671 __ Bind(&done);
5676 } 5672 }
5677 5673
5678 } } // namespace v8::internal 5674 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698