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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 7066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7077 | 7077 |
7078 // [flags]: Holds an exciting bitfield. | 7078 // [flags]: Holds an exciting bitfield. |
7079 DECL_INT_ACCESSORS(flags) | 7079 DECL_INT_ACCESSORS(flags) |
7080 | 7080 |
7081 // [source_url]: sourceURL from magic comment | 7081 // [source_url]: sourceURL from magic comment |
7082 DECL_ACCESSORS(source_url, Object) | 7082 DECL_ACCESSORS(source_url, Object) |
7083 | 7083 |
7084 // [source_mapping_url]: sourceMappingURL magic comment | 7084 // [source_mapping_url]: sourceMappingURL magic comment |
7085 DECL_ACCESSORS(source_mapping_url, Object) | 7085 DECL_ACCESSORS(source_mapping_url, Object) |
7086 | 7086 |
7087 // [wasm_instance]: the wasm instance this script belongs to. | 7087 // [wasm_compiled_module]: the compiled wasm module this script belongs to. |
7088 // This must only be called if the type of this script is TYPE_WASM. | 7088 // This must only be called if the type of this script is TYPE_WASM. |
7089 DECL_ACCESSORS(wasm_instance, JSObject) | 7089 DECL_ACCESSORS(wasm_compiled_module, Object) |
7090 | |
7091 // [wasm_function_index]: the wasm function index this script belongs to. | |
7092 // This must only be called if the type of this script is TYPE_WASM. | |
7093 DECL_INT_ACCESSORS(wasm_function_index) | |
7094 | 7090 |
7095 // [compilation_type]: how the the script was compiled. Encoded in the | 7091 // [compilation_type]: how the the script was compiled. Encoded in the |
7096 // 'flags' field. | 7092 // 'flags' field. |
7097 inline CompilationType compilation_type(); | 7093 inline CompilationType compilation_type(); |
7098 inline void set_compilation_type(CompilationType type); | 7094 inline void set_compilation_type(CompilationType type); |
7099 | 7095 |
7100 // [compilation_state]: determines whether the script has already been | 7096 // [compilation_state]: determines whether the script has already been |
7101 // compiled. Encoded in the 'flags' field. | 7097 // compiled. Encoded in the 'flags' field. |
7102 inline CompilationState compilation_state(); | 7098 inline CompilationState compilation_state(); |
7103 inline void set_compilation_state(CompilationState state); | 7099 inline void set_compilation_state(CompilationState state); |
(...skipping 4760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11864 } | 11860 } |
11865 return value; | 11861 return value; |
11866 } | 11862 } |
11867 }; | 11863 }; |
11868 | 11864 |
11869 | 11865 |
11870 } // NOLINT, false-positive due to second-order macros. | 11866 } // NOLINT, false-positive due to second-order macros. |
11871 } // NOLINT, false-positive due to second-order macros. | 11867 } // NOLINT, false-positive due to second-order macros. |
11872 | 11868 |
11873 #endif // V8_OBJECTS_H_ | 11869 #endif // V8_OBJECTS_H_ |
OLD | NEW |