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

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

Issue 180703004: Merged r19591, r19599 into 3.23 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.23
Patch Set: Add missing constant 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/ia32/lithium-codegen-ia32.cc ('k') | src/property-details.h » ('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 5332 matching lines...) Expand 10 before | Expand all | Expand 10 after
5343 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) { 5343 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) {
5344 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 5344 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
5345 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5345 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5346 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 5346 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5347 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 5347 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5348 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5348 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5349 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); 5349 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
5350 } 5350 }
5351 if (instr->size()->IsConstantOperand()) { 5351 if (instr->size()->IsConstantOperand()) {
5352 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5352 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5353 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); 5353 if (size <= Page::kMaxRegularHeapObjectSize) {
5354 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
5355 } else {
5356 __ jmp(deferred->entry());
5357 }
5354 } else { 5358 } else {
5355 Register size = ToRegister(instr->size()); 5359 Register size = ToRegister(instr->size());
5356 __ Allocate(size, 5360 __ Allocate(size,
5357 result, 5361 result,
5358 scratch, 5362 scratch,
5359 scratch2, 5363 scratch2,
5360 deferred->entry(), 5364 deferred->entry(),
5361 flags); 5365 flags);
5362 } 5366 }
5363 5367
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
5885 __ Subu(scratch, result, scratch); 5889 __ Subu(scratch, result, scratch);
5886 __ lw(result, FieldMemOperand(scratch, 5890 __ lw(result, FieldMemOperand(scratch,
5887 FixedArray::kHeaderSize - kPointerSize)); 5891 FixedArray::kHeaderSize - kPointerSize));
5888 __ bind(&done); 5892 __ bind(&done);
5889 } 5893 }
5890 5894
5891 5895
5892 #undef __ 5896 #undef __
5893 5897
5894 } } // namespace v8::internal 5898 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/property-details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698