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 6429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6440 // [shared_function_infos]: weak fixed array containing all shared | 6440 // [shared_function_infos]: weak fixed array containing all shared |
6441 // function infos created from this script. | 6441 // function infos created from this script. |
6442 DECL_ACCESSORS(shared_function_infos, Object) | 6442 DECL_ACCESSORS(shared_function_infos, Object) |
6443 | 6443 |
6444 // [flags]: Holds an exciting bitfield. | 6444 // [flags]: Holds an exciting bitfield. |
6445 DECL_INT_ACCESSORS(flags) | 6445 DECL_INT_ACCESSORS(flags) |
6446 | 6446 |
6447 // [source_url]: sourceURL from magic comment | 6447 // [source_url]: sourceURL from magic comment |
6448 DECL_ACCESSORS(source_url, Object) | 6448 DECL_ACCESSORS(source_url, Object) |
6449 | 6449 |
6450 // [source_url]: sourceMappingURL magic comment | 6450 // [source_mapping_url]: sourceMappingURL magic comment |
6451 DECL_ACCESSORS(source_mapping_url, Object) | 6451 DECL_ACCESSORS(source_mapping_url, Object) |
6452 | 6452 |
| 6453 // [wasm_object]: the wasm object this script belongs to. |
| 6454 // This must only be called if the type of this script is TYPE_WASM. |
| 6455 DECL_ACCESSORS(wasm_object, JSObject) |
| 6456 |
| 6457 // [wasm_function_index]: the wasm function index this script belongs to. |
| 6458 // This must only be called if the type of this script is TYPE_WASM. |
| 6459 DECL_INT_ACCESSORS(wasm_function_index) |
| 6460 |
6453 // [compilation_type]: how the the script was compiled. Encoded in the | 6461 // [compilation_type]: how the the script was compiled. Encoded in the |
6454 // 'flags' field. | 6462 // 'flags' field. |
6455 inline CompilationType compilation_type(); | 6463 inline CompilationType compilation_type(); |
6456 inline void set_compilation_type(CompilationType type); | 6464 inline void set_compilation_type(CompilationType type); |
6457 | 6465 |
6458 // [compilation_state]: determines whether the script has already been | 6466 // [compilation_state]: determines whether the script has already been |
6459 // compiled. Encoded in the 'flags' field. | 6467 // compiled. Encoded in the 'flags' field. |
6460 inline CompilationState compilation_state(); | 6468 inline CompilationState compilation_state(); |
6461 inline void set_compilation_state(CompilationState state); | 6469 inline void set_compilation_state(CompilationState state); |
6462 | 6470 |
(...skipping 4363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10826 } | 10834 } |
10827 return value; | 10835 return value; |
10828 } | 10836 } |
10829 }; | 10837 }; |
10830 | 10838 |
10831 | 10839 |
10832 } // NOLINT, false-positive due to second-order macros. | 10840 } // NOLINT, false-positive due to second-order macros. |
10833 } // NOLINT, false-positive due to second-order macros. | 10841 } // NOLINT, false-positive due to second-order macros. |
10834 | 10842 |
10835 #endif // V8_OBJECTS_H_ | 10843 #endif // V8_OBJECTS_H_ |
OLD | NEW |