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

Unified Diff: src/wasm/wasm-objects.h

Issue 2977113002: [wasm] Fix user properties for exported wasm functions and add extensive tests. (Closed)
Patch Set: Address nit Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/wasm/wasm-js.cc ('k') | src/wasm/wasm-objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-objects.h
diff --git a/src/wasm/wasm-objects.h b/src/wasm/wasm-objects.h
index b7c92dfd56b0a52c2ed1a5bcd54b77ee4e2c817b..ee8915317c3eb00c369edd932afe0a607480aa84 100644
--- a/src/wasm/wasm-objects.h
+++ b/src/wasm/wasm-objects.h
@@ -194,21 +194,11 @@ class WasmInstanceObject : public JSObject {
// A WASM function that is wrapped and exported to JavaScript.
class WasmExportedFunction : public JSFunction {
public:
- DECL_OOL_QUERY(WasmExportedFunction)
- DECL_OOL_CAST(WasmExportedFunction)
+ WasmInstanceObject* instance();
+ int function_index();
- DECL_ACCESSORS(instance, WasmInstanceObject)
- DECL_INT_ACCESSORS(function_index)
-
- enum { // --
- kInstanceIndex,
- kFunctionIndexIndex,
- kFieldCount
- };
-
- static const int kSize = JSFunction::kSize + kFieldCount * kPointerSize;
- DEF_OFFSET(Instance)
- DEF_OFFSET(FunctionIndex)
+ static WasmExportedFunction* cast(Object* object);
+ static bool IsWasmExportedFunction(Object* object);
static Handle<WasmExportedFunction> New(Isolate* isolate,
Handle<WasmInstanceObject> instance,
@@ -699,10 +689,6 @@ ACCESSORS(WasmInstanceObject, debug_info, WasmDebugInfo, kDebugInfoOffset)
ACCESSORS(WasmInstanceObject, directly_called_instances, FixedArray,
kDirectlyCalledInstancesOffset)
-// WasmExportedFunction
-ACCESSORS(WasmExportedFunction, instance, WasmInstanceObject, kInstanceOffset)
-SMI_ACCESSORS(WasmExportedFunction, function_index, kFunctionIndexOffset)
-
// WasmSharedModuleData
ACCESSORS(WasmSharedModuleData, module_bytes, SeqOneByteString,
kModuleBytesOffset)
« no previous file with comments | « src/wasm/wasm-js.cc ('k') | src/wasm/wasm-objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698