| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 "src/compiler/wasm-compiler.h" | 5 #include "src/compiler/wasm-compiler.h" |
| 6 | 6 |
| 7 #include "src/isolate-inl.h" | 7 #include "src/isolate-inl.h" |
| 8 | 8 |
| 9 #include "src/base/platform/elapsed-timer.h" | 9 #include "src/base/platform/elapsed-timer.h" |
| 10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
| (...skipping 3146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3157 return nullptr; | 3157 return nullptr; |
| 3158 } | 3158 } |
| 3159 | 3159 |
| 3160 if (machine->Is32()) { | 3160 if (machine->Is32()) { |
| 3161 Int64Lowering r(graph, machine, common, jsgraph_->zone(), function_->sig); | 3161 Int64Lowering r(graph, machine, common, jsgraph_->zone(), function_->sig); |
| 3162 r.LowerGraph(); | 3162 r.LowerGraph(); |
| 3163 } | 3163 } |
| 3164 | 3164 |
| 3165 int index = static_cast<int>(function_->func_index); | 3165 int index = static_cast<int>(function_->func_index); |
| 3166 if (index >= FLAG_trace_wasm_ast_start && index < FLAG_trace_wasm_ast_end) { | 3166 if (index >= FLAG_trace_wasm_ast_start && index < FLAG_trace_wasm_ast_end) { |
| 3167 PrintAst(isolate_->allocator(), body); | 3167 OFStream os(stdout); |
| 3168 PrintAst(isolate_->allocator(), body, os); |
| 3168 } | 3169 } |
| 3169 if (FLAG_trace_wasm_decode_time) { | 3170 if (FLAG_trace_wasm_decode_time) { |
| 3170 *decode_ms = decode_timer.Elapsed().InMillisecondsF(); | 3171 *decode_ms = decode_timer.Elapsed().InMillisecondsF(); |
| 3171 } | 3172 } |
| 3172 return source_position_table; | 3173 return source_position_table; |
| 3173 } | 3174 } |
| 3174 | 3175 |
| 3175 WasmCompilationUnit::WasmCompilationUnit(wasm::ErrorThrower* thrower, | 3176 WasmCompilationUnit::WasmCompilationUnit(wasm::ErrorThrower* thrower, |
| 3176 Isolate* isolate, | 3177 Isolate* isolate, |
| 3177 wasm::ModuleEnv* module_env, | 3178 wasm::ModuleEnv* module_env, |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3297 function_->code_start_offset), | 3298 function_->code_start_offset), |
| 3298 compile_ms); | 3299 compile_ms); |
| 3299 } | 3300 } |
| 3300 | 3301 |
| 3301 return code; | 3302 return code; |
| 3302 } | 3303 } |
| 3303 | 3304 |
| 3304 } // namespace compiler | 3305 } // namespace compiler |
| 3305 } // namespace internal | 3306 } // namespace internal |
| 3306 } // namespace v8 | 3307 } // namespace v8 |
| OLD | NEW |