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

Side by Side Diff: src/globals.h

Issue 927083002: gcc 4.6 fix. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | 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_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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 kNormalFunction = 0, 818 kNormalFunction = 0,
819 kArrowFunction = 1 << 0, 819 kArrowFunction = 1 << 0,
820 kGeneratorFunction = 1 << 1, 820 kGeneratorFunction = 1 << 1,
821 kConciseMethod = 1 << 2, 821 kConciseMethod = 1 << 2,
822 kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod, 822 kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod,
823 kAccessorFunction = 1 << 3, 823 kAccessorFunction = 1 << 3,
824 kDefaultConstructor = 1 << 4, 824 kDefaultConstructor = 1 << 4,
825 kSubclassConstructor = 1 << 5, 825 kSubclassConstructor = 1 << 5,
826 kBaseConstructor = 1 << 6, 826 kBaseConstructor = 1 << 6,
827 kDefaultBaseConstructor = kDefaultConstructor | kBaseConstructor, 827 kDefaultBaseConstructor = kDefaultConstructor | kBaseConstructor,
828 kDefaultSubclassConstructor = kDefaultConstructor | kSubclassConstructor, 828 kDefaultSubclassConstructor = kDefaultConstructor | kSubclassConstructor
829 }; 829 };
830 830
831 831
832 inline bool IsValidFunctionKind(FunctionKind kind) { 832 inline bool IsValidFunctionKind(FunctionKind kind) {
833 return kind == FunctionKind::kNormalFunction || 833 return kind == FunctionKind::kNormalFunction ||
834 kind == FunctionKind::kArrowFunction || 834 kind == FunctionKind::kArrowFunction ||
835 kind == FunctionKind::kGeneratorFunction || 835 kind == FunctionKind::kGeneratorFunction ||
836 kind == FunctionKind::kConciseMethod || 836 kind == FunctionKind::kConciseMethod ||
837 kind == FunctionKind::kConciseGeneratorMethod || 837 kind == FunctionKind::kConciseGeneratorMethod ||
838 kind == FunctionKind::kAccessorFunction || 838 kind == FunctionKind::kAccessorFunction ||
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 DCHECK(IsValidFunctionKind(kind)); 889 DCHECK(IsValidFunctionKind(kind));
890 return kind & 890 return kind &
891 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | 891 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor |
892 FunctionKind::kDefaultConstructor); 892 FunctionKind::kDefaultConstructor);
893 } 893 }
894 } } // namespace v8::internal 894 } } // namespace v8::internal
895 895
896 namespace i = v8::internal; 896 namespace i = v8::internal;
897 897
898 #endif // V8_GLOBALS_H_ 898 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698