| 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 6539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6550 // [shared_function_infos]: weak fixed array containing all shared | 6550 // [shared_function_infos]: weak fixed array containing all shared |
| 6551 // function infos created from this script. | 6551 // function infos created from this script. |
| 6552 DECL_ACCESSORS(shared_function_infos, Object) | 6552 DECL_ACCESSORS(shared_function_infos, Object) |
| 6553 | 6553 |
| 6554 // [flags]: Holds an exciting bitfield. | 6554 // [flags]: Holds an exciting bitfield. |
| 6555 DECL_INT_ACCESSORS(flags) | 6555 DECL_INT_ACCESSORS(flags) |
| 6556 | 6556 |
| 6557 // [source_url]: sourceURL from magic comment | 6557 // [source_url]: sourceURL from magic comment |
| 6558 DECL_ACCESSORS(source_url, Object) | 6558 DECL_ACCESSORS(source_url, Object) |
| 6559 | 6559 |
| 6560 // [source_url]: sourceMappingURL magic comment | 6560 // [source_mapping_url]: sourceMappingURL magic comment |
| 6561 DECL_ACCESSORS(source_mapping_url, Object) | 6561 DECL_ACCESSORS(source_mapping_url, Object) |
| 6562 | 6562 |
| 6563 // [wasm_object]: the wasm object this script belongs to. |
| 6564 // This must only be called if the type of this script is TYPE_WASM. |
| 6565 DECL_ACCESSORS(wasm_object, JSObject) |
| 6566 |
| 6567 // [wasm_function_index]: the wasm function index this script belongs to. |
| 6568 // This must only be called if the type of this script is TYPE_WASM. |
| 6569 DECL_INT_ACCESSORS(wasm_function_index) |
| 6570 |
| 6563 // [compilation_type]: how the the script was compiled. Encoded in the | 6571 // [compilation_type]: how the the script was compiled. Encoded in the |
| 6564 // 'flags' field. | 6572 // 'flags' field. |
| 6565 inline CompilationType compilation_type(); | 6573 inline CompilationType compilation_type(); |
| 6566 inline void set_compilation_type(CompilationType type); | 6574 inline void set_compilation_type(CompilationType type); |
| 6567 | 6575 |
| 6568 // [compilation_state]: determines whether the script has already been | 6576 // [compilation_state]: determines whether the script has already been |
| 6569 // compiled. Encoded in the 'flags' field. | 6577 // compiled. Encoded in the 'flags' field. |
| 6570 inline CompilationState compilation_state(); | 6578 inline CompilationState compilation_state(); |
| 6571 inline void set_compilation_state(CompilationState state); | 6579 inline void set_compilation_state(CompilationState state); |
| 6572 | 6580 |
| (...skipping 4349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10922 } | 10930 } |
| 10923 return value; | 10931 return value; |
| 10924 } | 10932 } |
| 10925 }; | 10933 }; |
| 10926 | 10934 |
| 10927 | 10935 |
| 10928 } // NOLINT, false-positive due to second-order macros. | 10936 } // NOLINT, false-positive due to second-order macros. |
| 10929 } // NOLINT, false-positive due to second-order macros. | 10937 } // NOLINT, false-positive due to second-order macros. |
| 10930 | 10938 |
| 10931 #endif // V8_OBJECTS_H_ | 10939 #endif // V8_OBJECTS_H_ |
| OLD | NEW |