| 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/base/platform/elapsed-timer.h" | 5 #include "src/base/platform/elapsed-timer.h" |
| 6 #include "src/signature.h" | 6 #include "src/signature.h" |
| 7 | 7 |
| 8 #include "src/bit-vector.h" | 8 #include "src/bit-vector.h" |
| 9 #include "src/flags.h" | 9 #include "src/flags.h" |
| 10 #include "src/handles.h" | 10 #include "src/handles.h" |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 } | 286 } |
| 287 | 287 |
| 288 #define DECLARE_OPCODE_CASE(name, opcode, sig) \ | 288 #define DECLARE_OPCODE_CASE(name, opcode, sig) \ |
| 289 case kExpr##name: \ | 289 case kExpr##name: \ |
| 290 return kArity_##sig; | 290 return kArity_##sig; |
| 291 | 291 |
| 292 FOREACH_LOAD_MEM_OPCODE(DECLARE_OPCODE_CASE) | 292 FOREACH_LOAD_MEM_OPCODE(DECLARE_OPCODE_CASE) |
| 293 FOREACH_STORE_MEM_OPCODE(DECLARE_OPCODE_CASE) | 293 FOREACH_STORE_MEM_OPCODE(DECLARE_OPCODE_CASE) |
| 294 FOREACH_MISC_MEM_OPCODE(DECLARE_OPCODE_CASE) | 294 FOREACH_MISC_MEM_OPCODE(DECLARE_OPCODE_CASE) |
| 295 FOREACH_SIMPLE_OPCODE(DECLARE_OPCODE_CASE) | 295 FOREACH_SIMPLE_OPCODE(DECLARE_OPCODE_CASE) |
| 296 FOREACH_ASMJS_COMPAT_OPCODE(DECLARE_OPCODE_CASE) |
| 296 #undef DECLARE_OPCODE_CASE | 297 #undef DECLARE_OPCODE_CASE |
| 297 } | 298 } |
| 298 UNREACHABLE(); | 299 UNREACHABLE(); |
| 299 return 0; | 300 return 0; |
| 300 } | 301 } |
| 301 | 302 |
| 302 int OpcodeLength(const byte* pc) { | 303 int OpcodeLength(const byte* pc) { |
| 303 switch (static_cast<WasmOpcode>(*pc)) { | 304 switch (static_cast<WasmOpcode>(*pc)) { |
| 304 #define DECLARE_OPCODE_CASE(name, opcode, sig) case kExpr##name: | 305 #define DECLARE_OPCODE_CASE(name, opcode, sig) case kExpr##name: |
| 305 FOREACH_LOAD_MEM_OPCODE(DECLARE_OPCODE_CASE) | 306 FOREACH_LOAD_MEM_OPCODE(DECLARE_OPCODE_CASE) |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1705 | 1706 |
| 1706 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, FunctionEnv* env, | 1707 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, FunctionEnv* env, |
| 1707 const byte* start, const byte* end) { | 1708 const byte* start, const byte* end) { |
| 1708 LoopAssignmentAnalyzer analyzer(zone, env); | 1709 LoopAssignmentAnalyzer analyzer(zone, env); |
| 1709 return analyzer.Analyze(start, end); | 1710 return analyzer.Analyze(start, end); |
| 1710 } | 1711 } |
| 1711 | 1712 |
| 1712 } // namespace wasm | 1713 } // namespace wasm |
| 1713 } // namespace internal | 1714 } // namespace internal |
| 1714 } // namespace v8 | 1715 } // namespace v8 |
| OLD | NEW |