/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/custom/ |
H A D | V8WindowCustom.cpp | 85 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 D | V8WebGLRenderingContextCustom.cpp | 276 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 D | V8FileReaderCustom.cpp | 48 v8SetReturnValueStringOrNull(info, impl->stringResult(), info.GetIsolate());
|
H A D | V8BlobCustom.cpp | 41 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 D | V8FileCustom.cpp | 41 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 D | V8HTMLOptionsCollectionCustom.cpp | 48 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 D | V8MutationObserverCustom.cpp | 47 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 D | V8XMLHttpRequestCustom.cpp | 58 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 D | V8HTMLAllCollectionCustom.cpp | 53 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 D | shell.cc | 149 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 D | process.cc | 132 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 D | test-debug.cc | 101 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 D | test-thread-termination.cc | 43 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 D | V8CryptoCustom.cpp | 40 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getRandomValues", "Crypto", info.Holder(), info.GetIsolate()); 48 if (!V8ArrayBufferView::hasInstance(buffer, info.GetIsolate())) {
|
H A D | V8SQLTransactionCustom.cpp | 49 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 D | Path2D.cpp | 74 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 D | BaseContext.cpp | 33 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 D | gc-extension.cc | 21 args.GetIsolate()->RequestGarbageCollectionForTesting(
|
/external/skia/experimental/SkV8Example/ |
H A D | Path2D.cpp | 74 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 D | BaseContext.cpp | 33 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 D | V8TestInterfaceCheckSecurity.cpp | 66 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 D | V8TestInterfaceConstructor2.cpp | 45 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 D | V8TestInterfaceEventConstructor.cpp | 45 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 D | V8TestInterfaceWillBeGarbageCollected.cpp | 54 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 D | methods.cpp | 8 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...] |