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

Unified Diff: runtime/vm/find_code_object_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/exceptions_test.cc ('k') | runtime/vm/flag_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/find_code_object_test.cc
diff --git a/runtime/vm/find_code_object_test.cc b/runtime/vm/find_code_object_test.cc
index 75ffa2b0598067a96921ffed772d70d4c075cd87..a47129e8a055085dc1da4c7b8758155347241919 100644
--- a/runtime/vm/find_code_object_test.cc
+++ b/runtime/vm/find_code_object_test.cc
@@ -48,13 +48,10 @@ VM_TEST_CASE(FindCodeObject) {
// Load up class A with 1024 functions.
int written = OS::SNPrint(scriptChars, kScriptSize, "class A {");
for (int i = 0; i < kNumFunctions; i++) {
- OS::SNPrint(buffer,
- 256,
+ OS::SNPrint(buffer, 256,
"static foo%d([int i=1,int j=2,int k=3]){return i+j+k;}", i);
- written += OS::SNPrint((scriptChars + written),
- (kScriptSize - written),
- "%s",
- buffer);
+ written += OS::SNPrint((scriptChars + written), (kScriptSize - written),
+ "%s", buffer);
}
OS::SNPrint((scriptChars + written), (kScriptSize - written), "}");
source = String::New(scriptChars);
@@ -78,32 +75,23 @@ VM_TEST_CASE(FindCodeObject) {
written = OS::SNPrint(scriptChars, kScriptSize, "class B {");
// Create one large function.
OS::SNPrint(buffer, sizeof(buffer), "static moo0([var i=1]) { ");
- written += OS::SNPrint((scriptChars + written),
- (kScriptSize - written),
- "%s",
+ written += OS::SNPrint((scriptChars + written), (kScriptSize - written), "%s",
buffer);
// Generate a large function so that the code for this function when
// compiled will reside in a large page.
for (int i = 0; i < kLoopCount; i++) {
OS::SNPrint(buffer, sizeof(buffer), "i = i+i;");
- written += OS::SNPrint((scriptChars + written),
- (kScriptSize - written),
- "%s",
- buffer);
+ written += OS::SNPrint((scriptChars + written), (kScriptSize - written),
+ "%s", buffer);
}
OS::SNPrint(buffer, sizeof(buffer), "return i; }");
- written += OS::SNPrint((scriptChars + written),
- (kScriptSize - written),
- "%s",
+ written += OS::SNPrint((scriptChars + written), (kScriptSize - written), "%s",
buffer);
for (int i = 1; i < kNumFunctions; i++) {
- OS::SNPrint(buffer,
- 256,
+ OS::SNPrint(buffer, 256,
"static moo%d([int i=1,int j=2,int k=3]){return i+j+k;}", i);
- written += OS::SNPrint((scriptChars + written),
- (kScriptSize - written),
- "%s",
- buffer);
+ written += OS::SNPrint((scriptChars + written), (kScriptSize - written),
+ "%s", buffer);
}
OS::SNPrint((scriptChars + written), (kScriptSize - written), "}");
url = String::New("dart-test:FindCodeObject");
« no previous file with comments | « runtime/vm/exceptions_test.cc ('k') | runtime/vm/flag_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698