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 6887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6898 inline void set_unique_id(int value); | 6898 inline void set_unique_id(int value); |
6899 #endif | 6899 #endif |
6900 | 6900 |
6901 // [instance class name]: class name for instances. | 6901 // [instance class name]: class name for instances. |
6902 DECL_ACCESSORS(instance_class_name, Object) | 6902 DECL_ACCESSORS(instance_class_name, Object) |
6903 | 6903 |
6904 // [function data]: This field holds some additional data for function. | 6904 // [function data]: This field holds some additional data for function. |
6905 // Currently it has one of: | 6905 // Currently it has one of: |
6906 // - a FunctionTemplateInfo to make benefit the API [IsApiFunction()]. | 6906 // - a FunctionTemplateInfo to make benefit the API [IsApiFunction()]. |
6907 // - a BytecodeArray for the interpreter [HasBytecodeArray()]. | 6907 // - a BytecodeArray for the interpreter [HasBytecodeArray()]. |
| 6908 // - a FixedArray with Asm->Wasm conversion [HasAsmWasmData()]. |
6908 DECL_ACCESSORS(function_data, Object) | 6909 DECL_ACCESSORS(function_data, Object) |
6909 | 6910 |
6910 inline bool IsApiFunction(); | 6911 inline bool IsApiFunction(); |
6911 inline FunctionTemplateInfo* get_api_func_data(); | 6912 inline FunctionTemplateInfo* get_api_func_data(); |
6912 inline void set_api_func_data(FunctionTemplateInfo* data); | 6913 inline void set_api_func_data(FunctionTemplateInfo* data); |
6913 inline bool HasBytecodeArray(); | 6914 inline bool HasBytecodeArray(); |
6914 inline BytecodeArray* bytecode_array(); | 6915 inline BytecodeArray* bytecode_array(); |
6915 inline void set_bytecode_array(BytecodeArray* bytecode); | 6916 inline void set_bytecode_array(BytecodeArray* bytecode); |
6916 inline void ClearBytecodeArray(); | 6917 inline void ClearBytecodeArray(); |
| 6918 inline bool HasAsmWasmData(); |
| 6919 inline FixedArray* asm_wasm_data(); |
| 6920 inline void set_asm_wasm_data(FixedArray* data); |
| 6921 inline void ClearAsmWasmData(); |
6917 | 6922 |
6918 // [function identifier]: This field holds an additional identifier for the | 6923 // [function identifier]: This field holds an additional identifier for the |
6919 // function. | 6924 // function. |
6920 // - a Smi identifying a builtin function [HasBuiltinFunctionId()]. | 6925 // - a Smi identifying a builtin function [HasBuiltinFunctionId()]. |
6921 // - a String identifying the function's inferred name [HasInferredName()]. | 6926 // - a String identifying the function's inferred name [HasInferredName()]. |
6922 // The inferred_name is inferred from variable or property | 6927 // The inferred_name is inferred from variable or property |
6923 // assignment of this function. It is used to facilitate debugging and | 6928 // assignment of this function. It is used to facilitate debugging and |
6924 // profiling of JavaScript code written in OO style, where almost | 6929 // profiling of JavaScript code written in OO style, where almost |
6925 // all functions are anonymous but are assigned to object | 6930 // all functions are anonymous but are assigned to object |
6926 // properties. | 6931 // properties. |
(...skipping 3995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10922 } | 10927 } |
10923 return value; | 10928 return value; |
10924 } | 10929 } |
10925 }; | 10930 }; |
10926 | 10931 |
10927 | 10932 |
10928 } // NOLINT, false-positive due to second-order macros. | 10933 } // NOLINT, false-positive due to second-order macros. |
10929 } // NOLINT, false-positive due to second-order macros. | 10934 } // NOLINT, false-positive due to second-order macros. |
10930 | 10935 |
10931 #endif // V8_OBJECTS_H_ | 10936 #endif // V8_OBJECTS_H_ |
OLD | NEW |