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

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

Issue 2142333002: Refactor class declaration logic to the parser and runtime Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: minor cleanup per Adam Created 4 years, 5 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 | « no previous file | src/ast/ast.h » ('j') | src/ast/ast.cc » ('J')
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 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 1645
1646 void VisitThisFunction(ThisFunction* expr) override { UNREACHABLE(); } 1646 void VisitThisFunction(ThisFunction* expr) override { UNREACHABLE(); }
1647 1647
1648 void VisitDeclarations(ZoneList<Declaration*>* decls) override { 1648 void VisitDeclarations(ZoneList<Declaration*>* decls) override {
1649 for (int i = 0; i < decls->length(); ++i) { 1649 for (int i = 0; i < decls->length(); ++i) {
1650 Declaration* decl = decls->at(i); 1650 Declaration* decl = decls->at(i);
1651 RECURSE(Visit(decl)); 1651 RECURSE(Visit(decl));
1652 } 1652 }
1653 } 1653 }
1654 1654
1655 void VisitClassLiteral(ClassLiteral* expr) override { UNREACHABLE(); }
1656
1657 void VisitSpread(Spread* expr) override { UNREACHABLE(); } 1655 void VisitSpread(Spread* expr) override { UNREACHABLE(); }
1658 1656
1659 void VisitSuperPropertyReference(SuperPropertyReference* expr) override { 1657 void VisitSuperPropertyReference(SuperPropertyReference* expr) override {
1660 UNREACHABLE(); 1658 UNREACHABLE();
1661 } 1659 }
1662 1660
1663 void VisitSuperCallReference(SuperCallReference* expr) override { 1661 void VisitSuperCallReference(SuperCallReference* expr) override {
1664 UNREACHABLE(); 1662 UNREACHABLE();
1665 } 1663 }
1666 1664
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, typer_); 1790 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, typer_);
1793 impl.Build(); 1791 impl.Build();
1794 *foreign_args = impl.GetForeignArgs(); 1792 *foreign_args = impl.GetForeignArgs();
1795 ZoneBuffer* buffer = new (zone_) ZoneBuffer(zone_); 1793 ZoneBuffer* buffer = new (zone_) ZoneBuffer(zone_);
1796 impl.builder_->WriteTo(*buffer); 1794 impl.builder_->WriteTo(*buffer);
1797 return buffer; 1795 return buffer;
1798 } 1796 }
1799 } // namespace wasm 1797 } // namespace wasm
1800 } // namespace internal 1798 } // namespace internal
1801 } // namespace v8 1799 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/ast/ast.h » ('j') | src/ast/ast.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698