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

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

Issue 2457393003: Thread decls-list through Declaration (Closed)
Patch Set: rebase Created 4 years, 1 month 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/asmjs/asm-typer.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 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 return kInt32; 1715 return kInt32;
1716 } 1716 }
1717 1717
1718 #undef CASE 1718 #undef CASE
1719 #undef NON_SIGNED_INT 1719 #undef NON_SIGNED_INT
1720 #undef SIGNED 1720 #undef SIGNED
1721 #undef NON_SIGNED 1721 #undef NON_SIGNED
1722 1722
1723 void VisitThisFunction(ThisFunction* expr) { UNREACHABLE(); } 1723 void VisitThisFunction(ThisFunction* expr) { UNREACHABLE(); }
1724 1724
1725 void VisitDeclarations(ZoneList<Declaration*>* decls) { 1725 void VisitDeclarations(Declaration::List* decls) {
1726 for (int i = 0; i < decls->length(); ++i) { 1726 for (Declaration* decl : *decls) {
1727 Declaration* decl = decls->at(i);
1728 RECURSE(Visit(decl)); 1727 RECURSE(Visit(decl));
1729 } 1728 }
1730 } 1729 }
1731 1730
1732 void VisitClassLiteral(ClassLiteral* expr) { UNREACHABLE(); } 1731 void VisitClassLiteral(ClassLiteral* expr) { UNREACHABLE(); }
1733 1732
1734 void VisitSpread(Spread* expr) { UNREACHABLE(); } 1733 void VisitSpread(Spread* expr) { UNREACHABLE(); }
1735 1734
1736 void VisitSuperPropertyReference(SuperPropertyReference* expr) { 1735 void VisitSuperPropertyReference(SuperPropertyReference* expr) {
1737 UNREACHABLE(); 1736 UNREACHABLE();
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1885 impl.builder_->WriteAsmJsOffsetTable(*asm_offsets_buffer); 1884 impl.builder_->WriteAsmJsOffsetTable(*asm_offsets_buffer);
1886 return {module_buffer, asm_offsets_buffer}; 1885 return {module_buffer, asm_offsets_buffer};
1887 } 1886 }
1888 1887
1889 const char* AsmWasmBuilder::foreign_init_name = "__foreign_init__"; 1888 const char* AsmWasmBuilder::foreign_init_name = "__foreign_init__";
1890 const char* AsmWasmBuilder::single_function_name = "__single_function__"; 1889 const char* AsmWasmBuilder::single_function_name = "__single_function__";
1891 1890
1892 } // namespace wasm 1891 } // namespace wasm
1893 } // namespace internal 1892 } // namespace internal
1894 } // namespace v8 1893 } // namespace v8
OLDNEW
« no previous file with comments | « src/asmjs/asm-typer.cc ('k') | src/ast/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698