| 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" |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 compiled_module->set_shared(shared); | 940 compiled_module->set_shared(shared); |
| 941 compiled_module->set_native_context(isolate->native_context()); | 941 compiled_module->set_native_context(isolate->native_context()); |
| 942 compiled_module->set_code_table(code_table); | 942 compiled_module->set_code_table(code_table); |
| 943 int function_table_count = | 943 int function_table_count = |
| 944 static_cast<int>(shared->module()->function_tables.size()); | 944 static_cast<int>(shared->module()->function_tables.size()); |
| 945 if (function_table_count > 0) { | 945 if (function_table_count > 0) { |
| 946 compiled_module->set_signature_tables( | 946 compiled_module->set_signature_tables( |
| 947 maybe_signature_tables.ToHandleChecked()); | 947 maybe_signature_tables.ToHandleChecked()); |
| 948 compiled_module->set_empty_function_tables( | 948 compiled_module->set_empty_function_tables( |
| 949 maybe_empty_function_tables.ToHandleChecked()); | 949 maybe_empty_function_tables.ToHandleChecked()); |
| 950 compiled_module->set_function_tables( |
| 951 maybe_empty_function_tables.ToHandleChecked()); |
| 950 } | 952 } |
| 951 // TODO(mtrofin): we copy these because the order of finalization isn't | 953 // TODO(mtrofin): we copy these because the order of finalization isn't |
| 952 // reliable, and we need these at Reset (which is called at | 954 // reliable, and we need these at Reset (which is called at |
| 953 // finalization). If the order were reliable, and top-down, we could instead | 955 // finalization). If the order were reliable, and top-down, we could instead |
| 954 // just get them from shared(). | 956 // just get them from shared(). |
| 955 compiled_module->set_min_mem_pages(shared->module()->min_mem_pages); | 957 compiled_module->set_min_mem_pages(shared->module()->min_mem_pages); |
| 956 compiled_module->set_num_imported_functions( | 958 compiled_module->set_num_imported_functions( |
| 957 shared->module()->num_imported_functions); | 959 shared->module()->num_imported_functions); |
| 958 return compiled_module; | 960 return compiled_module; |
| 959 } | 961 } |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1555 if (!array->get(kWrapperInstanceObject)->IsWeakCell()) return false; | 1557 if (!array->get(kWrapperInstanceObject)->IsWeakCell()) return false; |
| 1556 Isolate* isolate = array->GetIsolate(); | 1558 Isolate* isolate = array->GetIsolate(); |
| 1557 if (!array->get(kNextInstanceWrapper)->IsUndefined(isolate) && | 1559 if (!array->get(kNextInstanceWrapper)->IsUndefined(isolate) && |
| 1558 !array->get(kNextInstanceWrapper)->IsFixedArray()) | 1560 !array->get(kNextInstanceWrapper)->IsFixedArray()) |
| 1559 return false; | 1561 return false; |
| 1560 if (!array->get(kPreviousInstanceWrapper)->IsUndefined(isolate) && | 1562 if (!array->get(kPreviousInstanceWrapper)->IsUndefined(isolate) && |
| 1561 !array->get(kPreviousInstanceWrapper)->IsFixedArray()) | 1563 !array->get(kPreviousInstanceWrapper)->IsFixedArray()) |
| 1562 return false; | 1564 return false; |
| 1563 return true; | 1565 return true; |
| 1564 } | 1566 } |
| OLD | NEW |