5 #ifndef INCLUDE_V8_MESSAGE_H_
6 #define INCLUDE_V8_MESSAGE_H_
31 bool is_opaque =
false,
bool is_wasm =
false,
32 bool is_module =
false)
33 : flags_((is_shared_cross_origin ? kIsSharedCrossOrigin : 0) |
34 (is_wasm ? kIsWasm : 0) | (is_opaque ? kIsOpaque : 0) |
35 (is_module ? kIsModule : 0)) {}
38 (kIsSharedCrossOrigin | kIsOpaque | kIsWasm | kIsModule)) {}
41 return (flags_ & kIsSharedCrossOrigin) != 0;
43 bool IsOpaque()
const {
return (flags_ & kIsOpaque) != 0; }
44 bool IsWasm()
const {
return (flags_ & kIsWasm) != 0; }
45 bool IsModule()
const {
return (flags_ & kIsModule) != 0; }
47 int Flags()
const {
return flags_; }
51 kIsSharedCrossOrigin = 1,
65 int resource_line_offset = 0,
66 int resource_column_offset = 0,
67 bool resource_is_shared_cross_origin =
false,
70 bool resource_is_opaque =
false,
bool is_wasm =
false,
71 bool is_module =
false,
74 resource_name_(resource_name),
75 resource_line_offset_(resource_line_offset),
76 resource_column_offset_(resource_column_offset),
77 options_
(resource_is_shared_cross_origin
, resource_is_opaque
, is_wasm
,
79 script_id_(script_id),
80 source_map_url_(source_map_url),
81 host_defined_options_(host_defined_options) {
82 VerifyHostDefinedOptions();
96 void VerifyHostDefinedOptions()
const;
99 int resource_line_offset_;
100 int resource_column_offset_;
203 return host_defined_options_;