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

Unified Diff: runtime/bin/builtin_natives.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/builtin_gen_snapshot.cc ('k') | runtime/bin/builtin_nolib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin_natives.cc
diff --git a/runtime/bin/builtin_natives.cc b/runtime/bin/builtin_natives.cc
index 394beb3d11268a3a027d2a57a42288c7daf1e68d..02c7db173bbd52acf8653d384b97b6478d0637d4 100644
--- a/runtime/bin/builtin_natives.cc
+++ b/runtime/bin/builtin_natives.cc
@@ -2,8 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "include/dart_api.h"
@@ -29,7 +29,6 @@ namespace bin {
V(Builtin_PrintString, 1) \
V(Builtin_GetCurrentDirectory, 0)
-
BUILTIN_NATIVE_LIST(DECLARE_FUNCTION);
static struct NativeEntries {
@@ -38,12 +37,10 @@ static struct NativeEntries {
int argument_count_;
} BuiltinEntries[] = {BUILTIN_NATIVE_LIST(REGISTER_FUNCTION)};
-
void Builtin_DummyNative(Dart_NativeArguments args) {
UNREACHABLE();
}
-
/**
* Looks up native functions in both libdart_builtin and libdart_io.
*/
@@ -72,7 +69,6 @@ Dart_NativeFunction Builtin::NativeLookup(Dart_Handle name,
return result;
}
-
const uint8_t* Builtin::NativeSymbol(Dart_NativeFunction nf) {
int num_entries = sizeof(BuiltinEntries) / sizeof(struct NativeEntries);
for (int i = 0; i < num_entries; i++) {
@@ -84,7 +80,6 @@ const uint8_t* Builtin::NativeSymbol(Dart_NativeFunction nf) {
return IONativeSymbol(nf);
}
-
// Implementation of native functions which are used for some
// test/debug functionality in standalone dart mode.
void FUNCTION_NAME(Builtin_PrintString)(Dart_NativeArguments args) {
« no previous file with comments | « runtime/bin/builtin_gen_snapshot.cc ('k') | runtime/bin/builtin_nolib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698