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

Side by Side Diff: test/cctest/wasm/wasm-run-utils.h

Issue 1655883002: [wasm] Initial commit for the Int64Reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Initialize replacement array Created 4 years, 10 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
« no previous file with comments | « test/cctest/wasm/test-run-wasm.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #ifndef WASM_RUN_UTILS_H 5 #ifndef WASM_RUN_UTILS_H
6 #define WASM_RUN_UTILS_H 6 #define WASM_RUN_UTILS_H
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <string.h> 10 #include <string.h>
11 11
12 #include "src/base/utils/random-number-generator.h" 12 #include "src/base/utils/random-number-generator.h"
13 13
14 #include "src/compiler/graph-visualizer.h" 14 #include "src/compiler/graph-visualizer.h"
15 #include "src/compiler/int64-lowering.h"
15 #include "src/compiler/js-graph.h" 16 #include "src/compiler/js-graph.h"
16 #include "src/compiler/wasm-compiler.h" 17 #include "src/compiler/wasm-compiler.h"
17 18
18 #include "src/wasm/ast-decoder.h" 19 #include "src/wasm/ast-decoder.h"
19 #include "src/wasm/wasm-js.h" 20 #include "src/wasm/wasm-js.h"
20 #include "src/wasm/wasm-module.h" 21 #include "src/wasm/wasm-module.h"
21 #include "src/wasm/wasm-opcodes.h" 22 #include "src/wasm/wasm-opcodes.h"
22 23
23 #include "test/cctest/cctest.h" 24 #include "test/cctest/cctest.h"
24 #include "test/cctest/compiler/codegen-tester.h" 25 #include "test/cctest/compiler/codegen-tester.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 TreeResult result = BuildTFGraph(&builder, env, start, end); 230 TreeResult result = BuildTFGraph(&builder, env, start, end);
230 if (result.failed()) { 231 if (result.failed()) {
231 ptrdiff_t pc = result.error_pc - result.start; 232 ptrdiff_t pc = result.error_pc - result.start;
232 ptrdiff_t pt = result.error_pt - result.start; 233 ptrdiff_t pt = result.error_pt - result.start;
233 std::ostringstream str; 234 std::ostringstream str;
234 str << "Verification failed: " << result.error_code << " pc = +" << pc; 235 str << "Verification failed: " << result.error_code << " pc = +" << pc;
235 if (result.error_pt) str << ", pt = +" << pt; 236 if (result.error_pt) str << ", pt = +" << pt;
236 str << ", msg = " << result.error_msg.get(); 237 str << ", msg = " << result.error_msg.get();
237 FATAL(str.str().c_str()); 238 FATAL(str.str().c_str());
238 } 239 }
240 builder.Int64LoweringForTesting();
239 if (FLAG_trace_turbo_graph) { 241 if (FLAG_trace_turbo_graph) {
240 OFStream os(stdout); 242 OFStream os(stdout);
241 os << AsRPO(*jsgraph->graph()); 243 os << AsRPO(*jsgraph->graph());
242 } 244 }
243 } 245 }
244 246
245 247
246 // A helper for compiling functions that are only internally callable WASM code. 248 // A helper for compiling functions that are only internally callable WASM code.
247 class WasmFunctionCompiler : public HandleAndZoneScope, 249 class WasmFunctionCompiler : public HandleAndZoneScope,
248 private GraphAndBuilders { 250 private GraphAndBuilders {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 if (p1 == MachineType::None()) return 1; 409 if (p1 == MachineType::None()) return 1;
408 if (p2 == MachineType::None()) return 2; 410 if (p2 == MachineType::None()) return 2;
409 if (p3 == MachineType::None()) return 3; 411 if (p3 == MachineType::None()) return 3;
410 return 4; 412 return 4;
411 } 413 }
412 }; 414 };
413 415
414 } // namespace 416 } // namespace
415 417
416 #endif 418 #endif
OLDNEW
« no previous file with comments | « test/cctest/wasm/test-run-wasm.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698