| OLD | NEW |
| 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 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 void VisitSuperCallReference(SuperCallReference* expr) { UNREACHABLE(); } | 1164 void VisitSuperCallReference(SuperCallReference* expr) { UNREACHABLE(); } |
| 1165 | 1165 |
| 1166 void VisitSloppyBlockFunctionStatement(SloppyBlockFunctionStatement* expr) { | 1166 void VisitSloppyBlockFunctionStatement(SloppyBlockFunctionStatement* expr) { |
| 1167 UNREACHABLE(); | 1167 UNREACHABLE(); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 void VisitDoExpression(DoExpression* expr) { UNREACHABLE(); } | 1170 void VisitDoExpression(DoExpression* expr) { UNREACHABLE(); } |
| 1171 | 1171 |
| 1172 void VisitRewritableAssignmentExpression( | 1172 void VisitRewritableExpression(RewritableExpression* expr) { UNREACHABLE(); } |
| 1173 RewritableAssignmentExpression* expr) { | |
| 1174 UNREACHABLE(); | |
| 1175 } | |
| 1176 | 1173 |
| 1177 struct IndexContainer : public ZoneObject { | 1174 struct IndexContainer : public ZoneObject { |
| 1178 uint16_t index; | 1175 uint16_t index; |
| 1179 }; | 1176 }; |
| 1180 | 1177 |
| 1181 uint16_t LookupOrInsertLocal(Variable* v, LocalType type) { | 1178 uint16_t LookupOrInsertLocal(Variable* v, LocalType type) { |
| 1182 DCHECK_NOT_NULL(current_function_builder_); | 1179 DCHECK_NOT_NULL(current_function_builder_); |
| 1183 ZoneHashMap::Entry* entry = | 1180 ZoneHashMap::Entry* entry = |
| 1184 local_variables_.Lookup(v, ComputePointerHash(v)); | 1181 local_variables_.Lookup(v, ComputePointerHash(v)); |
| 1185 if (entry == nullptr) { | 1182 if (entry == nullptr) { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 // that zone in constructor may be thrown away once wasm module is written. | 1277 // that zone in constructor may be thrown away once wasm module is written. |
| 1281 WasmModuleIndex* AsmWasmBuilder::Run() { | 1278 WasmModuleIndex* AsmWasmBuilder::Run() { |
| 1282 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, foreign_); | 1279 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, foreign_); |
| 1283 impl.Compile(); | 1280 impl.Compile(); |
| 1284 WasmModuleWriter* writer = impl.builder_->Build(zone_); | 1281 WasmModuleWriter* writer = impl.builder_->Build(zone_); |
| 1285 return writer->WriteTo(zone_); | 1282 return writer->WriteTo(zone_); |
| 1286 } | 1283 } |
| 1287 } // namespace wasm | 1284 } // namespace wasm |
| 1288 } // namespace internal | 1285 } // namespace internal |
| 1289 } // namespace v8 | 1286 } // namespace v8 |
| OLD | NEW |