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

Side by Side Diff: src/asmjs/asm-wasm-builder.cc

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « src/api.cc ('k') | src/ast/ast.h » ('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 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/v8.h" 5 #include "src/v8.h"
6 6
7 // Required to get M_E etc. in MSVC. 7 // Required to get M_E etc. in MSVC.
8 #if defined(_WIN32) 8 #if defined(_WIN32)
9 #define _USE_MATH_DEFINES 9 #define _USE_MATH_DEFINES
10 #endif 10 #endif
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 RECURSE(Visit(expr)); 295 RECURSE(Visit(expr));
296 if (scope_ == kFuncScope) current_function_builder_->Emit(kExprDrop); 296 if (scope_ == kFuncScope) current_function_builder_->Emit(kExprDrop);
297 } 297 }
298 298
299 void VisitEmptyStatement(EmptyStatement* stmt) {} 299 void VisitEmptyStatement(EmptyStatement* stmt) {}
300 300
301 void VisitEmptyParentheses(EmptyParentheses* paren) { UNREACHABLE(); } 301 void VisitEmptyParentheses(EmptyParentheses* paren) { UNREACHABLE(); }
302 302
303 void VisitGetIterator(GetIterator* expr) { UNREACHABLE(); } 303 void VisitGetIterator(GetIterator* expr) { UNREACHABLE(); }
304 304
305 void VisitImportCallExpression(ImportCallExpression* expr) { UNREACHABLE(); }
306
305 void VisitIfStatement(IfStatement* stmt) { 307 void VisitIfStatement(IfStatement* stmt) {
306 DCHECK_EQ(kFuncScope, scope_); 308 DCHECK_EQ(kFuncScope, scope_);
307 RECURSE(Visit(stmt->condition())); 309 RECURSE(Visit(stmt->condition()));
308 // Wasm ifs come with implicit blocks for both arms. 310 // Wasm ifs come with implicit blocks for both arms.
309 BlockVisitor block(this, nullptr, kExprIf); 311 BlockVisitor block(this, nullptr, kExprIf);
310 if (stmt->HasThenStatement()) { 312 if (stmt->HasThenStatement()) {
311 RECURSE(Visit(stmt->then_statement())); 313 RECURSE(Visit(stmt->then_statement()));
312 } 314 }
313 if (stmt->HasElseStatement()) { 315 if (stmt->HasElseStatement()) {
314 current_function_builder_->Emit(kExprElse); 316 current_function_builder_->Emit(kExprElse);
(...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 impl.builder_->WriteAsmJsOffsetTable(*asm_offsets_buffer); 2015 impl.builder_->WriteAsmJsOffsetTable(*asm_offsets_buffer);
2014 return {module_buffer, asm_offsets_buffer, success}; 2016 return {module_buffer, asm_offsets_buffer, success};
2015 } 2017 }
2016 2018
2017 const char* AsmWasmBuilder::foreign_init_name = "__foreign_init__"; 2019 const char* AsmWasmBuilder::foreign_init_name = "__foreign_init__";
2018 const char* AsmWasmBuilder::single_function_name = "__single_function__"; 2020 const char* AsmWasmBuilder::single_function_name = "__single_function__";
2019 2021
2020 } // namespace wasm 2022 } // namespace wasm
2021 } // namespace internal 2023 } // namespace internal
2022 } // namespace v8 2024 } // namespace v8
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/ast/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698