| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 84c0be46c901a64bad6c9d859057028c84b7e264..792e4886f8abacd9aeeaa288df313b95423e3aa6 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -372,6 +372,13 @@ void V8::SetFatalErrorHandler(FatalErrorCallback that) {
|
| }
|
|
|
|
|
| +void V8::SetAllowCodeGenerationFromStringsCallback(
|
| + AllowCodeGenerationFromStringsCallback callback) {
|
| + i::Isolate* isolate = EnterIsolateIfNeeded();
|
| + isolate->set_allow_code_gen_callback(callback);
|
| +}
|
| +
|
| +
|
| #ifdef DEBUG
|
| void ImplementationUtilities::ZapHandleRange(i::Object** begin,
|
| i::Object** end) {
|
| @@ -3918,6 +3925,20 @@ void Context::ReattachGlobal(Handle<Object> global_object) {
|
| }
|
|
|
|
|
| +void Context::AllowCodeGenerationFromStrings(bool allow) {
|
| + i::Isolate* isolate = i::Isolate::Current();
|
| + if (IsDeadCheck(isolate, "v8::Context::AllowCodeGenerationFromStrings()")) {
|
| + return;
|
| + }
|
| + ENTER_V8(isolate);
|
| + i::Object** ctx = reinterpret_cast<i::Object**>(this);
|
| + i::Handle<i::Context> context =
|
| + i::Handle<i::Context>::cast(i::Handle<i::Object>(ctx));
|
| + context->set_allow_code_gen_from_strings(
|
| + allow ? isolate->heap()->true_value() : isolate->heap()->false_value());
|
| +}
|
| +
|
| +
|
| void V8::SetWrapperClassId(i::Object** global_handle, uint16_t class_id) {
|
| i::GlobalHandles::SetWrapperClassId(global_handle, class_id);
|
| }
|
|
|