| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index f835e56d9cf85e3f2999d7d9641faae0bf953333..198f94c5a3d37ed265d546dd510950a517fe0cde 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -6011,6 +6011,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();
|
| }
|
|
|