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

Side by Side Diff: src/wasm/wasm-debug.cc

Issue 2490663002: [wasm] Move all heap-allocated WASM structures into wasm-objects.h. (Closed)
Patch Set: [wasm] Move all heap-allocated WASM structures into wasm-objects.h. Created 4 years, 1 month 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/wasm/wasm-debug.h ('k') | src/wasm/wasm-js.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/wasm/wasm-debug.h ('k') | src/wasm/wasm-js.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698