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

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

Issue 1911313002: Pass debug name as Vector instead of const char* (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-1
Patch Set: rebase Created 4 years, 8 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 desc, MachineType::PointerRepresentation(), 78 desc, MachineType::PointerRepresentation(),
79 InstructionSelector::SupportedMachineOperatorFlags()); 79 InstructionSelector::SupportedMachineOperatorFlags());
80 80
81 Node* p0 = m.Parameter(0); 81 Node* p0 = m.Parameter(0);
82 Node* p1 = m.Parameter(1); 82 Node* p1 = m.Parameter(1);
83 Node* add = m.Int32Add(p0, p1); 83 Node* add = m.Int32Add(p0, p1);
84 Node* sub = m.Int32Sub(p0, p1); 84 Node* sub = m.Int32Sub(p0, p1);
85 Node* mul = m.Int32Mul(p0, p1); 85 Node* mul = m.Int32Mul(p0, p1);
86 m.Return(add, sub, mul); 86 m.Return(add, sub, mul);
87 87
88 CompilationInfo info("testing", handles.main_isolate(), handles.main_zone()); 88 CompilationInfo info(ArrayVector("testing"), handles.main_isolate(),
89 handles.main_zone());
89 Handle<Code> code = 90 Handle<Code> code =
90 Pipeline::GenerateCodeForTesting(&info, desc, m.graph(), m.Export()); 91 Pipeline::GenerateCodeForTesting(&info, desc, m.graph(), m.Export());
91 #ifdef ENABLE_DISASSEMBLER 92 #ifdef ENABLE_DISASSEMBLER
92 if (FLAG_print_code) { 93 if (FLAG_print_code) {
93 OFStream os(stdout); 94 OFStream os(stdout);
94 code->Disassemble("three_value", os); 95 code->Disassemble("three_value", os);
95 } 96 }
96 #endif 97 #endif
97 98
98 RawMachineAssemblerTester<int32_t> mt; 99 RawMachineAssemblerTester<int32_t> mt;
(...skipping 11 matching lines...) Expand all
110 OFStream os(stdout); 111 OFStream os(stdout);
111 code2->Disassemble("three_value_call", os); 112 code2->Disassemble("three_value_call", os);
112 } 113 }
113 #endif 114 #endif
114 CHECK_EQ((123 + 456) + (123 - 456) + (123 * 456), mt.Call()); 115 CHECK_EQ((123 + 456) + (123 - 456) + (123 * 456), mt.Call());
115 } 116 }
116 117
117 } // namespace compiler 118 } // namespace compiler
118 } // namespace internal 119 } // namespace internal
119 } // namespace v8 120 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698