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

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

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

Powered by Google App Engine
This is Rietveld 408576698