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

Unified Diff: runtime/lib/growable_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/lib/function.cc ('k') | runtime/lib/integers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/growable_array.cc
diff --git a/runtime/lib/growable_array.cc b/runtime/lib/growable_array.cc
index 48f7343f8d3c2df095dde0d0b56ed5a727414b4f..d533f0d6adbd3dac8c6a834049b10dc6b0cf0690 100644
--- a/runtime/lib/growable_array.cc
+++ b/runtime/lib/growable_array.cc
@@ -28,7 +28,6 @@ DEFINE_NATIVE_ENTRY(GrowableList_allocate, 2) {
return new_array.raw();
}
-
DEFINE_NATIVE_ENTRY(GrowableList_getIndexed, 2) {
const GrowableObjectArray& array =
GrowableObjectArray::CheckedHandle(arguments->NativeArgAt(0));
@@ -40,7 +39,6 @@ DEFINE_NATIVE_ENTRY(GrowableList_getIndexed, 2) {
return obj.raw();
}
-
DEFINE_NATIVE_ENTRY(GrowableList_setIndexed, 3) {
const GrowableObjectArray& array =
GrowableObjectArray::CheckedHandle(arguments->NativeArgAt(0));
@@ -53,21 +51,18 @@ DEFINE_NATIVE_ENTRY(GrowableList_setIndexed, 3) {
return Object::null();
}
-
DEFINE_NATIVE_ENTRY(GrowableList_getLength, 1) {
const GrowableObjectArray& array =
GrowableObjectArray::CheckedHandle(arguments->NativeArgAt(0));
return Smi::New(array.Length());
}
-
DEFINE_NATIVE_ENTRY(GrowableList_getCapacity, 1) {
const GrowableObjectArray& array =
GrowableObjectArray::CheckedHandle(arguments->NativeArgAt(0));
return Smi::New(array.Capacity());
}
-
DEFINE_NATIVE_ENTRY(GrowableList_setLength, 2) {
const GrowableObjectArray& array =
GrowableObjectArray::CheckedHandle(arguments->NativeArgAt(0));
@@ -77,7 +72,6 @@ DEFINE_NATIVE_ENTRY(GrowableList_setLength, 2) {
return Object::null();
}
-
DEFINE_NATIVE_ENTRY(GrowableList_setData, 2) {
const GrowableObjectArray& array =
GrowableObjectArray::CheckedHandle(arguments->NativeArgAt(0));
@@ -87,14 +81,12 @@ DEFINE_NATIVE_ENTRY(GrowableList_setData, 2) {
return Object::null();
}
-
DEFINE_NATIVE_ENTRY(Internal_makeListFixedLength, 1) {
GET_NON_NULL_NATIVE_ARGUMENT(GrowableObjectArray, array,
arguments->NativeArgAt(0));
return Array::MakeFixedLength(array, /* unique = */ true);
}
-
DEFINE_NATIVE_ENTRY(Internal_makeFixedListUnmodifiable, 1) {
GET_NON_NULL_NATIVE_ARGUMENT(Array, array, arguments->NativeArgAt(0));
array.MakeImmutable();
« no previous file with comments | « runtime/lib/function.cc ('k') | runtime/lib/integers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698