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

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

Issue 2557593004: [ignition] desugar GetIterator() via bytecode rather than via AST (Closed)
Patch Set: georg's comments Created 4 years 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 | « no previous file | 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 } 266 }
267 } 267 }
268 RECURSE(Visit(expr)); 268 RECURSE(Visit(expr));
269 if (scope_ == kFuncScope) current_function_builder_->Emit(kExprDrop); 269 if (scope_ == kFuncScope) current_function_builder_->Emit(kExprDrop);
270 } 270 }
271 271
272 void VisitEmptyStatement(EmptyStatement* stmt) {} 272 void VisitEmptyStatement(EmptyStatement* stmt) {}
273 273
274 void VisitEmptyParentheses(EmptyParentheses* paren) { UNREACHABLE(); } 274 void VisitEmptyParentheses(EmptyParentheses* paren) { UNREACHABLE(); }
275 275
276 void VisitGetIterator(GetIterator* expr) { UNREACHABLE(); }
277
276 void VisitIfStatement(IfStatement* stmt) { 278 void VisitIfStatement(IfStatement* stmt) {
277 DCHECK_EQ(kFuncScope, scope_); 279 DCHECK_EQ(kFuncScope, scope_);
278 RECURSE(Visit(stmt->condition())); 280 RECURSE(Visit(stmt->condition()));
279 current_function_builder_->EmitWithU8(kExprIf, kLocalVoid); 281 current_function_builder_->EmitWithU8(kExprIf, kLocalVoid);
280 // WASM ifs come with implement blocks for both arms. 282 // WASM ifs come with implement blocks for both arms.
281 breakable_blocks_.push_back(std::make_pair(nullptr, false)); 283 breakable_blocks_.push_back(std::make_pair(nullptr, false));
282 if (stmt->HasThenStatement()) { 284 if (stmt->HasThenStatement()) {
283 RECURSE(Visit(stmt->then_statement())); 285 RECURSE(Visit(stmt->then_statement()));
284 } 286 }
285 if (stmt->HasElseStatement()) { 287 if (stmt->HasElseStatement()) {
(...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 impl.builder_->WriteAsmJsOffsetTable(*asm_offsets_buffer); 1963 impl.builder_->WriteAsmJsOffsetTable(*asm_offsets_buffer);
1962 return {module_buffer, asm_offsets_buffer, success}; 1964 return {module_buffer, asm_offsets_buffer, success};
1963 } 1965 }
1964 1966
1965 const char* AsmWasmBuilder::foreign_init_name = "__foreign_init__"; 1967 const char* AsmWasmBuilder::foreign_init_name = "__foreign_init__";
1966 const char* AsmWasmBuilder::single_function_name = "__single_function__"; 1968 const char* AsmWasmBuilder::single_function_name = "__single_function__";
1967 1969
1968 } // namespace wasm 1970 } // namespace wasm
1969 } // namespace internal 1971 } // namespace internal
1970 } // namespace v8 1972 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/ast/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698