| 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/signature.h" | 5 #include "src/signature.h" |
| 6 | 6 |
| 7 #include "src/bit-vector.h" | 7 #include "src/bit-vector.h" |
| 8 #include "src/flags.h" | 8 #include "src/flags.h" |
| 9 #include "src/handles.h" | 9 #include "src/handles.h" |
| 10 #include "src/zone/zone-containers.h" | 10 #include "src/zone/zone-containers.h" |
| (...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1960 std::make_tuple(i.pc_offset(), line_nr, num_whitespaces)); | 1960 std::make_tuple(i.pc_offset(), line_nr, num_whitespaces)); |
| 1961 } | 1961 } |
| 1962 | 1962 |
| 1963 // 64 whitespaces | 1963 // 64 whitespaces |
| 1964 const char* padding = | 1964 const char* padding = |
| 1965 " "; | 1965 " "; |
| 1966 os.write(padding, num_whitespaces); | 1966 os.write(padding, num_whitespaces); |
| 1967 os << "k" << WasmOpcodes::OpcodeName(opcode) << ","; | 1967 os << "k" << WasmOpcodes::OpcodeName(opcode) << ","; |
| 1968 | 1968 |
| 1969 for (size_t j = 1; j < length; ++j) { | 1969 for (size_t j = 1; j < length; ++j) { |
| 1970 os << " " << AsHex(i.pc()[j], 2) << ","; | 1970 os << " 0x" << AsHex(i.pc()[j], 2) << ","; |
| 1971 } | 1971 } |
| 1972 | 1972 |
| 1973 switch (opcode) { | 1973 switch (opcode) { |
| 1974 case kExprElse: | 1974 case kExprElse: |
| 1975 os << " // @" << i.pc_offset(); | 1975 os << " // @" << i.pc_offset(); |
| 1976 control_depth++; | 1976 control_depth++; |
| 1977 break; | 1977 break; |
| 1978 case kExprLoop: | 1978 case kExprLoop: |
| 1979 case kExprIf: | 1979 case kExprIf: |
| 1980 case kExprBlock: | 1980 case kExprBlock: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, | 2035 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, |
| 2036 const byte* start, const byte* end) { | 2036 const byte* start, const byte* end) { |
| 2037 FunctionBody body = {nullptr, nullptr, nullptr, start, end}; | 2037 FunctionBody body = {nullptr, nullptr, nullptr, start, end}; |
| 2038 WasmFullDecoder decoder(zone, nullptr, body); | 2038 WasmFullDecoder decoder(zone, nullptr, body); |
| 2039 return decoder.AnalyzeLoopAssignmentForTesting(start, num_locals); | 2039 return decoder.AnalyzeLoopAssignmentForTesting(start, num_locals); |
| 2040 } | 2040 } |
| 2041 | 2041 |
| 2042 } // namespace wasm | 2042 } // namespace wasm |
| 2043 } // namespace internal | 2043 } // namespace internal |
| 2044 } // namespace v8 | 2044 } // namespace v8 |
| OLD | NEW |