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

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

Issue 181183007: Merged r19591, r19599 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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/version.cc ('k') | test/mjsunit/regress/regress-347909.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 5033 matching lines...) Expand 10 before | Expand all | Expand 10 after
5044 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 5044 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
5045 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5045 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5046 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 5046 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5047 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 5047 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5048 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5048 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5049 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); 5049 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
5050 } 5050 }
5051 5051
5052 if (instr->size()->IsConstantOperand()) { 5052 if (instr->size()->IsConstantOperand()) {
5053 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5053 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5054 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); 5054 if (size <= Page::kMaxRegularHeapObjectSize) {
5055 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5056 } else {
5057 __ jmp(deferred->entry());
5058 }
5055 } else { 5059 } else {
5056 Register size = ToRegister(instr->size()); 5060 Register size = ToRegister(instr->size());
5057 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); 5061 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5058 } 5062 }
5059 5063
5060 __ bind(deferred->exit()); 5064 __ bind(deferred->exit());
5061 5065
5062 if (instr->hydrogen()->MustPrefillWithFiller()) { 5066 if (instr->hydrogen()->MustPrefillWithFiller()) {
5063 if (instr->size()->IsConstantOperand()) { 5067 if (instr->size()->IsConstantOperand()) {
5064 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5068 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
5545 FixedArray::kHeaderSize - kPointerSize)); 5549 FixedArray::kHeaderSize - kPointerSize));
5546 __ bind(&done); 5550 __ bind(&done);
5547 } 5551 }
5548 5552
5549 5553
5550 #undef __ 5554 #undef __
5551 5555
5552 } } // namespace v8::internal 5556 } } // namespace v8::internal
5553 5557
5554 #endif // V8_TARGET_ARCH_X64 5558 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | test/mjsunit/regress/regress-347909.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698