From 2952cc576cb6b5a3afc55a59a6fb38d0ff6a6150 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 a50f780b73664f..c5044015c5105a 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