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

Unified Diff: runtime/vm/assembler_dbc_test.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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/vm/assembler_dbc.cc ('k') | runtime/vm/assembler_ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_dbc_test.cc
diff --git a/runtime/vm/assembler_dbc_test.cc b/runtime/vm/assembler_dbc_test.cc
index 254f6387ad4ebdd10ca5361ae8555684f4d28604..a8d2fdfe70c88161283c3eb3dc190903611897c3 100644
--- a/runtime/vm/assembler_dbc_test.cc
+++ b/runtime/vm/assembler_dbc_test.cc
@@ -14,22 +14,19 @@ namespace dart {
static RawObject* ExecuteTest(const Code& code) {
Thread* thread = Thread::Current();
TransitionToGenerated transition(thread);
- return Simulator::Current()->Call(
- code,
- Array::Handle(ArgumentsDescriptor::New(0)),
- Array::Handle(Array::New(0)),
- thread);
+ return Simulator::Current()->Call(code,
+ Array::Handle(ArgumentsDescriptor::New(0)),
+ Array::Handle(Array::New(0)), thread);
}
#define EXECUTE_TEST_CODE_INTPTR(code) \
- Smi::Value(Smi::RawCast(ExecuteTest(code)))
+ Smi::Value(Smi::RawCast(ExecuteTest(code)))
#define EXECUTE_TEST_CODE_BOOL(code) \
- (Bool::RawCast(ExecuteTest(code)) == Bool::True().raw())
-#define EXECUTE_TEST_CODE_OBJECT(code) \
- Object::Handle(ExecuteTest(code))
+ (Bool::RawCast(ExecuteTest(code)) == Bool::True().raw())
+#define EXECUTE_TEST_CODE_OBJECT(code) Object::Handle(ExecuteTest(code))
#define EXECUTE_TEST_CODE_DOUBLE(code) \
- bit_cast<double, RawObject*>(ExecuteTest(code))
+ bit_cast<double, RawObject*>(ExecuteTest(code))
#define __ assembler->
@@ -55,12 +52,11 @@ static RawFunction* CreateFunction(const char* name) {
const Script& script = Script::Handle();
const Class& owner_class =
Class::Handle(CreateDummyClass(class_name, script));
- const Library& owner_library =
- Library::Handle(CreateDummyLibrary(lib_name));
+ const Library& owner_library = Library::Handle(CreateDummyLibrary(lib_name));
owner_class.set_library(owner_library);
const String& function_name = String::ZoneHandle(Symbols::New(thread, name));
- return Function::New(function_name, RawFunction::kRegularFunction,
- true, false, false, false, false, owner_class,
+ return Function::New(function_name, RawFunction::kRegularFunction, true,
+ false, false, false, false, owner_class,
TokenPosition::kMinSource);
}
@@ -86,11 +82,8 @@ static void MakeDummyInstanceCall(Assembler* assembler, const Object& result) {
const Array& dummy_arguments_descriptor =
Array::Handle(ArgumentsDescriptor::New(2));
const ICData& ic_data = ICData::Handle(ICData::New(
- dummy_instance_function,
- String::Handle(dummy_instance_function.name()),
- dummy_arguments_descriptor,
- Thread::kNoDeoptId,
- 2,
+ dummy_instance_function, String::Handle(dummy_instance_function.name()),
+ dummy_arguments_descriptor, Thread::kNoDeoptId, 2,
/* is_static_call= */ false));
// Wire up the Function in the ICData.
@@ -1736,7 +1729,6 @@ ASSEMBLER_TEST_RUN(TestCidsNoMatch, test) {
}
-
// - CheckSmi rA
//
// If FP[rA] is a Smi, then skip the next instruction.
« no previous file with comments | « runtime/vm/assembler_dbc.cc ('k') | runtime/vm/assembler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698