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

Side by Side Diff: src/globals.h

Issue 1146913002: Change hash table capacity defaults. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/api-natives.h ('k') | src/heap/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 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_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 440
441 enum AllocationAlignment { kWordAligned, kDoubleAligned, kDoubleUnaligned }; 441 enum AllocationAlignment { kWordAligned, kDoubleAligned, kDoubleUnaligned };
442 442
443 // A flag that indicates whether objects should be pretenured when 443 // A flag that indicates whether objects should be pretenured when
444 // allocated (allocated directly into the old generation) or not 444 // allocated (allocated directly into the old generation) or not
445 // (allocated in the young generation if the object size and type 445 // (allocated in the young generation if the object size and type
446 // allows). 446 // allows).
447 enum PretenureFlag { NOT_TENURED, TENURED }; 447 enum PretenureFlag { NOT_TENURED, TENURED };
448 448
449 enum MinimumCapacity { 449 enum MinimumCapacity {
450 USE_DEFAULT_MINIMUM_CAPACITY, 450 USE_COMPUTED_MINIMUM_CAPACITY,
451 USE_CUSTOM_MINIMUM_CAPACITY 451 USE_CUSTOM_MINIMUM_CAPACITY
452 }; 452 };
453 453
454 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; 454 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR };
455 455
456 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; 456 enum Executability { NOT_EXECUTABLE, EXECUTABLE };
457 457
458 enum VisitMode { 458 enum VisitMode {
459 VISIT_ALL, 459 VISIT_ALL,
460 VISIT_ALL_IN_SCAVENGE, 460 VISIT_ALL_IN_SCAVENGE,
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { 928 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) {
929 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); 929 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral);
930 DCHECK(IsValidFunctionKind(kind)); 930 DCHECK(IsValidFunctionKind(kind));
931 return kind; 931 return kind;
932 } 932 }
933 } } // namespace v8::internal 933 } } // namespace v8::internal
934 934
935 namespace i = v8::internal; 935 namespace i = v8::internal;
936 936
937 #endif // V8_GLOBALS_H_ 937 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/api-natives.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698