OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/wasm/wasm-debug.h" | |
6 | |
7 #include "src/assert-scope.h" | 5 #include "src/assert-scope.h" |
8 #include "src/debug/debug.h" | 6 #include "src/debug/debug.h" |
9 #include "src/factory.h" | 7 #include "src/factory.h" |
10 #include "src/isolate.h" | 8 #include "src/isolate.h" |
11 #include "src/wasm/module-decoder.h" | 9 #include "src/wasm/module-decoder.h" |
12 #include "src/wasm/wasm-module.h" | 10 #include "src/wasm/wasm-module.h" |
| 11 #include "src/wasm/wasm-objects.h" |
13 | 12 |
14 using namespace v8::internal; | 13 using namespace v8::internal; |
15 using namespace v8::internal::wasm; | 14 using namespace v8::internal::wasm; |
16 | 15 |
17 namespace { | 16 namespace { |
18 | 17 |
19 enum { | 18 enum { |
20 kWasmDebugInfoWasmObj, | 19 kWasmDebugInfoWasmObj, |
21 kWasmDebugInfoWasmBytesHash, | 20 kWasmDebugInfoWasmBytesHash, |
22 kWasmDebugInfoFunctionByteOffsets, | 21 kWasmDebugInfoFunctionByteOffsets, |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 left = mid; | 306 left = mid; |
308 } else { | 307 } else { |
309 right = mid; | 308 right = mid; |
310 } | 309 } |
311 } | 310 } |
312 // There should be an entry for each position that could show up on the stack | 311 // There should be an entry for each position that could show up on the stack |
313 // trace: | 312 // trace: |
314 DCHECK_EQ(byte_offset, offset_table->get_int(2 * left)); | 313 DCHECK_EQ(byte_offset, offset_table->get_int(2 * left)); |
315 return offset_table->get_int(2 * left + 1); | 314 return offset_table->get_int(2 * left + 1); |
316 } | 315 } |
OLD | NEW |