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

Side by Side Diff: src/heap-inl.h

Issue 262583004: Do not use default for switch over AllocationSpace. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/heap.cc ('k') | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_INL_H_ 5 #ifndef V8_HEAP_INL_H_
6 #define V8_HEAP_INL_H_ 6 #define V8_HEAP_INL_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "heap.h" 10 #include "heap.h"
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 (obj->IsExternalString() && ExternalString::cast(obj)->is_short())); 394 (obj->IsExternalString() && ExternalString::cast(obj)->is_short()));
395 case OLD_DATA_SPACE: 395 case OLD_DATA_SPACE:
396 return dst == src && dst == TargetSpaceId(type); 396 return dst == src && dst == TargetSpaceId(type);
397 case CODE_SPACE: 397 case CODE_SPACE:
398 return dst == src && type == CODE_TYPE; 398 return dst == src && type == CODE_TYPE;
399 case MAP_SPACE: 399 case MAP_SPACE:
400 case CELL_SPACE: 400 case CELL_SPACE:
401 case PROPERTY_CELL_SPACE: 401 case PROPERTY_CELL_SPACE:
402 case LO_SPACE: 402 case LO_SPACE:
403 return false; 403 return false;
404 default: 404 case INVALID_SPACE:
405 break; 405 break;
406 } 406 }
407 UNREACHABLE(); 407 UNREACHABLE();
408 return false; 408 return false;
409 } 409 }
410 410
411 411
412 void Heap::CopyBlock(Address dst, Address src, int byte_size) { 412 void Heap::CopyBlock(Address dst, Address src, int byte_size) {
413 CopyWords(reinterpret_cast<Object**>(dst), 413 CopyWords(reinterpret_cast<Object**>(dst),
414 reinterpret_cast<Object**>(src), 414 reinterpret_cast<Object**>(src),
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 768
769 769
770 double GCTracer::SizeOfHeapObjects() { 770 double GCTracer::SizeOfHeapObjects() {
771 return (static_cast<double>(heap_->SizeOfObjects())) / MB; 771 return (static_cast<double>(heap_->SizeOfObjects())) / MB;
772 } 772 }
773 773
774 774
775 } } // namespace v8::internal 775 } } // namespace v8::internal
776 776
777 #endif // V8_HEAP_INL_H_ 777 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698