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

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

Issue 2428443002: [wasm] Trim graph before scheduling. (Closed)
Patch Set: Use proper temp registers if Projection(1) does not exist. Created 4 years, 2 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-64.cc ('k') | no next file » | 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>
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 ptrdiff_t pc = result.error_pc - result.start; 295 ptrdiff_t pc = result.error_pc - result.start;
296 ptrdiff_t pt = result.error_pt - result.start; 296 ptrdiff_t pt = result.error_pt - result.start;
297 std::ostringstream str; 297 std::ostringstream str;
298 str << "Verification failed: " << result.error_code << " pc = +" << pc; 298 str << "Verification failed: " << result.error_code << " pc = +" << pc;
299 if (result.error_pt) str << ", pt = +" << pt; 299 if (result.error_pt) str << ", pt = +" << pt;
300 str << ", msg = " << result.error_msg.get(); 300 str << ", msg = " << result.error_msg.get();
301 FATAL(str.str().c_str()); 301 FATAL(str.str().c_str());
302 } 302 }
303 builder.Int64LoweringForTesting(); 303 builder.Int64LoweringForTesting();
304 if (FLAG_trace_turbo_graph) {
305 OFStream os(stdout);
306 os << AsRPO(*jsgraph->graph());
307 }
308 } 304 }
309 305
310 template <typename ReturnType> 306 template <typename ReturnType>
311 class WasmFunctionWrapper : public HandleAndZoneScope, 307 class WasmFunctionWrapper : public HandleAndZoneScope,
312 private GraphAndBuilders { 308 private GraphAndBuilders {
313 public: 309 public:
314 WasmFunctionWrapper() 310 WasmFunctionWrapper()
315 : GraphAndBuilders(main_zone()), 311 : GraphAndBuilders(main_zone()),
316 inner_code_node_(nullptr), 312 inner_code_node_(nullptr),
317 signature_(nullptr) { 313 signature_(nullptr) {
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 // interpreter. 780 // interpreter.
785 #define WASM_EXEC_TEST(name) \ 781 #define WASM_EXEC_TEST(name) \
786 void RunWasm_##name(WasmExecutionMode execution_mode); \ 782 void RunWasm_##name(WasmExecutionMode execution_mode); \
787 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \ 783 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \
788 TEST(RunWasmInterpreted_##name) { RunWasm_##name(kExecuteInterpreted); } \ 784 TEST(RunWasmInterpreted_##name) { RunWasm_##name(kExecuteInterpreted); } \
789 void RunWasm_##name(WasmExecutionMode execution_mode) 785 void RunWasm_##name(WasmExecutionMode execution_mode)
790 786
791 } // namespace 787 } // namespace
792 788
793 #endif 789 #endif
OLDNEW
« no previous file with comments | « test/cctest/wasm/test-run-wasm-64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698