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

Unified Diff: runtime/lib/object.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/mirrors.cc ('k') | runtime/lib/profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/object.cc
diff --git a/runtime/lib/object.cc b/runtime/lib/object.cc
index d433de3361baf994ed47d3ecc0f8a6936b08e57c..78fb700f675f5a6f9191ef40200d977445fdfc98 100644
--- a/runtime/lib/object.cc
+++ b/runtime/lib/object.cc
@@ -26,18 +26,16 @@ DEFINE_NATIVE_ENTRY(DartAsync_fatal, 1) {
return Object::null();
}
-
DEFINE_NATIVE_ENTRY(Object_equals, 1) {
// Implemented in the flow graph builder.
UNREACHABLE();
return Object::null();
}
-
DEFINE_NATIVE_ENTRY(Object_getHash, 1) {
- // Please note that no handle is created for the argument.
- // This is safe since the argument is only used in a tail call.
- // The performance benefit is more than 5% when using hashCode.
+// Please note that no handle is created for the argument.
+// This is safe since the argument is only used in a tail call.
+// The performance benefit is more than 5% when using hashCode.
#if defined(HASH_IN_OBJECT_HEADER)
return Smi::New(Object::GetCachedHash(arguments->NativeArgAt(0)));
#else
@@ -47,7 +45,6 @@ DEFINE_NATIVE_ENTRY(Object_getHash, 1) {
#endif
}
-
DEFINE_NATIVE_ENTRY(Object_setHash, 2) {
GET_NON_NULL_NATIVE_ARGUMENT(Smi, hash, arguments->NativeArgAt(1));
#if defined(HASH_IN_OBJECT_HEADER)
@@ -60,7 +57,6 @@ DEFINE_NATIVE_ENTRY(Object_setHash, 2) {
return Object::null();
}
-
DEFINE_NATIVE_ENTRY(Object_toString, 1) {
const Instance& instance = Instance::CheckedHandle(arguments->NativeArgAt(0));
if (instance.IsString()) {
@@ -70,7 +66,6 @@ DEFINE_NATIVE_ENTRY(Object_toString, 1) {
return String::New(c_str);
}
-
DEFINE_NATIVE_ENTRY(Object_noSuchMethod, 6) {
const Instance& instance = Instance::CheckedHandle(arguments->NativeArgAt(0));
GET_NON_NULL_NATIVE_ARGUMENT(Bool, is_method, arguments->NativeArgAt(1));
@@ -120,7 +115,6 @@ DEFINE_NATIVE_ENTRY(Object_noSuchMethod, 6) {
return Object::null();
}
-
DEFINE_NATIVE_ENTRY(Object_runtimeType, 1) {
const Instance& instance = Instance::CheckedHandle(arguments->NativeArgAt(0));
if (instance.IsString()) {
@@ -133,7 +127,6 @@ DEFINE_NATIVE_ENTRY(Object_runtimeType, 1) {
return instance.GetType(Heap::kNew);
}
-
DEFINE_NATIVE_ENTRY(Object_haveSameRuntimeType, 2) {
const Instance& left = Instance::CheckedHandle(arguments->NativeArgAt(0));
const Instance& right = Instance::CheckedHandle(arguments->NativeArgAt(1));
@@ -172,7 +165,6 @@ DEFINE_NATIVE_ENTRY(Object_haveSameRuntimeType, 2) {
return Bool::Get(left_type_arguments.Equals(right_type_arguments)).raw();
}
-
DEFINE_NATIVE_ENTRY(Object_instanceOf, 4) {
const Instance& instance =
Instance::CheckedHandle(zone, arguments->NativeArgAt(0));
@@ -250,7 +242,6 @@ DEFINE_NATIVE_ENTRY(Object_simpleInstanceOf, 2) {
return Bool::Get(is_instance_of).raw();
}
-
DEFINE_NATIVE_ENTRY(Object_as, 4) {
const Instance& instance =
Instance::CheckedHandle(zone, arguments->NativeArgAt(0));
@@ -313,14 +304,12 @@ DEFINE_NATIVE_ENTRY(Object_as, 4) {
return instance.raw();
}
-
DEFINE_NATIVE_ENTRY(AbstractType_toString, 1) {
const AbstractType& type =
AbstractType::CheckedHandle(zone, arguments->NativeArgAt(0));
return type.UserVisibleName();
}
-
DEFINE_NATIVE_ENTRY(LibraryPrefix_invalidateDependentCode, 1) {
const LibraryPrefix& prefix =
LibraryPrefix::CheckedHandle(zone, arguments->NativeArgAt(0));
@@ -328,7 +317,6 @@ DEFINE_NATIVE_ENTRY(LibraryPrefix_invalidateDependentCode, 1) {
return Bool::Get(true).raw();
}
-
DEFINE_NATIVE_ENTRY(LibraryPrefix_load, 1) {
const LibraryPrefix& prefix =
LibraryPrefix::CheckedHandle(zone, arguments->NativeArgAt(0));
@@ -336,7 +324,6 @@ DEFINE_NATIVE_ENTRY(LibraryPrefix_load, 1) {
return Bool::Get(hasCompleted).raw();
}
-
DEFINE_NATIVE_ENTRY(LibraryPrefix_loadError, 1) {
const LibraryPrefix& prefix =
LibraryPrefix::CheckedHandle(zone, arguments->NativeArgAt(0));
@@ -348,14 +335,12 @@ DEFINE_NATIVE_ENTRY(LibraryPrefix_loadError, 1) {
return error.raw();
}
-
DEFINE_NATIVE_ENTRY(LibraryPrefix_isLoaded, 1) {
const LibraryPrefix& prefix =
LibraryPrefix::CheckedHandle(zone, arguments->NativeArgAt(0));
return Bool::Get(prefix.is_loaded()).raw();
}
-
DEFINE_NATIVE_ENTRY(Internal_inquireIs64Bit, 0) {
#if defined(ARCH_IS_64_BIT)
return Bool::True().raw();
@@ -364,7 +349,6 @@ DEFINE_NATIVE_ENTRY(Internal_inquireIs64Bit, 0) {
#endif // defined(ARCH_IS_64_BIT)
}
-
DEFINE_NATIVE_ENTRY(Internal_prependTypeArguments, 3) {
const TypeArguments& function_type_arguments =
TypeArguments::CheckedHandle(zone, arguments->NativeArgAt(0));
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/lib/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698