Skip to content

Commit

Permalink
!fixup fix native context constant for v6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheus Marchini committed Mar 20, 2018
1 parent 63901e8 commit 3d2543f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/llv8-constants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,13 @@ void Context::Load() {
LoadConstant("class_Context__closure_index__int", "context_idx_closure");
kPreviousIndex =
LoadConstant("class_Context__previous_index__int", "context_idx_prev");
// TODO (mmarchini) change LoadConstant to accept variable arguments, a list
// of constants or a fallback list).
kNativeIndex =
LoadConstant("class_Context__native_index__int", "context_idx_native");
if (kNativeIndex == -1) {
kNativeIndex = LoadConstant("class_Context__native_context_index__int");
}
kEmbedderDataIndex = LoadConstant("context_idx_embedder_data", (int)5);

kMinContextSlots = LoadConstant("class_Context__min_context_slots__int",
Expand Down

0 comments on commit 3d2543f

Please sign in to comment.