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 7036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7047 | 7047 |
7048 // [flags]: Holds an exciting bitfield. | 7048 // [flags]: Holds an exciting bitfield. |
7049 DECL_INT_ACCESSORS(flags) | 7049 DECL_INT_ACCESSORS(flags) |
7050 | 7050 |
7051 // [source_url]: sourceURL from magic comment | 7051 // [source_url]: sourceURL from magic comment |
7052 DECL_ACCESSORS(source_url, Object) | 7052 DECL_ACCESSORS(source_url, Object) |
7053 | 7053 |
7054 // [source_mapping_url]: sourceMappingURL magic comment | 7054 // [source_mapping_url]: sourceMappingURL magic comment |
7055 DECL_ACCESSORS(source_mapping_url, Object) | 7055 DECL_ACCESSORS(source_mapping_url, Object) |
7056 | 7056 |
7057 // [wasm_instance]: the wasm instance this script belongs to. | 7057 // [wasm_compiled_module]: the compiled wasm module this script belongs to. |
7058 // This must only be called if the type of this script is TYPE_WASM. | 7058 // This must only be called if the type of this script is TYPE_WASM. |
7059 DECL_ACCESSORS(wasm_instance, JSObject) | 7059 DECL_ACCESSORS(wasm_compiled_module, Object) |
7060 | |
7061 // [wasm_function_index]: the wasm function index this script belongs to. | |
7062 // This must only be called if the type of this script is TYPE_WASM. | |
7063 DECL_INT_ACCESSORS(wasm_function_index) | |
7064 | 7060 |
7065 // [compilation_type]: how the the script was compiled. Encoded in the | 7061 // [compilation_type]: how the the script was compiled. Encoded in the |
7066 // 'flags' field. | 7062 // 'flags' field. |
7067 inline CompilationType compilation_type(); | 7063 inline CompilationType compilation_type(); |
7068 inline void set_compilation_type(CompilationType type); | 7064 inline void set_compilation_type(CompilationType type); |
7069 | 7065 |
7070 // [compilation_state]: determines whether the script has already been | 7066 // [compilation_state]: determines whether the script has already been |
7071 // compiled. Encoded in the 'flags' field. | 7067 // compiled. Encoded in the 'flags' field. |
7072 inline CompilationState compilation_state(); | 7068 inline CompilationState compilation_state(); |
7073 inline void set_compilation_state(CompilationState state); | 7069 inline void set_compilation_state(CompilationState state); |
(...skipping 4747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11821 } | 11817 } |
11822 return value; | 11818 return value; |
11823 } | 11819 } |
11824 }; | 11820 }; |
11825 | 11821 |
11826 | 11822 |
11827 } // NOLINT, false-positive due to second-order macros. | 11823 } // NOLINT, false-positive due to second-order macros. |
11828 } // NOLINT, false-positive due to second-order macros. | 11824 } // NOLINT, false-positive due to second-order macros. |
11829 | 11825 |
11830 #endif // V8_OBJECTS_H_ | 11826 #endif // V8_OBJECTS_H_ |
OLD | NEW |