Index: test/cctest/test-assembler-arm.cc |
diff --git a/test/cctest/test-assembler-arm.cc b/test/cctest/test-assembler-arm.cc |
index e4e7dfcdf63c26174bc7d4a9be92202811280de5..089f0b8a069067580998c99c733189ea8cebf04f 100644 |
--- a/test/cctest/test-assembler-arm.cc |
+++ b/test/cctest/test-assembler-arm.cc |
@@ -60,7 +60,8 @@ TEST(0) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F2 f = FUNCTION_CAST<F2>(code->entry()); |
int res = reinterpret_cast<int>(CALL_GENERATED_CODE(f, 3, 4, 0, 0, 0)); |
@@ -95,7 +96,8 @@ TEST(1) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F1 f = FUNCTION_CAST<F1>(code->entry()); |
int res = reinterpret_cast<int>(CALL_GENERATED_CODE(f, 100, 0, 0, 0, 0)); |
@@ -139,7 +141,8 @@ TEST(2) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F1 f = FUNCTION_CAST<F1>(code->entry()); |
int res = reinterpret_cast<int>(CALL_GENERATED_CODE(f, 10, 0, 0, 0, 0)); |
@@ -185,7 +188,8 @@ TEST(3) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F3 f = FUNCTION_CAST<F3>(code->entry()); |
t.i = 100000; |
@@ -308,7 +312,8 @@ TEST(4) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F3 f = FUNCTION_CAST<F3>(code->entry()); |
t.a = 1.5; |
@@ -368,7 +373,8 @@ TEST(5) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F1 f = FUNCTION_CAST<F1>(code->entry()); |
int res = reinterpret_cast<int>( |
@@ -401,7 +407,8 @@ TEST(6) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F1 f = FUNCTION_CAST<F1>(code->entry()); |
int res = reinterpret_cast<int>( |
@@ -474,7 +481,8 @@ static void TestRoundingMode(VCVTTypes types, |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F1 f = FUNCTION_CAST<F1>(code->entry()); |
int res = reinterpret_cast<int>( |
@@ -657,7 +665,8 @@ TEST(8) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F4 fn = FUNCTION_CAST<F4>(code->entry()); |
d.a = 1.1; |
@@ -766,7 +775,8 @@ TEST(9) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F4 fn = FUNCTION_CAST<F4>(code->entry()); |
d.a = 1.1; |
@@ -871,7 +881,8 @@ TEST(10) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F4 fn = FUNCTION_CAST<F4>(code->entry()); |
d.a = 1.1; |
@@ -965,7 +976,8 @@ TEST(11) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F3 f = FUNCTION_CAST<F3>(code->entry()); |
Object* dummy = CALL_GENERATED_CODE(f, &i, 0, 0, 0, 0); |
@@ -1092,7 +1104,8 @@ TEST(13) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F3 f = FUNCTION_CAST<F3>(code->entry()); |
t.a = 1.5; |
@@ -1164,7 +1177,8 @@ TEST(14) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F3 f = FUNCTION_CAST<F3>(code->entry()); |
t.left = BitCast<double>(kHoleNanInt64); |
@@ -1267,7 +1281,8 @@ TEST(15) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F3 f = FUNCTION_CAST<F3>(code->entry()); |
t.src0 = 0x01020304; |
@@ -1369,7 +1384,8 @@ TEST(16) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F3 f = FUNCTION_CAST<F3>(code->entry()); |
t.src0 = 0x01020304; |
@@ -1451,7 +1467,8 @@ TEST(18) { |
Handle<Code> code = isolate->factory()->NewCode( |
desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); |
#ifdef DEBUG |
- code->Print(); |
+ OFStream os(stdout); |
+ code->Print(os); |
#endif |
F3 f = FUNCTION_CAST<F3>(code->entry()); |
Object* dummy; |