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/wasm/wasm-objects.h" | 5 #include "src/wasm/wasm-objects.h" |
6 #include "src/utils.h" | 6 #include "src/utils.h" |
7 | 7 |
8 #include "src/assembler-inl.h" | 8 #include "src/assembler-inl.h" |
9 #include "src/base/iterator.h" | 9 #include "src/base/iterator.h" |
10 #include "src/compiler/wasm-compiler.h" | 10 #include "src/compiler/wasm-compiler.h" |
11 #include "src/debug/debug-interface.h" | 11 #include "src/debug/debug-interface.h" |
12 #include "src/objects-inl.h" | 12 #include "src/objects-inl.h" |
| 13 #include "src/objects/debug-objects-inl.h" |
13 #include "src/wasm/module-decoder.h" | 14 #include "src/wasm/module-decoder.h" |
14 #include "src/wasm/wasm-code-specialization.h" | 15 #include "src/wasm/wasm-code-specialization.h" |
15 #include "src/wasm/wasm-module.h" | 16 #include "src/wasm/wasm-module.h" |
16 #include "src/wasm/wasm-text.h" | 17 #include "src/wasm/wasm-text.h" |
17 | 18 |
18 #define TRACE(...) \ | 19 #define TRACE(...) \ |
19 do { \ | 20 do { \ |
20 if (FLAG_trace_wasm_instances) PrintF(__VA_ARGS__); \ | 21 if (FLAG_trace_wasm_instances) PrintF(__VA_ARGS__); \ |
21 } while (false) | 22 } while (false) |
22 | 23 |
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 if (!array->get(kWrapperInstanceObject)->IsWeakCell()) return false; | 1579 if (!array->get(kWrapperInstanceObject)->IsWeakCell()) return false; |
1579 Isolate* isolate = array->GetIsolate(); | 1580 Isolate* isolate = array->GetIsolate(); |
1580 if (!array->get(kNextInstanceWrapper)->IsUndefined(isolate) && | 1581 if (!array->get(kNextInstanceWrapper)->IsUndefined(isolate) && |
1581 !array->get(kNextInstanceWrapper)->IsFixedArray()) | 1582 !array->get(kNextInstanceWrapper)->IsFixedArray()) |
1582 return false; | 1583 return false; |
1583 if (!array->get(kPreviousInstanceWrapper)->IsUndefined(isolate) && | 1584 if (!array->get(kPreviousInstanceWrapper)->IsUndefined(isolate) && |
1584 !array->get(kPreviousInstanceWrapper)->IsFixedArray()) | 1585 !array->get(kPreviousInstanceWrapper)->IsFixedArray()) |
1585 return false; | 1586 return false; |
1586 return true; | 1587 return true; |
1587 } | 1588 } |
OLD | NEW |