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

Unified Diff: src/objects-inl.h

Issue 2057403003: Hooking up asm-wasm conversion. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 6 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/objects-debug.cc ('k') | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 49159130df45f3e4f10e3ee8f4dbc6e17dbf368b..3154a947f1f846b4490a2f68ae4fc4804e390ed0 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -6084,6 +6084,25 @@ void SharedFunctionInfo::ClearBytecodeArray() {
set_function_data(GetHeap()->undefined_value());
}
+bool SharedFunctionInfo::HasAsmWasmData() {
+ return function_data()->IsFixedArray();
+}
+
+FixedArray* SharedFunctionInfo::asm_wasm_data() {
+ DCHECK(HasAsmWasmData());
+ return FixedArray::cast(function_data());
+}
+
+void SharedFunctionInfo::set_asm_wasm_data(FixedArray* data) {
+ DCHECK(function_data()->IsUndefined(GetIsolate()) || HasAsmWasmData());
+ set_function_data(data);
+}
+
+void SharedFunctionInfo::ClearAsmWasmData() {
+ DCHECK(function_data()->IsUndefined(GetIsolate()) || HasAsmWasmData());
+ set_function_data(GetHeap()->undefined_value());
+}
+
bool SharedFunctionInfo::HasBuiltinFunctionId() {
return function_identifier()->IsSmi();
}
« no previous file with comments | « src/objects-debug.cc ('k') | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698