Commit 1f9ce95
[dart2wasm] Simplify boxed Dart object marker allocation
Skip the `JSSymbol` indirection and use an `externref` for the `Symbol`
object directly.
With the `JSSymbol` the indirection cannot be eliminated by inlining,
because we have to check whether the `JSSymbol` static object is
allocated first, and then access its `externref` field.
When using an `externref` directly we still check whether the static
field is initialized, but if it is we directly access the `extenref`,
without going through `JSSymbol`.
Change-Id: I9feae319c34fc5a3f83c0f5ba3767454a1f94566
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/445680
Reviewed-by: Srujan Gaddam <[email protected]>
Commit-Queue: Ömer Ağacan <[email protected]>1 parent fbf680e commit 1f9ce95
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 119 | + | |
| 120 | + | |
124 | 121 | | |
125 | 122 | | |
126 | 123 | | |
| |||
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
134 | | - | |
| 131 | + | |
135 | 132 | | |
136 | 133 | | |
137 | 134 | | |
| |||
152 | 149 | | |
153 | 150 | | |
154 | 151 | | |
155 | | - | |
| 152 | + | |
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
| |||
0 commit comments