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

Side by Side Diff: src/a64/lithium-codegen-a64.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 | « 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 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 1500 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
1501 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 1501 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
1502 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 1502 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
1503 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 1503 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
1504 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 1504 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
1505 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); 1505 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
1506 } 1506 }
1507 1507
1508 if (instr->size()->IsConstantOperand()) { 1508 if (instr->size()->IsConstantOperand()) {
1509 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 1509 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
1510 __ Allocate(size, result, temp1, temp2, deferred->entry(), flags); 1510 if (size <= Page::kMaxRegularHeapObjectSize) {
1511 __ Allocate(size, result, temp1, temp2, deferred->entry(), flags);
1512 } else {
1513 __ B(deferred->entry());
1514 }
1511 } else { 1515 } else {
1512 Register size = ToRegister32(instr->size()); 1516 Register size = ToRegister32(instr->size());
1513 __ Sxtw(size.X(), size); 1517 __ Sxtw(size.X(), size);
1514 __ Allocate(size.X(), result, temp1, temp2, deferred->entry(), flags); 1518 __ Allocate(size.X(), result, temp1, temp2, deferred->entry(), flags);
1515 } 1519 }
1516 1520
1517 __ Bind(deferred->exit()); 1521 __ Bind(deferred->exit());
1518 1522
1519 if (instr->hydrogen()->MustPrefillWithFiller()) { 1523 if (instr->hydrogen()->MustPrefillWithFiller()) {
1520 if (instr->size()->IsConstantOperand()) { 1524 if (instr->size()->IsConstantOperand()) {
(...skipping 4311 matching lines...) Expand 10 before | Expand all | Expand 10 after
5832 __ Bind(&out_of_object); 5836 __ Bind(&out_of_object);
5833 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5837 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5834 // Index is equal to negated out of object property index plus 1. 5838 // Index is equal to negated out of object property index plus 1.
5835 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5839 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5836 __ Ldr(result, FieldMemOperand(result, 5840 __ Ldr(result, FieldMemOperand(result,
5837 FixedArray::kHeaderSize - kPointerSize)); 5841 FixedArray::kHeaderSize - kPointerSize));
5838 __ Bind(&done); 5842 __ Bind(&done);
5839 } 5843 }
5840 5844
5841 } } // namespace v8::internal 5845 } } // 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