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

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

Issue 225503002: Version 3.26.6.1 (merged r20491) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 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/version.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 2012 the V8 project authors. All rights reserved.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 5353 matching lines...) Expand 10 before | Expand all | Expand 10 after
5364 __ mov(result, zero_reg); 5364 __ mov(result, zero_reg);
5365 5365
5366 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 5366 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
5367 if (instr->size()->IsRegister()) { 5367 if (instr->size()->IsRegister()) {
5368 Register size = ToRegister(instr->size()); 5368 Register size = ToRegister(instr->size());
5369 ASSERT(!size.is(result)); 5369 ASSERT(!size.is(result));
5370 __ SmiTag(size); 5370 __ SmiTag(size);
5371 __ push(size); 5371 __ push(size);
5372 } else { 5372 } else {
5373 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5373 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5374 __ Push(Smi::FromInt(size)); 5374 if (size >= 0 && size <= Smi::kMaxValue) {
5375 __ Push(Smi::FromInt(size));
5376 } else {
5377 // We should never get here at runtime => abort
5378 __ stop("invalid allocation size");
5379 return;
5380 }
5375 } 5381 }
5376 5382
5377 int flags = AllocateDoubleAlignFlag::encode( 5383 int flags = AllocateDoubleAlignFlag::encode(
5378 instr->hydrogen()->MustAllocateDoubleAligned()); 5384 instr->hydrogen()->MustAllocateDoubleAligned());
5379 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) { 5385 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) {
5380 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation()); 5386 ASSERT(!instr->hydrogen()->IsOldDataSpaceAllocation());
5381 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5387 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
5382 flags = AllocateTargetSpace::update(flags, OLD_POINTER_SPACE); 5388 flags = AllocateTargetSpace::update(flags, OLD_POINTER_SPACE);
5383 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { 5389 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5384 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation()); 5390 ASSERT(!instr->hydrogen()->IsNewSpaceAllocation());
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
5900 __ lw(result, FieldMemOperand(scratch, 5906 __ lw(result, FieldMemOperand(scratch,
5901 FixedArray::kHeaderSize - kPointerSize)); 5907 FixedArray::kHeaderSize - kPointerSize));
5902 __ bind(deferred->exit()); 5908 __ bind(deferred->exit());
5903 __ bind(&done); 5909 __ bind(&done);
5904 } 5910 }
5905 5911
5906 5912
5907 #undef __ 5913 #undef __
5908 5914
5909 } } // namespace v8::internal 5915 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698