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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 141653016: Remove Heap::MaxRegularSpaceAllocationSize and use Page::MaxRegularHeapObjectSize instead. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/hydrogen.cc ('k') | src/ia32/macro-assembler-ia32.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. 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 3435 matching lines...) Expand 10 before | Expand all | Expand 10 after
3446 if (MustAllocateDoubleAligned()) { 3446 if (MustAllocateDoubleAligned()) {
3447 if (!dominator_allocate->MustAllocateDoubleAligned()) { 3447 if (!dominator_allocate->MustAllocateDoubleAligned()) {
3448 dominator_allocate->MakeDoubleAligned(); 3448 dominator_allocate->MakeDoubleAligned();
3449 } 3449 }
3450 if ((dominator_size_constant & kDoubleAlignmentMask) != 0) { 3450 if ((dominator_size_constant & kDoubleAlignmentMask) != 0) {
3451 dominator_size_constant += kDoubleSize / 2; 3451 dominator_size_constant += kDoubleSize / 2;
3452 new_dominator_size += kDoubleSize / 2; 3452 new_dominator_size += kDoubleSize / 2;
3453 } 3453 }
3454 } 3454 }
3455 3455
3456 if (new_dominator_size > isolate()->heap()->MaxRegularSpaceAllocationSize()) { 3456 if (new_dominator_size > Page::kMaxRegularHeapObjectSize) {
3457 if (FLAG_trace_allocation_folding) { 3457 if (FLAG_trace_allocation_folding) {
3458 PrintF("#%d (%s) cannot fold into #%d (%s) due to size: %d\n", 3458 PrintF("#%d (%s) cannot fold into #%d (%s) due to size: %d\n",
3459 id(), Mnemonic(), dominator_allocate->id(), 3459 id(), Mnemonic(), dominator_allocate->id(),
3460 dominator_allocate->Mnemonic(), new_dominator_size); 3460 dominator_allocate->Mnemonic(), new_dominator_size);
3461 } 3461 }
3462 return; 3462 return;
3463 } 3463 }
3464 3464
3465 HInstruction* new_dominator_size_constant = HConstant::CreateAndInsertBefore( 3465 HInstruction* new_dominator_size_constant = HConstant::CreateAndInsertBefore(
3466 zone, 3466 zone,
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
4437 break; 4437 break;
4438 case kExternalMemory: 4438 case kExternalMemory:
4439 stream->Add("[external-memory]"); 4439 stream->Add("[external-memory]");
4440 break; 4440 break;
4441 } 4441 }
4442 4442
4443 stream->Add("@%d", offset()); 4443 stream->Add("@%d", offset());
4444 } 4444 }
4445 4445
4446 } } // namespace v8::internal 4446 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698