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

Side by Side Diff: src/globals.h

Issue 1371083003: [presubmit] Enable readability/namespace linter checking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 DCHECK(IsValidFunctionKind(kind)); 1013 DCHECK(IsValidFunctionKind(kind));
1014 return kind & FunctionKind::kInObjectLiteral; 1014 return kind & FunctionKind::kInObjectLiteral;
1015 } 1015 }
1016 1016
1017 1017
1018 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { 1018 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) {
1019 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); 1019 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral);
1020 DCHECK(IsValidFunctionKind(kind)); 1020 DCHECK(IsValidFunctionKind(kind));
1021 return kind; 1021 return kind;
1022 } 1022 }
1023 } } // namespace v8::internal 1023 } // namespace internal
1024 } // namespace v8
1024 1025
1025 namespace i = v8::internal; 1026 namespace i = v8::internal;
1026 1027
1027 #endif // V8_GLOBALS_H_ 1028 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/global-handles.h ('k') | src/hashmap.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698