We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63901e8 commit 3d2543fCopy full SHA for 3d2543f
1 file changed
src/llv8-constants.cc
@@ -239,8 +239,13 @@ void Context::Load() {
239
LoadConstant("class_Context__closure_index__int", "context_idx_closure");
240
kPreviousIndex =
241
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).
244
kNativeIndex =
245
LoadConstant("class_Context__native_index__int", "context_idx_native");
246
+ if (kNativeIndex == -1) {
247
+ kNativeIndex = LoadConstant("class_Context__native_context_index__int");
248
+ }
249
kEmbedderDataIndex = LoadConstant("context_idx_embedder_data", (int)5);
250
251
kMinContextSlots = LoadConstant("class_Context__min_context_slots__int",
0 commit comments