/external/chromium_org/v8/src/extensions/ |
statistics-extension.cc | 75 Isolate* isolate = reinterpret_cast<Isolate*>(args.GetIsolate()); 88 AddCounter(args.GetIsolate(), result, counters->name(), #name); 94 AddCounter(args.GetIsolate(), result, counters->count_of_##name(), \ 96 AddCounter(args.GetIsolate(), result, counters->size_of_##name(), \ 102 AddCounter(args.GetIsolate(), result, counters->count_of_CODE_TYPE_##name(), \ 104 AddCounter(args.GetIsolate(), result, counters->size_of_CODE_TYPE_##name(), \ 110 AddCounter(args.GetIsolate(), result, \ 113 AddCounter(args.GetIsolate(), result, \ 120 AddNumber(args.GetIsolate(), result, isolate->memory_allocator()->Size(), 122 AddNumber(args.GetIsolate(), result, heap->new_space()->Size() [all...] |
externalize-string-extension.cc | 78 args.GetIsolate()->ThrowException(v8::String::NewFromUtf8( 79 args.GetIsolate(), 88 args.GetIsolate()->ThrowException(v8::String::NewFromUtf8( 89 args.GetIsolate(), 97 args.GetIsolate()->ThrowException(v8::String::NewFromUtf8( 98 args.GetIsolate(), 109 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); 120 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); 126 args.GetIsolate()->ThrowException(v8::String::NewFromUtf8( 127 args.GetIsolate(), "externalizeString() failed.")) [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8CustomEventCustom.cpp | 57 v8::Handle<v8::Value> result = info.Holder()->GetHiddenValue(V8HiddenPropertyName::detail(info.GetIsolate())); 67 v8::Local<v8::Value> mainWorldDetail = getHiddenValueFromMainWorldWrapper(info.GetIsolate(), event, V8HiddenPropertyName::detail(info.GetIsolate())); 69 event->setSerializedDetail(SerializedScriptValue::createAndSwallowExceptions(mainWorldDetail, info.GetIsolate())); 74 v8SetReturnValue(info, cacheState(info.Holder(), result, info.GetIsolate())); 78 v8SetReturnValue(info, cacheState(info.Holder(), v8::Null(info.GetIsolate()), info.GetIsolate())); 94 info.Holder()->SetHiddenValue(V8HiddenPropertyName::detail(info.GetIsolate()), detailsArg); 95 if (isolatedWorldForIsolate(info.GetIsolate())) 96 event->setSerializedDetail(SerializedScriptValue::createAndSwallowExceptions(detailsArg, info.GetIsolate())); [all...] |
V8PopStateEventCustom.cpp | 51 v8::Handle<v8::Value> result = info.Holder()->GetHiddenValue(V8HiddenPropertyName::state(info.GetIsolate())); 64 v8::Local<v8::Value> mainWorldState = getHiddenValueFromMainWorldWrapper(info.GetIsolate(), event, V8HiddenPropertyName::state(info.GetIsolate())); 66 event->setSerializedState(SerializedScriptValue::createAndSwallowExceptions(mainWorldState, info.GetIsolate())); 71 result = v8::Null(info.GetIsolate()); 72 v8SetReturnValue(info, cacheState(info.Holder(), result, info.GetIsolate())); 85 v8::Handle<v8::Object> v8History = toV8(history, info.Holder(), info.GetIsolate()).As<v8::Object>(); 87 result = v8History->GetHiddenValue(V8HiddenPropertyName::state(info.GetIsolate())); 89 v8SetReturnValue(info, cacheState(info.Holder(), result, info.GetIsolate())); 93 result = event->serializedState()->deserialize(info.GetIsolate()); [all...] |
V8MessageEventCustom.cpp | 52 result = info.Holder()->GetHiddenValue(V8HiddenPropertyName::data(info.GetIsolate())); 57 v8::Local<v8::Value> mainWorldData = getHiddenValueFromMainWorldWrapper(info.GetIsolate(), event, V8HiddenPropertyName::data(info.GetIsolate())); 59 event->setSerializedData(SerializedScriptValue::createAndSwallowExceptions(mainWorldData, info.GetIsolate())); 62 result = event->dataAsSerializedScriptValue()->deserialize(info.GetIsolate()); 64 result = v8::Null(info.GetIsolate()); 72 result = serializedValue->deserialize(info.GetIsolate(), &ports); 74 result = v8::Null(info.GetIsolate()); 80 result = v8String(info.GetIsolate(), stringValue); 85 result = toV8(event->dataAsBlob(), info.Holder(), info.GetIsolate()); [all...] |
V8SQLResultSetRowListCustom.cpp | 42 throwError(v8SyntaxError, "Item index is required.", info.GetIsolate()); 47 throwTypeError("Item index must be a number.", info.GetIsolate()); 55 throwError(v8RangeError, "Item index is out of range.", info.GetIsolate()); 68 value = v8String(info.GetIsolate(), sqlValue.string()); 71 value = v8::Null(info.GetIsolate()); 74 value = v8::Number::New(info.GetIsolate(), sqlValue.number()); 80 item->Set(v8String(info.GetIsolate(), rowList->columnNames()[i]), value, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly));
|
V8DedicatedWorkerGlobalScopeCustom.cpp | 53 if (!extractTransferables(info[transferablesArgIndex], ports, arrayBuffers, notASequence, info.GetIsolate())) { 55 throwTypeError(ExceptionMessages::failedToExecute("postMessage", "WorkerGlobalScope", ExceptionMessages::notAnArrayTypeArgumentOrValue(transferablesArgIndex + 1)), info.GetIsolate()); 60 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &ports, &arrayBuffers, didThrow, info.GetIsolate()); 63 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
|
V8DocumentCustom.cpp | 64 ExceptionState exceptionState(ExceptionState::ExecutionContext, "evaluate", "Document", info.Holder(), info.GetIsolate()); 67 if (V8Node::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate()))) 71 RefPtr<XPathNSResolver> resolver = toXPathNSResolver(info[resolverArgumentIndex], info.GetIsolate()); 80 if (V8XPathResult::hasInstance(info[4], info.GetIsolate(), worldType(info.GetIsolate())))
|
V8HistoryCustom.cpp | 48 v8::Handle<v8::Value> value = info.Holder()->GetHiddenValue(V8HiddenPropertyName::state(info.GetIsolate())); 56 value = serialized ? serialized->deserialize(info.GetIsolate()) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate())); 57 info.Holder()->SetHiddenValue(V8HiddenPropertyName::state(info.GetIsolate()), value); 65 RefPtr<SerializedScriptValue> historyState = SerializedScriptValue::create(info[0], 0, 0, didThrow, info.GetIsolate()); 72 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); 75 info.Holder()->DeleteHiddenValue(V8HiddenPropertyName::state(info.GetIsolate())); 82 RefPtr<SerializedScriptValue> historyState = SerializedScriptValue::create(info[0], 0, 0, didThrow, info.GetIsolate()); 89 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); 92 info.Holder()->DeleteHiddenValue(V8HiddenPropertyName::state(info.GetIsolate())); [all...] |
V8CryptoCustom.cpp | 44 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getRandomValues", "Crypto", info.Holder(), info.GetIsolate()); 52 if (!V8ArrayBufferView::hasInstance(buffer, info.GetIsolate(), worldType(info.GetIsolate()))) {
|
V8MessageChannelCustom.cpp | 55 V8HiddenPropertyName::setNamedHiddenReference(wrapper, "port1", toV8(obj->port1(), info.Holder(), info.GetIsolate())); 56 V8HiddenPropertyName::setNamedHiddenReference(wrapper, "port2", toV8(obj->port2(), info.Holder(), info.GetIsolate())); 58 V8DOMWrapper::associateObjectWithWrapper<V8MessageChannel>(obj.release(), &wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent);
|
V8MessagePortCustom.cpp | 46 ExceptionState exceptionState(ExceptionState::ExecutionContext, "postMessage", "MessagePort", info.Holder(), info.GetIsolate()); 53 if (!extractTransferables(info[transferablesArgIndex], portArray, arrayBufferArray, notASequence, info.GetIsolate())) { 62 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &portArray, &arrayBufferArray, didThrow, info.GetIsolate());
|
V8WorkerCustom.cpp | 47 ExceptionState exceptionState(ExceptionState::ExecutionContext, "postMessage", "Worker", info.Holder(), info.GetIsolate()); 54 if (!extractTransferables(info[transferablesArgIndex], ports, arrayBuffers, notASequence, info.GetIsolate())) { 63 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0], &ports, &arrayBuffers, didThrow, info.GetIsolate());
|
V8SQLTransactionSyncCustom.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()); 91 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); 92 v8::Handle<v8::Value> result = toV8(transaction->executeSQL(statement, sqlValues, exceptionState), info.Holder(), info.GetIsolate());
|
V8WebGLRenderingContextCustom.cpp | 267 throwTypeError(ExceptionMessages::failedToExecute(method, "WebGLRenderingContext", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); 293 v8SetReturnValue(info, toV8Object(args, info.Holder(), info.GetIsolate())); 314 throwTypeError(ExceptionMessages::failedToExecute("getAttachedShaders", "WebGLRenderingContext", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); 319 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8WebGLProgram::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) { 320 throwUninformativeAndGenericTypeError(info.GetIsolate()); 323 WebGLProgram* program = V8WebGLProgram::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8WebGLProgram::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0; 330 v8::Local<v8::Array> array = v8::Array::New(info.GetIsolate(), shaders.size()); 332 array->Set(v8::Integer::New(ii, info.GetIsolate()), toV8(shaders[ii].get(), info.Holder(), info.GetIsolate())) [all...] |
V8BlobCustom.cpp | 42 ExceptionState exceptionState(ExceptionState::ConstructionContext, "Blob", info.Holder(), info.GetIsolate()); 54 if (toV8Sequence(info[sequenceArgumentIndex], length, info.GetIsolate()).IsEmpty()) { 69 if (!properties.parseBlobPropertyBag(info[1], "Blob", exceptionState, info.GetIsolate())) { 77 if (!V8BlobCustomHelpers::processBlobParts(blobParts, length, properties.endings(), blobBuilder, info.GetIsolate()))
|
V8ErrorEventCustom.cpp | 49 v8::Handle<v8::Value> error = info.Holder()->GetHiddenValue(V8HiddenPropertyName::error(info.GetIsolate()));
|
/external/chromium_org/third_party/WebKit/Source/core/testing/v8/ |
WebCoreTestSupport.cpp | 45 v8::HandleScope scope(context->GetIsolate()); 48 context->Global()->Set(v8::String::NewFromUtf8(context->GetIsolate(), Internals::internalsId), toV8(Internals::create(toDocument(scriptContext)), v8::Handle<v8::Object>(), context->GetIsolate())); 58 v8::HandleScope scope(context->GetIsolate());
|
/external/chromium_org/v8/test/cctest/ |
test-object-observe.cc | 50 Isolate* GetIsolate() const { return isolate_; } 60 HandleScope scope(isolate.GetIsolate()); 61 LocalContext context1(isolate.GetIsolate()); 74 LocalContext context2(isolate.GetIsolate()); 75 context2->Global()->Set(String::NewFromUtf8(isolate.GetIsolate(), "obj"), 82 LocalContext context3(isolate.GetIsolate()); 83 context3->Global()->Set(String::NewFromUtf8(isolate.GetIsolate(), "obj"), 89 LocalContext context4(isolate.GetIsolate()); 91 String::NewFromUtf8(isolate.GetIsolate(), "observer"), observer); 92 context4->Global()->Set(String::NewFromUtf8(isolate.GetIsolate(), "fun1") [all...] |
test-cpu-profiler.cc | 354 v8::HandleScope scope(env->GetIsolate()); 355 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); 358 v8::Local<v8::String> name1 = v8::String::NewFromUtf8(env->GetIsolate(), "1"); 369 v8::Local<v8::String> name2 = v8::String::NewFromUtf8(env->GetIsolate(), "2"); 378 v8::Local<v8::String> name3 = v8::String::NewFromUtf8(env->GetIsolate(), "3"); 401 v8::HandleScope scope(env->GetIsolate()); 402 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); 405 v8::String::NewFromUtf8(env->GetIsolate(), "test"); 416 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); 418 v8::String::NewFromUtf8(env->GetIsolate(), "my_profile") [all...] |
/external/chromium_org/chrome/renderer/extensions/ |
scoped_persistent.h | 31 handle_.Reset(GetIsolate(handle), handle); 47 return v8::Local<T>::New(GetIsolate(handle_), handle_); 64 static v8::Isolate* GetIsolate(v8::Handle<U> object_handle) { 68 return GetIsolate(object_handle->CreationContext()); 71 static v8::Isolate* GetIsolate(v8::Handle<v8::Context> context_handle) { 73 return context_handle->GetIsolate(); 76 static v8::Isolate* GetIsolate(
|
file_browser_handler_custom_bindings.cc | 39 v8::String::NewFromUtf8(args.GetIsolate(), "fileSystemName")))); 42 v8::String::NewFromUtf8(args.GetIsolate(), "fileSystemRoot")))); 45 v8::String::NewFromUtf8(args.GetIsolate(), "fileFullPath")))); 47 args.GetIsolate(), "fileIsDirectory"))->ToBoolean()->Value();
|
/external/chromium_org/v8/src/ |
d8-posix.cc | 248 args.GetIsolate()->ThrowException(String::NewFromUtf8( 249 args.GetIsolate(), "system: Argument 4 must be a number")); 257 args.GetIsolate()->ThrowException(String::NewFromUtf8( 258 args.GetIsolate(), "system: Argument 3 must be a number")); 460 HandleScope scope(args.GetIsolate()); 467 args.GetIsolate()->ThrowException(String::NewFromUtf8( 468 args.GetIsolate(), "system: Argument 2 must be an array")); 473 command_args = Array::New(args.GetIsolate(), 0); 476 args.GetIsolate()->ThrowException(String::NewFromUtf8( 477 args.GetIsolate(), "Too many arguments to system()")) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/ |
MediaQueryListListener.cpp | 38 callback.appendArgument(ScriptValue(toV8(query, v8::Handle<v8::Object>(), context->GetIsolate()), context->GetIsolate()));
|
/external/chromium_org/third_party/WebKit/Source/bindings/tests/results/ |
V8TestInterfaceConstructor.cpp | 77 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), info.GetIsolate()); 85 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.release(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Dependent); 91 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), info.GetIsolate()); 94 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmpty::hasInstance(info[2], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[2])) : 0); 95 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[3], info.GetIsolate())); 97 throwTypeError(ExceptionMessages::failedToConstruct("TestInterfaceConstructor", "parameter 4 ('dictionaryArg') is not an object."), info.GetIsolate()); 100 V8TRYCATCH_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(info[4], 5, info.GetIsolate())); 101 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[5], info.GetIsolate())); 103 throwTypeError(ExceptionMessages::failedToConstruct("TestInterfaceConstructor", "parameter 6 ('optionalDictionaryArg') is not an object."), info.GetIsolate()); [all...] |