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

Unified Diff: src/api.cc

Issue 2490663002: [wasm] Move all heap-allocated WASM structures into wasm-objects.h. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | src/asmjs/asm-js.cc » ('j') | src/wasm/wasm-module.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index a46f0233f383a67512f7ab008bc6192052c7ecfc..cdb83275d31551d0abb6b134fca485b13bd69792 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -73,6 +73,7 @@
#include "src/version.h"
#include "src/vm-state-inl.h"
#include "src/wasm/wasm-module.h"
+#include "src/wasm/wasm-objects.h"
#include "src/wasm/wasm-result.h"
namespace v8 {
@@ -7238,8 +7239,8 @@ MaybeLocal<Proxy> Proxy::New(Local<Context> context, Local<Object> local_target,
Local<String> WasmCompiledModule::GetWasmWireBytes() {
i::Handle<i::JSObject> obj =
i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
- i::Handle<i::wasm::WasmCompiledModule> compiled_part =
- i::handle(i::wasm::WasmCompiledModule::cast(obj->GetInternalField(0)));
+ i::Handle<i::WasmCompiledModule> compiled_part =
+ i::handle(i::WasmCompiledModule::cast(obj->GetInternalField(0)));
i::Handle<i::String> wire_bytes = compiled_part->module_bytes();
return Local<String>::Cast(Utils::ToLocal(wire_bytes));
}
@@ -7247,8 +7248,8 @@ Local<String> WasmCompiledModule::GetWasmWireBytes() {
WasmCompiledModule::SerializedModule WasmCompiledModule::Serialize() {
i::Handle<i::JSObject> obj =
i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
- i::Handle<i::wasm::WasmCompiledModule> compiled_part =
- i::handle(i::wasm::WasmCompiledModule::cast(obj->GetInternalField(0)));
+ i::Handle<i::WasmCompiledModule> compiled_part =
+ i::handle(i::WasmCompiledModule::cast(obj->GetInternalField(0)));
std::unique_ptr<i::ScriptData> script_data =
i::WasmCompiledModuleSerializer::SerializeWasmModule(obj->GetIsolate(),
@@ -7274,8 +7275,8 @@ MaybeLocal<WasmCompiledModule> WasmCompiledModule::Deserialize(
if (!maybe_compiled_part.ToHandle(&compiled_part)) {
return MaybeLocal<WasmCompiledModule>();
}
- i::Handle<i::wasm::WasmCompiledModule> compiled_module =
- handle(i::wasm::WasmCompiledModule::cast(*compiled_part));
+ i::Handle<i::WasmCompiledModule> compiled_module =
+ handle(i::WasmCompiledModule::cast(*compiled_part));
return Local<WasmCompiledModule>::Cast(
Utils::ToLocal(i::wasm::CreateWasmModuleObject(
i_isolate, compiled_module, i::wasm::ModuleOrigin::kWasmOrigin)));
« no previous file with comments | « BUILD.gn ('k') | src/asmjs/asm-js.cc » ('j') | src/wasm/wasm-module.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698