File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -239,8 +239,13 @@ void Context::Load() {
239239 LoadConstant (" class_Context__closure_index__int" , " context_idx_closure" );
240240 kPreviousIndex =
241241 LoadConstant (" class_Context__previous_index__int" , " context_idx_prev" );
242+ // TODO (mmarchini) change LoadConstant to accept variable arguments, a list
243+ // of constants or a fallback list).
242244 kNativeIndex =
243245 LoadConstant (" class_Context__native_index__int" , " context_idx_native" );
246+ if (kNativeIndex == -1 ) {
247+ kNativeIndex = LoadConstant (" class_Context__native_context_index__int" );
248+ }
244249 kEmbedderDataIndex = LoadConstant (" context_idx_embedder_data" , (int )5 );
245250
246251 kMinContextSlots = LoadConstant (" class_Context__min_context_slots__int" ,
You can’t perform that action at this time.
0 commit comments