OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 6756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6767 inline void set_unique_id(int value); | 6767 inline void set_unique_id(int value); |
6768 #endif | 6768 #endif |
6769 | 6769 |
6770 // [instance class name]: class name for instances. | 6770 // [instance class name]: class name for instances. |
6771 DECL_ACCESSORS(instance_class_name, Object) | 6771 DECL_ACCESSORS(instance_class_name, Object) |
6772 | 6772 |
6773 // [function data]: This field holds some additional data for function. | 6773 // [function data]: This field holds some additional data for function. |
6774 // Currently it has one of: | 6774 // Currently it has one of: |
6775 // - a FunctionTemplateInfo to make benefit the API [IsApiFunction()]. | 6775 // - a FunctionTemplateInfo to make benefit the API [IsApiFunction()]. |
6776 // - a BytecodeArray for the interpreter [HasBytecodeArray()]. | 6776 // - a BytecodeArray for the interpreter [HasBytecodeArray()]. |
| 6777 // - a FixedArray with Asm->Wasm conversion [HasAsmWasmData()]. |
6777 DECL_ACCESSORS(function_data, Object) | 6778 DECL_ACCESSORS(function_data, Object) |
6778 | 6779 |
6779 inline bool IsApiFunction(); | 6780 inline bool IsApiFunction(); |
6780 inline FunctionTemplateInfo* get_api_func_data(); | 6781 inline FunctionTemplateInfo* get_api_func_data(); |
6781 inline void set_api_func_data(FunctionTemplateInfo* data); | 6782 inline void set_api_func_data(FunctionTemplateInfo* data); |
6782 inline bool HasBytecodeArray(); | 6783 inline bool HasBytecodeArray(); |
6783 inline BytecodeArray* bytecode_array(); | 6784 inline BytecodeArray* bytecode_array(); |
6784 inline void set_bytecode_array(BytecodeArray* bytecode); | 6785 inline void set_bytecode_array(BytecodeArray* bytecode); |
6785 inline void ClearBytecodeArray(); | 6786 inline void ClearBytecodeArray(); |
| 6787 inline bool HasAsmWasmData(); |
| 6788 inline FixedArray* asm_wasm_data(); |
| 6789 inline void set_asm_wasm_data(FixedArray* data); |
| 6790 inline void ClearAsmWasmData(); |
6786 | 6791 |
6787 // [function identifier]: This field holds an additional identifier for the | 6792 // [function identifier]: This field holds an additional identifier for the |
6788 // function. | 6793 // function. |
6789 // - a Smi identifying a builtin function [HasBuiltinFunctionId()]. | 6794 // - a Smi identifying a builtin function [HasBuiltinFunctionId()]. |
6790 // - a String identifying the function's inferred name [HasInferredName()]. | 6795 // - a String identifying the function's inferred name [HasInferredName()]. |
6791 // The inferred_name is inferred from variable or property | 6796 // The inferred_name is inferred from variable or property |
6792 // assignment of this function. It is used to facilitate debugging and | 6797 // assignment of this function. It is used to facilitate debugging and |
6793 // profiling of JavaScript code written in OO style, where almost | 6798 // profiling of JavaScript code written in OO style, where almost |
6794 // all functions are anonymous but are assigned to object | 6799 // all functions are anonymous but are assigned to object |
6795 // properties. | 6800 // properties. |
(...skipping 4002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10798 } | 10803 } |
10799 return value; | 10804 return value; |
10800 } | 10805 } |
10801 }; | 10806 }; |
10802 | 10807 |
10803 | 10808 |
10804 } // NOLINT, false-positive due to second-order macros. | 10809 } // NOLINT, false-positive due to second-order macros. |
10805 } // NOLINT, false-positive due to second-order macros. | 10810 } // NOLINT, false-positive due to second-order macros. |
10806 | 10811 |
10807 #endif // V8_OBJECTS_H_ | 10812 #endif // V8_OBJECTS_H_ |
OLD | NEW |