File tree 2 files changed +24
-2
lines changed
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/js/public/CompileOptions.h b/js/public/CompileOptions.h
2
+ index e37c28a46..ca454c3a3 100644
3
+ --- a/js/public/CompileOptions.h
4
+ +++ b/js/public/CompileOptions.h
5
+ @@ -83,7 +83,7 @@ enum class AsmJSOption : uint8_t {
6
+ * Use this in code that needs to propagate compile options from one
7
+ * compilation unit to another.
8
+ */
9
+ - class JS_PUBLIC_API TransitiveCompileOptions {
10
+ + class JS_PUBLIC_API __attribute__ ((__packed__)) TransitiveCompileOptions {
11
+ protected:
12
+ /**
13
+ * The Web Platform allows scripts to be loaded from arbitrary cross-origin
14
+ @@ -204,7 +204,7 @@ class JS_PUBLIC_API TransitiveCompileOptions {
15
+ * is protected anyway); instead, create instances only of the derived classes:
16
+ * CompileOptions and OwningCompileOptions.
17
+ */
18
+ - class JS_PUBLIC_API ReadOnlyCompileOptions : public TransitiveCompileOptions {
19
+ + class JS_PUBLIC_API __attribute__ ((__packed__)) ReadOnlyCompileOptions : public TransitiveCompileOptions {
20
+ public:
21
+ // POD options.
22
+ unsigned lineno = 1;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ enum class AsmJSOption : uint8_t {
83
83
* Use this in code that needs to propagate compile options from one
84
84
* compilation unit to another.
85
85
*/
86
- class JS_PUBLIC_API TransitiveCompileOptions {
86
+ class JS_PUBLIC_API __attribute__ ((__packed__)) TransitiveCompileOptions {
87
87
protected:
88
88
/* *
89
89
* The Web Platform allows scripts to be loaded from arbitrary cross-origin
@@ -204,7 +204,7 @@ class JS_PUBLIC_API TransitiveCompileOptions {
204
204
* is protected anyway); instead, create instances only of the derived classes:
205
205
* CompileOptions and OwningCompileOptions.
206
206
*/
207
- class JS_PUBLIC_API ReadOnlyCompileOptions : public TransitiveCompileOptions {
207
+ class JS_PUBLIC_API __attribute__ ((__packed__)) ReadOnlyCompileOptions : public TransitiveCompileOptions {
208
208
public:
209
209
// POD options.
210
210
unsigned lineno = 1 ;
You can’t perform that action at this time.
0 commit comments