Searched refs:GetIsolate (Results 26 - 50 of 304) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/custom/
H A DV8WindowCustom.cpp85 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
107 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->frame(), exceptionState))
124 action = adoptPtr(new ScheduledAction(scriptState, v8::Handle<v8::Function>::Cast(function), paramCount, params.get(), info.GetIsolate()));
131 action = adoptPtr(new ScheduledAction(scriptState, functionString, KURL(), info.GetIsolate()));
154 ExceptionState exceptionState(ExceptionState::GetterContext, "event", "Window", info.Holder(), info.GetIsolate());
155 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), frame, exceptionState)) {
162 v8::Local<v8::Context> context = toV8Context(frame, DOMWrapperWorld::current(info.GetIsolate()));
166 v8::Handle<v8::Value> jsEvent = V8HiddenValue::getHiddenValue(info.GetIsolate(), context->Global(), V8HiddenValue::event(info.GetIsolate()));
175 ExceptionState exceptionState(ExceptionState::SetterContext, "event", "Window", info.Holder(), info.GetIsolate());
[all...]
H A DV8WebGLRenderingContextCustom.cpp276 v8SetReturnValue(info, toV8Object(args, info.Holder(), info.GetIsolate()));
286 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getBufferParameter", "WebGLRenderingContext", info.Holder(), info.GetIsolate());
292 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getExtension", "WebGLRenderingContext", info.Holder(), info.GetIsolate());
301 v8SetReturnValue(info, toV8Object(extension.get(), info.Holder(), info.GetIsolate()));
306 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getFramebufferAttachmentParameter", "WebGLRenderingContext", info.Holder(), info.GetIsolate());
325 v8SetReturnValue(info, toV8Object(args, info.Holder(), info.GetIsolate()));
330 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getParameter", "WebGLRenderingContext", info.Holder(), info.GetIsolate());
345 v8SetReturnValue(info, toV8Object(args, info.Holder(), info.GetIsolate()));
350 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getProgramParameter", "WebGLRenderingContext", info.Holder(), info.GetIsolate());
363 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8WebGLProgram::hasInstance(info[0], info.GetIsolate())) {
[all...]
H A DV8FileReaderCustom.cpp48 v8SetReturnValueStringOrNull(info, impl->stringResult(), info.GetIsolate());
H A DV8BlobCustom.cpp41 ExceptionState exceptionState(ExceptionState::ConstructionContext, "Blob", info.Holder(), info.GetIsolate());
63 if (!properties.parseBlobPropertyBag(info[1], "Blob", exceptionState, info.GetIsolate())) {
71 if (!V8BlobCustomHelpers::processBlobParts(v8::Local<v8::Object>::Cast(info[0]), properties.normalizeLineEndingsToNative(), *blobData, info.GetIsolate()))
H A DV8FileCustom.cpp41 ExceptionState exceptionState(ExceptionState::ConstructionContext, "File", info.Holder(), info.GetIsolate());
66 if (!properties.parseBlobPropertyBag(info[2], "File", exceptionState, info.GetIsolate())) {
77 if (!V8BlobCustomHelpers::processBlobParts(blobParts, properties.normalizeLineEndingsToNative(), *blobData, info.GetIsolate()))
H A DV8HTMLOptionsCollectionCustom.cpp48 ExceptionState exceptionState(ExceptionState::ExecutionContext, "add", "HTMLOptionsCollection", info.Holder(), info.GetIsolate());
49 if (!V8HTMLOptionElement::hasInstance(info[0], info.GetIsolate())) {
74 ExceptionState exceptionState(ExceptionState::SetterContext, "length", "HTMLOptionsCollection", info.Holder(), info.GetIsolate());
H A DV8MutationObserverCustom.cpp47 ExceptionState exceptionState(ExceptionState::ConstructionContext, "MutationObserver", info.Holder(), info.GetIsolate());
63 OwnPtr<MutationCallback> callback = V8MutationCallback::create(v8::Handle<v8::Function>::Cast(arg), wrapper, ScriptState::current(info.GetIsolate()));
66 V8DOMWrapper::associateObjectWithWrapper<V8MutationObserver>(observer.release(), &wrapperTypeInfo, wrapper, info.GetIsolate());
H A DV8XMLHttpRequestCustom.cpp58 ExecutionContext* context = currentExecutionContext(info.GetIsolate());
62 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate());
70 V8DOMWrapper::associateObjectWithWrapper<V8XMLHttpRequest>(xmlHttpRequest.release(), &wrapperTypeInfo, wrapper, info.GetIsolate());
77 ExceptionState exceptionState(ExceptionState::GetterContext, "responseText", "XMLHttpRequest", info.Holder(), info.GetIsolate());
82 v8SetReturnValueString(info, emptyString(), info.GetIsolate());
100 v8::Isolate* isolate = info.GetIsolate();
120 ExceptionState exceptionState(ExceptionState::GetterContext, "response", "XMLHttpRequest", info.Holder(), info.GetIsolate());
169 ExceptionState exceptionState(ExceptionState::ExecutionContext, "open", "XMLHttpRequest", info.Holder(), info.GetIsolate());
182 ExecutionContext* context = currentExecutionContext(info.GetIsolate());
219 ExceptionState exceptionState(ExceptionState::ExecutionContext, "send", "XMLHttpRequest", info.Holder(), info.GetIsolate());
[all...]
H A DV8HTMLAllCollectionCustom.cpp53 return toV8(namedItems.at(0).release(), info.Holder(), info.GetIsolate());
66 return toV8(PassRefPtrWillBeRawPtr<NodeList>(StaticElementList::adopt(namedItems)), info.Holder(), info.GetIsolate());
74 TOSTRING_DEFAULT(V8StringResource<>, name, argument, v8::Undefined(info.GetIsolate()));
78 return v8::Undefined(info.GetIsolate());
84 return toV8(result.release(), info.Holder(), info.GetIsolate());
/external/chromium_org/v8/samples/
H A Dshell.cc149 v8::HandleScope handle_scope(args.GetIsolate());
169 args.GetIsolate()->ThrowException(
170 v8::String::NewFromUtf8(args.GetIsolate(), "Bad parameters"));
175 args.GetIsolate()->ThrowException(
176 v8::String::NewFromUtf8(args.GetIsolate(), "Error loading file"));
179 v8::Handle<v8::String> source = ReadFile(args.GetIsolate(), *file);
181 args.GetIsolate()->ThrowException(
182 v8::String::NewFromUtf8(args.GetIsolate(), "Error loading file"));
194 v8::HandleScope handle_scope(args.GetIsolate());
197 args.GetIsolate()
[all...]
H A Dprocess.cc132 Isolate* GetIsolate() { return isolate_; } function in class:JsHttpRequestProcessor
150 HandleScope scope(args.GetIsolate());
161 HandleScope handle_scope(GetIsolate());
165 Handle<ObjectTemplate> global = ObjectTemplate::New(GetIsolate());
166 global->Set(String::NewFromUtf8(GetIsolate(), "log"),
167 FunctionTemplate::New(GetIsolate(), LogCallback));
174 v8::Handle<v8::Context> context = Context::New(GetIsolate(), NULL, global);
175 context_.Reset(GetIsolate(), context);
191 Handle<String> process_name = String::NewFromUtf8(GetIsolate(), "Process");
203 process_.Reset(GetIsolate(), process_fu
[all...]
/external/chromium_org/v8/test/cctest/
H A Dtest-debug.cc101 inline v8::Isolate* GetIsolate() { return context_->GetIsolate(); } function in class:DebugLocalContext
105 reinterpret_cast<v8::internal::Isolate*>(context_->GetIsolate());
135 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), source))
138 v8::String::NewFromUtf8(env->GetIsolate(), function_name)));
165 v8::internal::Isolate* isolate = fun->GetIsolate();
983 v8::HandleScope scope(env->GetIsolate());
1066 v8::HandleScope scope(env->GetIsolate());
1103 v8::HandleScope scope(env->GetIsolate());
1106 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(),
[all...]
H A Dtest-thread-termination.cc43 CHECK(!v8::V8::IsExecutionTerminating(args.GetIsolate()));
44 v8::V8::TerminateExecution(args.GetIsolate());
54 CHECK(!v8::V8::IsExecutionTerminating(args.GetIsolate()));
56 args.GetIsolate(), "try { doloop(); fail(); } catch(e) { fail(); }");
59 CHECK(v8::V8::IsExecutionTerminating(args.GetIsolate()));
65 CHECK(!v8::V8::IsExecutionTerminating(args.GetIsolate()));
66 v8::Script::Compile(v8::String::NewFromUtf8(args.GetIsolate(),
84 CHECK(v8::V8::IsExecutionTerminating(args.GetIsolate()));
90 CHECK(!v8::V8::IsExecutionTerminating(args.GetIsolate()));
91 v8::Script::Compile(v8::String::NewFromUtf8(args.GetIsolate(),
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/modules/v8/custom/
H A DV8CryptoCustom.cpp40 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getRandomValues", "Crypto", info.Holder(), info.GetIsolate());
48 if (!V8ArrayBufferView::hasInstance(buffer, info.GetIsolate())) {
H A DV8SQLTransactionCustom.cpp49 ExceptionState exceptionState(ExceptionState::ExecutionContext, "executeSql", "SQLTransaction", info.Holder(), info.GetIsolate());
69 TONATIVE_VOID(v8::Local<v8::Value>, length, sqlArgsObject->Get(v8AtomicString(info.GetIsolate(), "length")));
77 v8::Handle<v8::Integer> key = v8::Integer::New(info.GetIsolate(), i);
100 callback = V8SQLStatementCallback::create(v8::Handle<v8::Function>::Cast(info[2]), ScriptState::current(info.GetIsolate()));
112 errorCallback = V8SQLStatementErrorCallback::create(v8::Handle<v8::Function>::Cast(info[3]), ScriptState::current(info.GetIsolate()));
/external/chromium_org/third_party/skia/experimental/SkV8Example/
H A DPath2D.cpp74 args.GetIsolate()->ThrowException(
76 args.GetIsolate(), "Error: 2 arguments required."));
87 args.GetIsolate()->ThrowException(
89 args.GetIsolate(), "Error: 2 arguments required."));
100 args.GetIsolate()->ThrowException(
102 args.GetIsolate(), "Error: 4 arguments required."));
119 args.GetIsolate()->ThrowException(
121 args.GetIsolate(), "Error: 6 arguments required."));
141 args.GetIsolate()->ThrowException(
143 args.GetIsolate(), "Erro
[all...]
H A DBaseContext.cpp33 args.GetIsolate()->ThrowException(
35 args.GetIsolate(), "Error: 4 arguments required."));
80 args.GetIsolate()->ThrowException(
82 args.GetIsolate(), "Error: 1 arguments required."));
97 args.GetIsolate()->ThrowException(
99 args.GetIsolate(), "Error: 2 arguments required."));
125 args.GetIsolate()->ThrowException(
127 args.GetIsolate(), "Error: 1 arguments required."));
147 args.GetIsolate()->ThrowException(
149 args.GetIsolate(), "Erro
[all...]
/external/chromium_org/v8/src/extensions/
H A Dgc-extension.cc21 args.GetIsolate()->RequestGarbageCollectionForTesting(
/external/skia/experimental/SkV8Example/
H A DPath2D.cpp74 args.GetIsolate()->ThrowException(
76 args.GetIsolate(), "Error: 2 arguments required."));
87 args.GetIsolate()->ThrowException(
89 args.GetIsolate(), "Error: 2 arguments required."));
100 args.GetIsolate()->ThrowException(
102 args.GetIsolate(), "Error: 4 arguments required."));
119 args.GetIsolate()->ThrowException(
121 args.GetIsolate(), "Error: 6 arguments required."));
141 args.GetIsolate()->ThrowException(
143 args.GetIsolate(), "Erro
[all...]
H A DBaseContext.cpp33 args.GetIsolate()->ThrowException(
35 args.GetIsolate(), "Error: 4 arguments required."));
80 args.GetIsolate()->ThrowException(
82 args.GetIsolate(), "Error: 1 arguments required."));
97 args.GetIsolate()->ThrowException(
99 args.GetIsolate(), "Error: 2 arguments required."));
125 args.GetIsolate()->ThrowException(
127 args.GetIsolate(), "Error: 1 arguments required."));
147 args.GetIsolate()->ThrowException(
149 args.GetIsolate(), "Erro
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/tests/results/core/
H A DV8TestInterfaceCheckSecurity.cpp66 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecurityLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate());
110 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecurityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate());
141 ExceptionState exceptionState(ExceptionState::SetterContext, *attributeName, "TestInterfaceCheckSecurity", info.Holder(), info.GetIsolate());
142 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->frame(), exceptionState)) {
169 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethod", "TestInterfaceCheckSecurity", info.Holder(), info.GetIsolate());
171 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->frame(), exceptionState)) {
201 V8PerIsolateData* data = V8PerIsolateData::from(info.GetIsolate());
202 v8::Handle<v8::FunctionTemplate> privateTemplate = data->domTemplate(&domTemplateKey, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityVoidMethodMethodCallback, v8Undefined(), v8::Signature::New(info.GetIsolate(), V8TestInterfaceCheckSecurity::domTemplate(info.GetIsolate())), 0);
204 v8::Handle<v8::Object> holder = V8TestInterfaceCheckSecurity::findInstanceInPrototypeChain(info.This(), info.GetIsolate());
[all...]
H A DV8TestInterfaceConstructor2.cpp45 impl->associateWithWrapper(&V8TestInterfaceConstructor2::wrapperTypeInfo, wrapper, info.GetIsolate());
54 V8ThrowException::throwTypeError(ExceptionMessages::failedToConstruct("TestInterfaceConstructor2", "parameter 1 ('dictionaryArg') is not an object."), info.GetIsolate());
57 dictionaryArg = Dictionary(info[0], info.GetIsolate());
61 impl->associateWithWrapper(&V8TestInterfaceConstructor2::wrapperTypeInfo, wrapper, info.GetIsolate());
67 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor2", info.Holder(), info.GetIsolate());
70 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceSequenceArg, toImplArray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState);
74 impl->associateWithWrapper(&V8TestInterfaceConstructor2::wrapperTypeInfo, wrapper, info.GetIsolate());
80 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor2", info.Holder(), info.GetIsolate());
88 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[0]);
101 defaultUndefinedOptionalDictionaryArg = Dictionary(info[4], info.GetIsolate());
[all...]
H A DV8TestInterfaceEventConstructor.cpp45 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolate());
59 v8SetReturnValueString(info, impl->initializedByEventConstructorReadonlyStringAttribute(), info.GetIsolate());
118 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate());
120 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"), wrapper);
139 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate());
141 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttribute"), wrapper);
157 v8SetReturnValue(info, v8Array(impl->initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttribute(), info.Holder(), info.GetIsolate()));
174 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate());
[all...]
H A DV8TestInterfaceWillBeGarbageCollected.cpp54 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbageCollected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
68 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("func", "TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()), info.GetIsolate());
74 arg = V8TestInterfaceWillBeGarbageCollected::toImplWithTypeCheck(info.GetIsolate(), info[0]);
89 V8ThrowException::throwException(createMinimumArityTypeErrorForConstructor("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()), info.GetIsolate());
98 impl->associateWithWrapper(&V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo, wrapper, info.GetIsolate());
117 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("TestInterface"), info.GetIsolate());
121 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExistingObject) {
126 V8ThrowException::throwException(createMinimumArityTypeErrorForConstructor("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate()), inf
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/templates/
H A Dmethods.cpp8 ExceptionState exceptionState(ExceptionState::ExecutionContext, "{{method.name}}", "{{interface_name}}", info.Holder(), info.GetIsolate());
26 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), window->frame(), exceptionState)) {
34 if (!BindingSecurity::shouldAllowAccessToFrame(info.GetIsolate(), impl->frame(), exceptionState)) {
40 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->{{method.name}}(exceptionState), exceptionState)) {
117 if (info.Length() > {{argument.index}} && {% if argument.is_nullable %}!isUndefinedOrNull(info[{{argument.index}}]) && {% endif %}!V8{{argument.idl_type}}::hasInstance(info[{{argument.index}}], info.GetIsolate())) {
127 {{argument.name}} = V8EventListenerList::getEventListener(ScriptState::current(info.GetIsolate()), info[{{argument.index}}], false, ListenerFindOnly);
129 {{argument.name}} = V8EventListenerList::getEventListener(ScriptState::current(info.GetIsolate()), info[{{argument.index}}], false, ListenerFindOrCreate);
142 {{argument.name}} = V8{{argument.idl_type}}::create(v8::Handle<v8::Function>::Cast(info[{{argument.index}}]), ScriptState::current(info.GetIsolate()));
153 {{argument.name}} = {% if argument.is_nullable %}info[{{argument.index}}]->IsNull() ? nullptr : {% endif %}V8{{argument.idl_type}}::create(v8::Handle<v8::Function>::Cast(info[{{argument.index}}]), ScriptState::current(info.GetIsolate()));
158 if (!V8{{argument.idl_type}}::hasInstance(info[i], info.GetIsolate())) {
[all...]

Completed in 6285 milliseconds

1234567891011>>