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

Side by Side Diff: test/cctest/compiler/test-multiple-return.cc

Issue 2281863002: [compiler] Remove default argument for code flags. (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <cmath> 5 #include <cmath>
6 #include <functional> 6 #include <functional>
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 InstructionSelector::SupportedMachineOperatorFlags()); 74 InstructionSelector::SupportedMachineOperatorFlags());
75 75
76 Node* p0 = m.Parameter(0); 76 Node* p0 = m.Parameter(0);
77 Node* p1 = m.Parameter(1); 77 Node* p1 = m.Parameter(1);
78 Node* add = m.Int32Add(p0, p1); 78 Node* add = m.Int32Add(p0, p1);
79 Node* sub = m.Int32Sub(p0, p1); 79 Node* sub = m.Int32Sub(p0, p1);
80 Node* mul = m.Int32Mul(p0, p1); 80 Node* mul = m.Int32Mul(p0, p1);
81 m.Return(add, sub, mul); 81 m.Return(add, sub, mul);
82 82
83 CompilationInfo info(ArrayVector("testing"), handles.main_isolate(), 83 CompilationInfo info(ArrayVector("testing"), handles.main_isolate(),
84 handles.main_zone()); 84 handles.main_zone(), Code::ComputeFlags(Code::STUB));
85 Handle<Code> code = 85 Handle<Code> code =
86 Pipeline::GenerateCodeForTesting(&info, desc, m.graph(), m.Export()); 86 Pipeline::GenerateCodeForTesting(&info, desc, m.graph(), m.Export());
87 #ifdef ENABLE_DISASSEMBLER 87 #ifdef ENABLE_DISASSEMBLER
88 if (FLAG_print_code) { 88 if (FLAG_print_code) {
89 OFStream os(stdout); 89 OFStream os(stdout);
90 code->Disassemble("three_value", os); 90 code->Disassemble("three_value", os);
91 } 91 }
92 #endif 92 #endif
93 93
94 RawMachineAssemblerTester<int32_t> mt; 94 RawMachineAssemblerTester<int32_t> mt;
(...skipping 11 matching lines...) Expand all
106 OFStream os(stdout); 106 OFStream os(stdout);
107 code2->Disassemble("three_value_call", os); 107 code2->Disassemble("three_value_call", os);
108 } 108 }
109 #endif 109 #endif
110 CHECK_EQ((123 + 456) + (123 - 456) + (123 * 456), mt.Call()); 110 CHECK_EQ((123 + 456) + (123 - 456) + (123 * 456), mt.Call());
111 } 111 }
112 112
113 } // namespace compiler 113 } // namespace compiler
114 } // namespace internal 114 } // namespace internal
115 } // namespace v8 115 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/graph-builder-tester.h ('k') | test/cctest/compiler/test-run-native-calls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698