diff --git a/src/objects/js-function.tq b/src/objects/js-function.tq index f845c5da82..e08a0f1789 100644 --- a/src/objects/js-function.tq +++ b/src/objects/js-function.tq @@ -24,10 +24,10 @@ extern class JSFunction extends JSFunctionOrBoundFunction { shared_function_info: SharedFunctionInfo; context: Context; feedback_cell: FeedbackCell; - @if(V8_EXTERNAL_CODE_SPACE) weak code: CodeDataContainer; - @ifnot(V8_EXTERNAL_CODE_SPACE) weak code: Code; + @if(V8_EXTERNAL_CODE_SPACE) code: CodeDataContainer; + @ifnot(V8_EXTERNAL_CODE_SPACE) code: Code; // Space for the following field may or may not be allocated. - @noVerifier weak prototype_or_initial_map: JSReceiver|Map; + @noVerifier prototype_or_initial_map: JSReceiver|Map; } type JSFunctionWithPrototypeSlot extends JSFunction; diff --git a/src/objects/objects-body-descriptors-inl.h b/src/objects/objects-body-descriptors-inl.h index 9102016ebb..60b6760418 100644 --- a/src/objects/objects-body-descriptors-inl.h +++ b/src/objects/objects-body-descriptors-inl.h @@ -1067,6 +1067,14 @@ ReturnType BodyDescriptorApply(InstanceType type, T1 p1, T2 p2, T3 p3, T4 p4) { case JS_STRING_ITERATOR_PROTOTYPE_TYPE: case JS_STRING_ITERATOR_TYPE: case JS_TYPED_ARRAY_PROTOTYPE_TYPE: + case JS_FUNCTION_TYPE: + case JS_PROMISE_CONSTRUCTOR_TYPE: + case JS_REG_EXP_CONSTRUCTOR_TYPE: + case JS_ARRAY_CONSTRUCTOR_TYPE: +#define TYPED_ARRAY_CONSTRUCTORS_SWITCH(Type, type, TYPE, Ctype) \ + case TYPE##_TYPED_ARRAY_CONSTRUCTOR_TYPE: + TYPED_ARRAYS(TYPED_ARRAY_CONSTRUCTORS_SWITCH) +#undef TYPED_ARRAY_CONSTRUCTORS_SWITCH #ifdef V8_INTL_SUPPORT case JS_V8_BREAK_ITERATOR_TYPE: case JS_COLLATOR_TYPE: @@ -1105,15 +1113,6 @@ ReturnType BodyDescriptorApply(InstanceType type, T1 p1, T2 p2, T3 p3, T4 p4) { return Op::template apply(p1, p2, p3, p4); case JS_TYPED_ARRAY_TYPE: return Op::template apply(p1, p2, p3, p4); - case JS_FUNCTION_TYPE: - case JS_PROMISE_CONSTRUCTOR_TYPE: - case JS_REG_EXP_CONSTRUCTOR_TYPE: - case JS_ARRAY_CONSTRUCTOR_TYPE: -#define TYPED_ARRAY_CONSTRUCTORS_SWITCH(Type, type, TYPE, Ctype) \ - case TYPE##_TYPED_ARRAY_CONSTRUCTOR_TYPE: - TYPED_ARRAYS(TYPED_ARRAY_CONSTRUCTORS_SWITCH) -#undef TYPED_ARRAY_CONSTRUCTORS_SWITCH - return Op::template apply(p1, p2, p3, p4); case WEAK_CELL_TYPE: return Op::template apply(p1, p2, p3, p4); case JS_WEAK_REF_TYPE: