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

Side by Side Diff: src/globals.h

Issue 2201763004: Shuffle fields around in Scope to save more zone memory (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment Created 4 years, 4 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
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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 1006
1007 1007
1008 enum MinusZeroMode { 1008 enum MinusZeroMode {
1009 TREAT_MINUS_ZERO_AS_ZERO, 1009 TREAT_MINUS_ZERO_AS_ZERO,
1010 FAIL_ON_MINUS_ZERO 1010 FAIL_ON_MINUS_ZERO
1011 }; 1011 };
1012 1012
1013 1013
1014 enum Signedness { kSigned, kUnsigned }; 1014 enum Signedness { kSigned, kUnsigned };
1015 1015
1016 enum FunctionKind { 1016 enum FunctionKind : uint16_t {
1017 kNormalFunction = 0, 1017 kNormalFunction = 0,
1018 kArrowFunction = 1 << 0, 1018 kArrowFunction = 1 << 0,
1019 kGeneratorFunction = 1 << 1, 1019 kGeneratorFunction = 1 << 1,
1020 kConciseMethod = 1 << 2, 1020 kConciseMethod = 1 << 2,
1021 kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod, 1021 kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod,
1022 kDefaultConstructor = 1 << 3, 1022 kDefaultConstructor = 1 << 3,
1023 kSubclassConstructor = 1 << 4, 1023 kSubclassConstructor = 1 << 4,
1024 kBaseConstructor = 1 << 5, 1024 kBaseConstructor = 1 << 5,
1025 kGetterFunction = 1 << 6, 1025 kGetterFunction = 1 << 6,
1026 kSetterFunction = 1 << 7, 1026 kSetterFunction = 1 << 7,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> 1148 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >>
1149 kPointerSizeLog2); 1149 kPointerSizeLog2);
1150 } 1150 }
1151 1151
1152 } // namespace internal 1152 } // namespace internal
1153 } // namespace v8 1153 } // namespace v8
1154 1154
1155 namespace i = v8::internal; 1155 namespace i = v8::internal;
1156 1156
1157 #endif // V8_GLOBALS_H_ 1157 #endif // V8_GLOBALS_H_
OLDNEW
« src/ast/scopes.h ('K') | « src/ast/scopes.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698