| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 25e1d7d74b4c70993c4367a81e65a2270ecad947..e5171a31e14daee86dd5370d2e39e0b8ec5dcdf9 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -5990,6 +5990,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();
|
| }
|
|
|