Sha256: a2b24871efc471014cfd875e710eaf1dc1b3dd4a28e8076b34beac532d4453f5

Contents?: true

Size: 465 Bytes

Versions: 22

Compression:

Stored size: 465 Bytes

Contents

class V8::Conversion
  module Method
    include V8::Conversion::Code

    def to_v8
      template = @@method_cache[self] ||= to_template
      template.GetFunction()
    end

    class MethodCache
      def initialize
        @map = V8::Weak::WeakValueMap.new
      end

      def [](method)
        @map[method.to_s]
      end

      def []=(method, template)
        @map[method.to_s] = template
      end
    end

    @@method_cache = MethodCache.new
  end
end

Version data entries

22 entries across 22 versions & 8 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/therubyracer-0.12.2/lib/v8/conversion/method.rb
therubyracer-0.12.3 lib/v8/conversion/method.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/therubyracer-0.11.4/lib/v8/conversion/method.rb
therubyracer-xcode-0.12.3 lib/v8/conversion/method.rb
therubyracer-xcode-0.12.2 lib/v8/conversion/method.rb
therubyracer-tmpfork-0.12.2 lib/v8/conversion/method.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/therubyracer-0.12.2/lib/v8/conversion/method.rb
therubyracer-0.12.2 lib/v8/conversion/method.rb
therubyracer-0.12.1 lib/v8/conversion/method.rb
therubyracer-discourse-0.12.0 lib/v8/conversion/method.rb
therubyracer-0.12.0 lib/v8/conversion/method.rb
therubyracer-0.11.4 lib/v8/conversion/method.rb
therubyracer-0.11.3 lib/v8/conversion/method.rb
therubyracer-0.11.2 lib/v8/conversion/method.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/therubyracer-0.11.0/lib/v8/conversion/method.rb
therubyracer-0.11.1 lib/v8/conversion/method.rb
therubyracer-0.11.1beta1 lib/v8/conversion/method.rb
therubyracer-0.11.0 lib/v8/conversion/method.rb
therubyracer-0.11.0beta8-x86-freebsd-9 lib/v8/conversion/method.rb
therubyracer-0.11.0beta8-x86_64-linux lib/v8/conversion/method.rb