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

Unified Diff: runtime/lib/array.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/include/dart_tools_api.h ('k') | runtime/lib/bool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.cc
diff --git a/runtime/lib/array.cc b/runtime/lib/array.cc
index 9d43816ae508e5b6d46597fe8f27f16c3dcee62e..1a9217b2c69ed531ed0ffb56b716dede3a89020f 100644
--- a/runtime/lib/array.cc
+++ b/runtime/lib/array.cc
@@ -3,8 +3,8 @@
// BSD-style license that can be found in the LICENSE file.
#include "platform/assert.h"
-#include "vm/bootstrap_natives.h"
#include "vm/assembler.h"
+#include "vm/bootstrap_natives.h"
#include "vm/exceptions.h"
#include "vm/native_entry.h"
#include "vm/object.h"
@@ -17,7 +17,6 @@ DEFINE_NATIVE_ENTRY(List_allocate, 2) {
return Object::null();
}
-
DEFINE_NATIVE_ENTRY(List_getIndexed, 2) {
const Array& array = Array::CheckedHandle(arguments->NativeArgAt(0));
GET_NON_NULL_NATIVE_ARGUMENT(Smi, index, arguments->NativeArgAt(1));
@@ -27,7 +26,6 @@ DEFINE_NATIVE_ENTRY(List_getIndexed, 2) {
return array.At(index.Value());
}
-
DEFINE_NATIVE_ENTRY(List_setIndexed, 3) {
const Array& array = Array::CheckedHandle(arguments->NativeArgAt(0));
GET_NON_NULL_NATIVE_ARGUMENT(Smi, index, arguments->NativeArgAt(1));
@@ -39,13 +37,11 @@ DEFINE_NATIVE_ENTRY(List_setIndexed, 3) {
return Object::null();
}
-
DEFINE_NATIVE_ENTRY(List_getLength, 1) {
const Array& array = Array::CheckedHandle(arguments->NativeArgAt(0));
return Smi::New(array.Length());
}
-
// ObjectArray src, int start, int count, bool needTypeArgument.
DEFINE_NATIVE_ENTRY(List_slice, 4) {
const Array& src = Array::CheckedHandle(arguments->NativeArgAt(0));
@@ -67,7 +63,6 @@ DEFINE_NATIVE_ENTRY(List_slice, 4) {
return src.Slice(istart, icount, needs_type_arg.value());
}
-
// Private factory, expects correct arguments.
DEFINE_NATIVE_ENTRY(ImmutableList_from, 4) {
// Ignore first argument of a thsi factory (type argument).
« no previous file with comments | « runtime/include/dart_tools_api.h ('k') | runtime/lib/bool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698