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

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

Issue 1712203002: Revert of Non-pattern rewriting revisited (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/typing-asm.cc ('k') | no next file » | 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 #include "src/wasm/asm-wasm-builder.h" 7 #include "src/wasm/asm-wasm-builder.h"
8 #include "src/wasm/wasm-macro-gen.h" 8 #include "src/wasm/wasm-macro-gen.h"
9 #include "src/wasm/wasm-opcodes.h" 9 #include "src/wasm/wasm-opcodes.h"
10 10
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 } 1170 }
1171 1171
1172 void VisitSuperCallReference(SuperCallReference* expr) { UNREACHABLE(); } 1172 void VisitSuperCallReference(SuperCallReference* expr) { UNREACHABLE(); }
1173 1173
1174 void VisitSloppyBlockFunctionStatement(SloppyBlockFunctionStatement* expr) { 1174 void VisitSloppyBlockFunctionStatement(SloppyBlockFunctionStatement* expr) {
1175 UNREACHABLE(); 1175 UNREACHABLE();
1176 } 1176 }
1177 1177
1178 void VisitDoExpression(DoExpression* expr) { UNREACHABLE(); } 1178 void VisitDoExpression(DoExpression* expr) { UNREACHABLE(); }
1179 1179
1180 void VisitRewritableExpression(RewritableExpression* expr) { UNREACHABLE(); } 1180 void VisitRewritableAssignmentExpression(
1181 RewritableAssignmentExpression* expr) {
1182 UNREACHABLE();
1183 }
1181 1184
1182 struct IndexContainer : public ZoneObject { 1185 struct IndexContainer : public ZoneObject {
1183 uint16_t index; 1186 uint16_t index;
1184 }; 1187 };
1185 1188
1186 uint16_t LookupOrInsertLocal(Variable* v, LocalType type) { 1189 uint16_t LookupOrInsertLocal(Variable* v, LocalType type) {
1187 DCHECK_NOT_NULL(current_function_builder_); 1190 DCHECK_NOT_NULL(current_function_builder_);
1188 ZoneHashMap::Entry* entry = 1191 ZoneHashMap::Entry* entry =
1189 local_variables_.Lookup(v, ComputePointerHash(v)); 1192 local_variables_.Lookup(v, ComputePointerHash(v));
1190 if (entry == nullptr) { 1193 if (entry == nullptr) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 // that zone in constructor may be thrown away once wasm module is written. 1288 // that zone in constructor may be thrown away once wasm module is written.
1286 WasmModuleIndex* AsmWasmBuilder::Run() { 1289 WasmModuleIndex* AsmWasmBuilder::Run() {
1287 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, foreign_); 1290 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, foreign_);
1288 impl.Compile(); 1291 impl.Compile();
1289 WasmModuleWriter* writer = impl.builder_->Build(zone_); 1292 WasmModuleWriter* writer = impl.builder_->Build(zone_);
1290 return writer->WriteTo(zone_); 1293 return writer->WriteTo(zone_);
1291 } 1294 }
1292 } // namespace wasm 1295 } // namespace wasm
1293 } // namespace internal 1296 } // namespace internal
1294 } // namespace v8 1297 } // namespace v8
OLDNEW
« no previous file with comments | « src/typing-asm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698