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

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

Issue 2807013002: [wasm] Misc fixes for async compilation (Closed)
Patch Set: rename Created 3 years, 8 months 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-module.cc ('k') | test/mjsunit/regress/wasm/regress-709684.js » ('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 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
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
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 }
OLDNEW
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | test/mjsunit/regress/wasm/regress-709684.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698