/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8NodeCustom.cpp | 69 ExceptionState exceptionState(ExceptionState::ExecutionContext, "insertBefore", "Node", info.Holder(), info.GetIsolate()); 70 Node* newChild = V8Node::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0; 71 Node* refChild = V8Node::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0; 85 ExceptionState exceptionState(ExceptionState::ExecutionContext, "replaceChild", "Node", info.Holder(), info.GetIsolate()); 86 Node* newChild = V8Node::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0; 87 Node* oldChild = V8Node::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0 [all...] |
V8PannerNodeCustom.cpp | 43 throwTypeError("Illegal panningModel", info.GetIsolate()); 55 throwTypeError("Illegal panningModel", info.GetIsolate()); 67 throwTypeError("Illegal distanceModel", info.GetIsolate()); 79 throwTypeError("Illegal distanceModel", info.GetIsolate());
|
V8SQLTransactionCustom.cpp | 50 setDOMException(SyntaxError, info.GetIsolate()); 60 setDOMException(TypeMismatchError, info.GetIsolate()); 66 V8TRYCATCH_VOID(v8::Local<v8::Value>, length, sqlArgsObject->Get(v8AtomicString(info.GetIsolate(), "length"))); 74 v8::Handle<v8::Integer> key = v8::Integer::New(i, info.GetIsolate()); 96 setDOMException(TypeMismatchError, info.GetIsolate()); 105 setDOMException(TypeMismatchError, info.GetIsolate()); 111 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
V8SVGLengthCustom.cpp | 47 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); 59 setDOMException(NoModificationAllowedError, info.GetIsolate()); 64 throwUninformativeAndGenericTypeError(info.GetIsolate()); 69 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); 79 ExceptionState exceptionState(ExceptionState::ExecutionContext, "convertToSpecifiedUnits", "SVGLength", info.Holder(), info.GetIsolate());
|
V8BiquadFilterNodeCustom.cpp | 43 throwTypeError("Illegal BiquadFilterNode type", info.GetIsolate()); 55 throwTypeError("Illegal BiquadFilterNode type", info.GetIsolate());
|
V8HTMLFormControlsCollectionCustom.cpp | 52 return toV8(namedItems.at(0).release(), info.Holder(), info.GetIsolate()); 54 return toV8(collection->ownerNode()->radioNodeList(name).get(), info.Holder(), info.GetIsolate());
|
V8OscillatorNodeCustom.cpp | 43 throwTypeError("Illegal OscillatorNode type", info.GetIsolate()); 55 throwTypeError("Illegal OscillatorNode type", info.GetIsolate());
|
V8FileReaderCustom.cpp | 48 v8SetReturnValueStringOrNull(info, imp->stringResult(), info.GetIsolate());
|
V8FormDataCustom.cpp | 45 throwError(v8SyntaxError, "Not enough arguments", info.GetIsolate()); 53 if (V8Blob::hasInstance(arg, info.GetIsolate(), worldType(info.GetIsolate()))) {
|
V8MutationObserverCustom.cpp | 46 ExceptionState exceptionState(ExceptionState::ConstructionContext, "MutationObserver", info.Holder(), info.GetIsolate()); 63 OwnPtr<MutationCallback> callback = V8MutationCallback::create(v8::Handle<v8::Function>::Cast(arg), context, wrapper, info.GetIsolate()); 66 V8DOMWrapper::associateObjectWithWrapper<V8MutationObserver>(observer.release(), &wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent);
|
V8FileCustom.cpp | 43 ExceptionState exceptionState(ExceptionState::ConstructionContext, "File", info.Holder(), info.GetIsolate()); 62 if (toV8Sequence(info[sequenceArgumentIndex], length, info.GetIsolate()).IsEmpty()) { 79 if (!properties.parseBlobPropertyBag(info[2], "File", exceptionState, info.GetIsolate())) { 89 if (!V8BlobCustomHelpers::processBlobParts(blobParts, length, properties.endings(), blobBuilder, info.GetIsolate())) 110 v8SetReturnValue(info, v8::Date::New(info.GetIsolate(), lastModified));
|
V8HTMLAllCollectionCustom.cpp | 53 return toV8(namedItems.at(0).release(), info.Holder(), info.GetIsolate()); 57 return toV8(NamedNodesCollection::create(namedItems), info.Holder(), info.GetIsolate()); 65 V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, name, argument, v8::Undefined(info.GetIsolate())); 69 return v8::Undefined(info.GetIsolate()); 75 return toV8(result.release(), info.Holder(), info.GetIsolate());
|
V8WindowCustom.cpp | 125 action = adoptPtr(new ScheduledAction(imp->frame()->script().currentWorldContext(), v8::Handle<v8::Function>::Cast(function), paramCount, params.get(), info.GetIsolate())); 132 action = adoptPtr(new ScheduledAction(imp->frame()->script().currentWorldContext(), functionString, KURL(), info.GetIsolate())); 154 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8Window::domTemplate(info.GetIsolate(), worldTypeInMainThread(info.GetIsolate()))); 159 ExceptionState exceptionState(ExceptionState::GetterContext, "event", "Window", info.Holder(), info.GetIsolate()); 170 v8::Handle<v8::String> eventSymbol = V8HiddenPropertyName::event(info.GetIsolate()); 179 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8Window::domTemplate(info.GetIsolate(), worldTypeInMainThread(info.GetIsolate()))); 184 ExceptionState exceptionState(ExceptionState::SetterContext, "event", "Window", info.Holder(), info.GetIsolate()); 195 v8::Handle<v8::String> eventSymbol = V8HiddenPropertyName::event(info.GetIsolate()); [all...] |
V8XMLHttpRequestCustom.cpp | 61 if (DOMWrapperWorld* world = isolatedWorldForEnteredContext(info.GetIsolate())) 68 V8DOMWrapper::associateObjectWithWrapper<V8XMLHttpRequest>(xmlHttpRequest.release(), &wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent); 75 ExceptionState exceptionState(ExceptionState::GetterContext, "responseText", "XMLHttpRequest", info.Holder(), info.GetIsolate()); 80 v8SetReturnValueString(info, emptyString(), info.GetIsolate()); 98 v8::Isolate* isolate = info.GetIsolate(); 121 ExceptionState exceptionState(ExceptionState::GetterContext, "response", "XMLHttpRequest", info.Holder(), info.GetIsolate()); 163 ExceptionState exceptionState(ExceptionState::ExecutionContext, "open", "XMLHttpRequest", info.Holder(), info.GetIsolate()); 213 ExceptionState exceptionState(ExceptionState::ExecutionContext, "send", "XMLHttpRequest", info.Holder(), info.GetIsolate()); 218 WrapperWorldType currentWorldType = worldType(info.GetIsolate()); 221 } else if (isDocumentType(arg, info.GetIsolate(), currentWorldType)) [all...] |
/external/chromium_org/chrome/renderer/extensions/ |
module_system.cc | 154 v8::HandleScope scope(GetIsolate()); 157 v8::String::NewFromUtf8(GetIsolate(), kModulesField)); 159 v8::String::NewFromUtf8(GetIsolate(), kModuleSystem)); 187 v8::EscapableHandleScope handle_scope(GetIsolate()); 189 v8::String::NewFromUtf8(GetIsolate(), module_name.c_str()))); 200 v8::EscapableHandleScope handle_scope(GetIsolate()); 209 v8::String::NewFromUtf8(GetIsolate(), kModulesField)); 211 Warn(GetIsolate(), "Extension view no longer exists"); 212 return v8::Undefined(GetIsolate()); 224 return v8::Undefined(GetIsolate()); [all...] |
blob_native_handler.cc | 19 v8::String::NewFromUtf8(args.GetIsolate(), blob.uuid().utf8().data()));
|
/external/chromium_org/v8/samples/ |
shell.cc | 128 v8::HandleScope handle_scope(args.GetIsolate()); 148 args.GetIsolate()->ThrowException( 149 v8::String::NewFromUtf8(args.GetIsolate(), "Bad parameters")); 154 args.GetIsolate()->ThrowException( 155 v8::String::NewFromUtf8(args.GetIsolate(), "Error loading file")); 158 v8::Handle<v8::String> source = ReadFile(args.GetIsolate(), *file); 160 args.GetIsolate()->ThrowException( 161 v8::String::NewFromUtf8(args.GetIsolate(), "Error loading file")); 173 v8::HandleScope handle_scope(args.GetIsolate()); 176 args.GetIsolate()->ThrowException [all...] |
process.cc | 130 Isolate* GetIsolate() { return isolate_; } 148 HandleScope scope(args.GetIsolate()); 159 HandleScope handle_scope(GetIsolate()); 164 global->Set(String::NewFromUtf8(GetIsolate(), "log"), 172 v8::Handle<v8::Context> context = Context::New(GetIsolate(), NULL, global); 173 context_.Reset(GetIsolate(), context); 189 Handle<String> process_name = String::NewFromUtf8(GetIsolate(), "Process"); 201 process_.Reset(GetIsolate(), process_fun); 209 HandleScope handle_scope(GetIsolate()); 239 HandleScope handle_scope(GetIsolate()); [all...] |
/external/chromium_org/v8/test/cctest/ |
test-debug.cc | 157 inline v8::Isolate* GetIsolate() { return context_->GetIsolate(); } 161 reinterpret_cast<v8::internal::Isolate*>(context_->GetIsolate()); 192 v8::Script::Compile(v8::String::NewFromUtf8(env->GetIsolate(), source)) 195 v8::String::NewFromUtf8(env->GetIsolate(), function_name))); 223 v8::internal::Isolate* isolate = fun->GetIsolate(); [all...] |
test-thread-termination.cc | 42 CHECK(!v8::V8::IsExecutionTerminating(args.GetIsolate())); 43 v8::V8::TerminateExecution(args.GetIsolate()); 53 CHECK(!v8::V8::IsExecutionTerminating(args.GetIsolate())); 55 args.GetIsolate(), "try { doloop(); fail(); } catch(e) { fail(); }"); 58 CHECK(v8::V8::IsExecutionTerminating(args.GetIsolate())); 64 CHECK(!v8::V8::IsExecutionTerminating(args.GetIsolate())); 65 v8::Script::Compile(v8::String::NewFromUtf8(args.GetIsolate(), 83 CHECK(v8::V8::IsExecutionTerminating(args.GetIsolate())); 89 CHECK(!v8::V8::IsExecutionTerminating(args.GetIsolate())); 90 v8::Script::Compile(v8::String::NewFromUtf8(args.GetIsolate(), [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/tests/results/ |
V8TestInterfaceConstructor2.cpp | 80 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor2>(impl.release(), &V8TestInterfaceConstructor2::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent); 86 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 89 V8TRYCATCH_VOID(Dictionary, defaultUndefinedOptionalDictionaryArg, Dictionary(info[3], info.GetIsolate())); 91 throwTypeError(ExceptionMessages::failedToConstruct("TestInterfaceConstructor2", "parameter 4 ('defaultUndefinedOptionalDictionaryArg') is not an object."), info.GetIsolate()); 97 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor2>(impl.release(), &V8TestInterfaceConstructor2::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent); 107 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())))) || ((info.Length() == 2) && (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())))) || ((info.Length() == 3) && (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), w (…) [all...] |
V8TestInterfaceCheckSecurity.cpp | 166 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethod", "TestInterfaceCheckSecurity", info.Holder(), info.GetIsolate()); 199 WrapperWorldType currentWorldType = worldType(info.GetIsolate()); 200 V8PerIsolateData* data = V8PerIsolateData::from(info.GetIsolate()); 201 v8::Handle<v8::FunctionTemplate> privateTemplate = data->privateTemplate(currentWorldType, &privateTemplateUniqueKey, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityVoidMethodMethodCallback, v8Undefined(), v8::Signature::New(info.GetIsolate(), V8PerIsolateData::from(info.GetIsolate())->rawDOMTemplate(&V8TestInterfaceCheckSecurity::wrapperTypeInfo, currentWorldType)), 0); 203 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8TestInterfaceCheckSecurity::domTemplate(info.GetIsolate(), currentWorldType)); 213 v8::Handle<v8::FunctionTemplate> sharedTemplate = data->privateTemplate(currentWorldType, &sharedTemplateUniqueKey, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityVoidMethodMethodCallback, v8Undefined(), v8::Signature::New(info.GetIsolate(), V8PerIsolateData::from(info.GetIsolate())->rawDOMTemplate(&V8TestInterfaceCheckSecurity::wrapperTypeInfo, currentWorldType)), 0); 218 v8::Local<v8::Value> hiddenValue = info.This()->GetHiddenValue(v8::String::NewFromUtf8(info.GetIsolate(), "doNotCheckSecurityVoidMethod", v8::String::kInternalizedString)); 251 WrapperWorldType currentWorldType = worldType(info.GetIsolate()); [all...] |
V8TestOverloadedConstructors.cpp | 81 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl.release(), &V8TestOverloadedConstructors::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent); 91 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl.release(), &V8TestOverloadedConstructors::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent); 97 V8TRYCATCH_VOID(Blob*, blob, V8Blob::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8Blob::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 101 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl.release(), &V8TestOverloadedConstructors::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent); 111 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl.release(), &V8TestOverloadedConstructors::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent); 117 if (((info.Length() == 1) && (V8ArrayBuffer::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))))) { 121 if (((info.Length() == 1) && (V8ArrayBufferView::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))))) { [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
V8NPObject.cpp | 73 WrapperWorldType currentWorldType = worldType(info.GetIsolate()); 75 if (V8HTMLAppletElement::hasInstance(info.Holder(), info.GetIsolate(), currentWorldType) || V8HTMLEmbedElement::hasInstance(info.Holder(), info.GetIsolate(), currentWorldType) 76 || V8HTMLObjectElement::hasInstance(info.Holder(), info.GetIsolate(), currentWorldType)) { 79 if (V8HTMLAppletElement::hasInstance(info.Holder(), info.GetIsolate(), currentWorldType)) 81 else if (V8HTMLEmbedElement::hasInstance(info.Holder(), info.GetIsolate(), currentWorldType)) 95 throwError(v8ReferenceError, "NPMethod called on non-NPObject", info.GetIsolate()); 104 throwError(v8ReferenceError, "NPObject deleted", info.GetIsolate()); 113 convertV8ObjectToNPVariant(info[i], npObject, &npArgs[i], info.GetIsolate()); 140 throwError(v8GeneralError, "Error calling method on NPObject.", info.GetIsolate()); [all...] |
ScriptState.cpp | 47 : m_context(context->GetIsolate(), context) 48 , m_isolate(context->GetIsolate()) 75 v8::Local<v8::Value> scriptStateWrapper = innerGlobal->GetHiddenValue(V8HiddenPropertyName::scriptState(context->GetIsolate())); 80 innerGlobal->SetHiddenValue(V8HiddenPropertyName::scriptState(context->GetIsolate()), v8::External::New(context->GetIsolate(), scriptState));
|