From e57fa94d925c2033cd091f8dfe537dc21ccfb34b Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 28 Apr 2023 18:08:44 +0200 Subject: [PATCH] src: add per-isolate SetFastMethod and Set[Fast]MethodNoSideEffect PR-URL: https://github.com/nodejs/node/pull/47768 Reviewed-By: Yagiz Nizipli Reviewed-By: Chengzhong Wu Reviewed-By: Minwoo Jung --- src/util.cc | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ src/util.h | 14 ++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/src/util.cc b/src/util.cc index a50f780b736..c5044015c51 100644 --- a/src/util.cc +++ b/src/util.cc @@ -392,6 +392,25 @@ void SetMethod(v8::Isolate* isolate, that->Set(name_string, t); } +void SetFastMethod(Isolate* isolate, + Local