Sha256: 6da367503b4721e6f13752067647e9941e1427ecbf47724ee8626c5f0ba7fe67

Contents?: true

Size: 940 Bytes

Versions: 76

Compression:

Stored size: 940 Bytes

Contents

#include "rr.h"

using namespace v8;

namespace {

  VALUE IsDead(VALUE self) {
    return rr_v82rb(V8::IsDead());
  }

  VALUE AdjustAmountOfExternalAllocatedMemory(VALUE self, VALUE bytes) {
    V8::AdjustAmountOfExternalAllocatedMemory(NUM2INT(bytes));
    return Qnil;
  }

   VALUE IdleNotification(VALUE self) {
     return rr_v82rb(V8::IdleNotification());
   }

  VALUE SetFlagsFromString(VALUE self, VALUE string) {
    V8::SetFlagsFromString(RSTRING_PTR(string), RSTRING_LEN(string));
    return Qnil;
  }

}


void rr_init_v8_v8() {
  VALUE V8Module = rr_define_module("V8");
  rr_define_singleton_method(V8Module, "IsDead", IsDead, 0);
  rr_define_singleton_method(V8Module, "AdjustAmountOfExternalAllocatedMemory", AdjustAmountOfExternalAllocatedMemory, 1);
  rr_define_singleton_method(V8Module, "IdleNotification", IdleNotification, 0);
  rr_define_singleton_method(V8Module, "SetFlagsFromString", SetFlagsFromString, 1);
}

Version data entries

76 entries across 76 versions & 4 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.7.4 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.7.3 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.7.2 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.7.1 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.7.0 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.6.9 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.6.8 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.6.7 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.6.6 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.6.5 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.6.4 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.6.3 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.6.2 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.6.1 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.6.0 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.5.17 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.5.16 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.5.15 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp
classiccms-0.5.14 vendor/bundle/gems/therubyracer-0.10.1/ext/v8/v8_v8.cpp