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 6415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6426 // [shared_function_infos]: weak fixed array containing all shared | 6426 // [shared_function_infos]: weak fixed array containing all shared |
6427 // function infos created from this script. | 6427 // function infos created from this script. |
6428 DECL_ACCESSORS(shared_function_infos, Object) | 6428 DECL_ACCESSORS(shared_function_infos, Object) |
6429 | 6429 |
6430 // [flags]: Holds an exciting bitfield. | 6430 // [flags]: Holds an exciting bitfield. |
6431 DECL_INT_ACCESSORS(flags) | 6431 DECL_INT_ACCESSORS(flags) |
6432 | 6432 |
6433 // [source_url]: sourceURL from magic comment | 6433 // [source_url]: sourceURL from magic comment |
6434 DECL_ACCESSORS(source_url, Object) | 6434 DECL_ACCESSORS(source_url, Object) |
6435 | 6435 |
6436 // [source_url]: sourceMappingURL magic comment | 6436 // [source_mapping_url]: sourceMappingURL magic comment |
6437 DECL_ACCESSORS(source_mapping_url, Object) | 6437 DECL_ACCESSORS(source_mapping_url, Object) |
6438 | 6438 |
| 6439 // [wasm_object]: the wasm object this script belongs to. |
| 6440 // This must only be called if the type of this script is TYPE_WASM. |
| 6441 DECL_ACCESSORS(wasm_object, JSObject) |
| 6442 |
| 6443 // [wasm_function_index]: the wasm function index this script belongs to. |
| 6444 // This must only be called if the type of this script is TYPE_WASM. |
| 6445 DECL_INT_ACCESSORS(wasm_function_index) |
| 6446 |
6439 // [compilation_type]: how the the script was compiled. Encoded in the | 6447 // [compilation_type]: how the the script was compiled. Encoded in the |
6440 // 'flags' field. | 6448 // 'flags' field. |
6441 inline CompilationType compilation_type(); | 6449 inline CompilationType compilation_type(); |
6442 inline void set_compilation_type(CompilationType type); | 6450 inline void set_compilation_type(CompilationType type); |
6443 | 6451 |
6444 // [compilation_state]: determines whether the script has already been | 6452 // [compilation_state]: determines whether the script has already been |
6445 // compiled. Encoded in the 'flags' field. | 6453 // compiled. Encoded in the 'flags' field. |
6446 inline CompilationState compilation_state(); | 6454 inline CompilationState compilation_state(); |
6447 inline void set_compilation_state(CompilationState state); | 6455 inline void set_compilation_state(CompilationState state); |
6448 | 6456 |
(...skipping 4355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10804 } | 10812 } |
10805 return value; | 10813 return value; |
10806 } | 10814 } |
10807 }; | 10815 }; |
10808 | 10816 |
10809 | 10817 |
10810 } // NOLINT, false-positive due to second-order macros. | 10818 } // NOLINT, false-positive due to second-order macros. |
10811 } // NOLINT, false-positive due to second-order macros. | 10819 } // NOLINT, false-positive due to second-order macros. |
10812 | 10820 |
10813 #endif // V8_OBJECTS_H_ | 10821 #endif // V8_OBJECTS_H_ |
OLD | NEW |