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

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

Issue 1027463002: Revert "Merge old data and pointer space." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/macro-assembler.h ('k') | src/mips/macro-assembler-mips.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.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 5369 matching lines...) Expand 10 before | Expand all | Expand 10 after
5380 5380
5381 Register result = ToRegister(instr->result()); 5381 Register result = ToRegister(instr->result());
5382 Register scratch = ToRegister(instr->temp1()); 5382 Register scratch = ToRegister(instr->temp1());
5383 Register scratch2 = ToRegister(instr->temp2()); 5383 Register scratch2 = ToRegister(instr->temp2());
5384 5384
5385 // Allocate memory for the object. 5385 // Allocate memory for the object.
5386 AllocationFlags flags = TAG_OBJECT; 5386 AllocationFlags flags = TAG_OBJECT;
5387 if (instr->hydrogen()->MustAllocateDoubleAligned()) { 5387 if (instr->hydrogen()->MustAllocateDoubleAligned()) {
5388 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 5388 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
5389 } 5389 }
5390 if (instr->hydrogen()->IsOldSpaceAllocation()) { 5390 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) {
5391 DCHECK(!instr->hydrogen()->IsOldDataSpaceAllocation());
5391 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); 5392 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation());
5392 flags = static_cast<AllocationFlags>(flags | PRETENURE); 5393 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5394 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5395 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation());
5396 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE);
5393 } 5397 }
5394 if (instr->size()->IsConstantOperand()) { 5398 if (instr->size()->IsConstantOperand()) {
5395 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5399 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5396 if (size <= Page::kMaxRegularHeapObjectSize) { 5400 if (size <= Page::kMaxRegularHeapObjectSize) {
5397 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); 5401 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
5398 } else { 5402 } else {
5399 __ jmp(deferred->entry()); 5403 __ jmp(deferred->entry());
5400 } 5404 }
5401 } else { 5405 } else {
5402 Register size = ToRegister(instr->size()); 5406 Register size = ToRegister(instr->size());
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5444 __ Push(Smi::FromInt(size)); 5448 __ Push(Smi::FromInt(size));
5445 } else { 5449 } else {
5446 // We should never get here at runtime => abort 5450 // We should never get here at runtime => abort
5447 __ stop("invalid allocation size"); 5451 __ stop("invalid allocation size");
5448 return; 5452 return;
5449 } 5453 }
5450 } 5454 }
5451 5455
5452 int flags = AllocateDoubleAlignFlag::encode( 5456 int flags = AllocateDoubleAlignFlag::encode(
5453 instr->hydrogen()->MustAllocateDoubleAligned()); 5457 instr->hydrogen()->MustAllocateDoubleAligned());
5454 if (instr->hydrogen()->IsOldSpaceAllocation()) { 5458 if (instr->hydrogen()->IsOldPointerSpaceAllocation()) {
5459 DCHECK(!instr->hydrogen()->IsOldDataSpaceAllocation());
5455 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); 5460 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation());
5456 flags = AllocateTargetSpace::update(flags, OLD_SPACE); 5461 flags = AllocateTargetSpace::update(flags, OLD_POINTER_SPACE);
5462 } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) {
5463 DCHECK(!instr->hydrogen()->IsNewSpaceAllocation());
5464 flags = AllocateTargetSpace::update(flags, OLD_DATA_SPACE);
5457 } else { 5465 } else {
5458 flags = AllocateTargetSpace::update(flags, NEW_SPACE); 5466 flags = AllocateTargetSpace::update(flags, NEW_SPACE);
5459 } 5467 }
5460 __ Push(Smi::FromInt(flags)); 5468 __ Push(Smi::FromInt(flags));
5461 5469
5462 CallRuntimeFromDeferred( 5470 CallRuntimeFromDeferred(
5463 Runtime::kAllocateInTargetSpace, 2, instr, instr->context()); 5471 Runtime::kAllocateInTargetSpace, 2, instr, instr->context());
5464 __ StoreToSafepointRegisterSlot(v0, result); 5472 __ StoreToSafepointRegisterSlot(v0, result);
5465 } 5473 }
5466 5474
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
5980 __ li(at, scope_info); 5988 __ li(at, scope_info);
5981 __ Push(at, ToRegister(instr->function())); 5989 __ Push(at, ToRegister(instr->function()));
5982 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5990 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5983 RecordSafepoint(Safepoint::kNoLazyDeopt); 5991 RecordSafepoint(Safepoint::kNoLazyDeopt);
5984 } 5992 }
5985 5993
5986 5994
5987 #undef __ 5995 #undef __
5988 5996
5989 } } // namespace v8::internal 5997 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/macro-assembler.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698