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

Side by Side Diff: src/heap.h

Issue 9231009: More spelling changes. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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/global-handles.cc ('k') | src/heap.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 // failed. 683 // failed.
684 // Please note this does not perform a garbage collection. 684 // Please note this does not perform a garbage collection.
685 MUST_USE_RESULT MaybeObject* AllocateRawAsciiString( 685 MUST_USE_RESULT MaybeObject* AllocateRawAsciiString(
686 int length, 686 int length,
687 PretenureFlag pretenure = NOT_TENURED); 687 PretenureFlag pretenure = NOT_TENURED);
688 MUST_USE_RESULT MaybeObject* AllocateRawTwoByteString( 688 MUST_USE_RESULT MaybeObject* AllocateRawTwoByteString(
689 int length, 689 int length,
690 PretenureFlag pretenure = NOT_TENURED); 690 PretenureFlag pretenure = NOT_TENURED);
691 691
692 // Computes a single character string where the character has code. 692 // Computes a single character string where the character has code.
693 // A cache is used for ascii codes. 693 // A cache is used for ASCII codes.
694 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 694 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
695 // failed. Please note this does not perform a garbage collection. 695 // failed. Please note this does not perform a garbage collection.
696 MUST_USE_RESULT MaybeObject* LookupSingleCharacterStringFromCode( 696 MUST_USE_RESULT MaybeObject* LookupSingleCharacterStringFromCode(
697 uint16_t code); 697 uint16_t code);
698 698
699 // Allocate a byte array of the specified length 699 // Allocate a byte array of the specified length
700 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 700 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
701 // failed. 701 // failed.
702 // Please note this does not perform a garbage collection. 702 // Please note this does not perform a garbage collection.
703 MUST_USE_RESULT MaybeObject* AllocateByteArray(int length, 703 MUST_USE_RESULT MaybeObject* AllocateByteArray(int length,
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
2369 2369
2370 // Returns size of object in heap (in MB). 2370 // Returns size of object in heap (in MB).
2371 double SizeOfHeapObjects() { 2371 double SizeOfHeapObjects() {
2372 return (static_cast<double>(HEAP->SizeOfObjects())) / MB; 2372 return (static_cast<double>(HEAP->SizeOfObjects())) / MB;
2373 } 2373 }
2374 2374
2375 double start_time_; // Timestamp set in the constructor. 2375 double start_time_; // Timestamp set in the constructor.
2376 intptr_t start_size_; // Size of objects in heap set in constructor. 2376 intptr_t start_size_; // Size of objects in heap set in constructor.
2377 GarbageCollector collector_; // Type of collector. 2377 GarbageCollector collector_; // Type of collector.
2378 2378
2379 // A count (including this one, eg, the first collection is 1) of the 2379 // A count (including this one, e.g. the first collection is 1) of the
2380 // number of garbage collections. 2380 // number of garbage collections.
2381 unsigned int gc_count_; 2381 unsigned int gc_count_;
2382 2382
2383 // A count (including this one) of the number of full garbage collections. 2383 // A count (including this one) of the number of full garbage collections.
2384 int full_gc_count_; 2384 int full_gc_count_;
2385 2385
2386 // Amounts of time spent in different scopes during GC. 2386 // Amounts of time spent in different scopes during GC.
2387 double scopes_[Scope::kNumberOfScopes]; 2387 double scopes_[Scope::kNumberOfScopes];
2388 2388
2389 // Total amount of space either wasted or contained in one of free lists 2389 // Total amount of space either wasted or contained in one of free lists
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
2615 2615
2616 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2616 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2617 }; 2617 };
2618 #endif // DEBUG || LIVE_OBJECT_LIST 2618 #endif // DEBUG || LIVE_OBJECT_LIST
2619 2619
2620 } } // namespace v8::internal 2620 } } // namespace v8::internal
2621 2621
2622 #undef HEAP 2622 #undef HEAP
2623 2623
2624 #endif // V8_HEAP_H_ 2624 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/global-handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698