File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/main/ruby/truffleruby/core Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,10 @@ def self.new(*args, **kwargs)
83
83
# to redefine #initialize in the returned Data subclass and use super() to use the #initialize just below.
84
84
# CRuby defines these directly on Data, but that is suboptimal for performance.
85
85
# We want to have a specialized copy of these methods for each Data subclass.
86
- instance_methods_module = Module . new do
86
+ instance_methods_module = Module . new
87
+ instance_methods_module . module_eval "#{ <<~'RUBY' } "
88
+ # truffleruby_primitives: true
89
+
87
90
def initialize(**kwargs)
88
91
members_hash = Primitive.class(self)::CLASS_MEMBERS_HASH
89
92
kwargs.each do |member, value|
@@ -219,7 +222,7 @@ def hash
219
222
220
223
Primitive.vm_hash_end(val)
221
224
end
222
- end
225
+ RUBY
223
226
224
227
klass . include instance_methods_module
225
228
You can’t perform that action at this time.
0 commit comments