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

Side by Side Diff: runtime/bin/builtin.h

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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 | « .clang-format ('k') | runtime/bin/builtin.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_BIN_BUILTIN_H_ 5 #ifndef RUNTIME_BIN_BUILTIN_H_
6 #define RUNTIME_BIN_BUILTIN_H_ 6 #define RUNTIME_BIN_BUILTIN_H_
7 7
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
11 #include "include/dart_api.h" 11 #include "include/dart_api.h"
12 12
13 #include "platform/assert.h" 13 #include "platform/assert.h"
14 #include "platform/globals.h" 14 #include "platform/globals.h"
15 15
16 namespace dart { 16 namespace dart {
17 namespace bin { 17 namespace bin {
18 18
19 #define FUNCTION_NAME(name) Builtin_##name 19 #define FUNCTION_NAME(name) Builtin_##name
20 #define REGISTER_FUNCTION(name, count) {"" #name, FUNCTION_NAME(name), count}, 20 #define REGISTER_FUNCTION(name, count) {"" #name, FUNCTION_NAME(name), count},
21 #define DECLARE_FUNCTION(name, count) \ 21 #define DECLARE_FUNCTION(name, count) \
22 extern void FUNCTION_NAME(name)(Dart_NativeArguments args); 22 extern void FUNCTION_NAME(name)(Dart_NativeArguments args);
23 23
24
25 class Builtin { 24 class Builtin {
26 public: 25 public:
27 // Note: Changes to this enum should be accompanied with changes to 26 // Note: Changes to this enum should be accompanied with changes to
28 // the builtin_libraries_ array in builtin.cc and builtin_nolib.cc. 27 // the builtin_libraries_ array in builtin.cc and builtin_nolib.cc.
29 enum BuiltinLibraryId { 28 enum BuiltinLibraryId {
30 kInvalidLibrary = -1, 29 kInvalidLibrary = -1,
31 kBuiltinLibrary = 0, 30 kBuiltinLibrary = 0,
32 kIOLibrary 31 kIOLibrary
33 }; 32 };
34 33
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 static builtin_lib_props builtin_libraries_[]; 95 static builtin_lib_props builtin_libraries_[];
97 96
98 DISALLOW_ALLOCATION(); 97 DISALLOW_ALLOCATION();
99 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); 98 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin);
100 }; 99 };
101 100
102 } // namespace bin 101 } // namespace bin
103 } // namespace dart 102 } // namespace dart
104 103
105 #endif // RUNTIME_BIN_BUILTIN_H_ 104 #endif // RUNTIME_BIN_BUILTIN_H_
OLDNEW
« no previous file with comments | « .clang-format ('k') | runtime/bin/builtin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698