Searched refs:isolate (Results 26 - 50 of 1020) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
H A DV8ThrowException.cpp47 v8::Handle<v8::Value> V8ThrowException::createDOMException(int ec, const String& sanitizedMessage, const String& unsanitizedMessage, const v8::Handle<v8::Object>& creationContext, v8::Isolate* isolate) argument
55 return V8ThrowException::createGeneralError(sanitizedMessage, isolate);
57 return V8ThrowException::createTypeError(sanitizedMessage, isolate);
59 return V8ThrowException::createRangeError(sanitizedMessage, isolate);
61 return V8ThrowException::createSyntaxError(sanitizedMessage, isolate);
63 return V8ThrowException::createReferenceError(sanitizedMessage, isolate);
66 v8::Handle<v8::Value> exception = toV8(domException, creationContext, isolate);
72 v8::Handle<v8::Value> error = v8::Exception::Error(v8String(isolate, domException->message()));
75 exception->ToObject()->SetAccessor(v8AtomicString(isolate, "stack"), domExceptionStackGetter, domExceptionStackSetter, error);
80 v8::Handle<v8::Value> V8ThrowException::throwDOMException(int ec, const String& sanitizedMessage, const String& unsanitizedMessage, const v8::Handle<v8::Object>& creationContext, v8::Isolate* isolate) argument
90 createGeneralError(const String& message, v8::Isolate* isolate) argument
95 throwGeneralError(const String& message, v8::Isolate* isolate) argument
101 createTypeError(const String& message, v8::Isolate* isolate) argument
106 throwTypeError(const String& message, v8::Isolate* isolate) argument
112 createRangeError(const String& message, v8::Isolate* isolate) argument
117 throwRangeError(const String& message, v8::Isolate* isolate) argument
123 createSyntaxError(const String& message, v8::Isolate* isolate) argument
128 throwSyntaxError(const String& message, v8::Isolate* isolate) argument
134 createReferenceError(const String& message, v8::Isolate* isolate) argument
139 throwReferenceError(const String& message, v8::Isolate* isolate) argument
145 throwException(v8::Handle<v8::Value> exception, v8::Isolate* isolate) argument
[all...]
H A DSharedPersistent.h45 static PassRefPtr<SharedPersistent<T> > create(v8::Handle<T> value, v8::Isolate* isolate) argument
47 return adoptRef(new SharedPersistent<T>(value, isolate));
50 v8::Local<T> newLocal(v8::Isolate* isolate) const
52 return m_value.newLocal(isolate);
63 explicit SharedPersistent(v8::Handle<T> value, v8::Isolate* isolate) : m_value(isolate, value) { } argument
H A DScriptFunctionCall.cpp56 v8::Isolate* isolate = m_scriptState->isolate(); local
58 m_arguments.append(ScriptValue(m_scriptState.get(), v8String(isolate, argument)));
63 v8::Isolate* isolate = m_scriptState->isolate(); local
65 m_arguments.append(ScriptValue(m_scriptState.get(), v8String(isolate, argument)));
70 v8::Isolate* isolate = m_scriptState->isolate(); local
72 m_arguments.append(ScriptValue(m_scriptState.get(), v8::Number::New(isolate, argument)));
77 v8::Isolate* isolate local
84 v8::Isolate* isolate = m_scriptState->isolate(); local
91 v8::Isolate* isolate = m_scriptState->isolate(); local
98 v8::Isolate* isolate = m_scriptState->isolate(); local
105 v8::Isolate* isolate = m_scriptState->isolate(); local
111 v8::Isolate* isolate = m_scriptState->isolate(); local
125 v8::Isolate* isolate = m_scriptState->isolate(); local
[all...]
H A DV8MutationCallback.cpp41 , m_callback(scriptState->isolate(), callback)
44 V8HiddenValue::setHiddenValue(scriptState->isolate(), owner, V8HiddenValue::callback(scriptState->isolate()), callback);
53 v8::Isolate* isolate = m_scriptState->isolate();
61 v8::Handle<v8::Value> observerHandle = toV8(observer, m_scriptState->context()->Global(), isolate);
72 v8::Handle<v8::Value> argv[] = { v8Array(mutations, m_scriptState->context()->Global(), isolate), observerHandle };
76 ScriptController::callFunction(executionContext(), m_callback.newLocal(isolate), thisObject, WTF_ARRAY_LENGTH(argv), argv, isolate); local
H A DV8AbstractEventListener.cpp50 , m_isolate(scriptState->isolate())
56 V8AbstractEventListener::V8AbstractEventListener(bool isAttribute, v8::Isolate* isolate) argument
60 , m_isolate(isolate)
70 V8EventListenerList::clearWrapper(m_listener.newLocal(isolate()), m_isAttribute, isolate());
95 v8::Handle<v8::Value> jsEvent = toV8(event, scriptState()->context()->Global(), isolate());
98 invokeEventHandler(event, v8::Local<v8::Value>::New(isolate(), jsEvent));
103 m_listener.set(isolate(), listener);
121 v8::Local<v8::Value> savedEvent = V8HiddenValue::getHiddenValue(isolate(), scriptState()->context()->Global(), V8HiddenValue::event(isolate()));
[all...]
H A DCustomElementConstructorBuilder.cpp61 ASSERT(m_scriptState->context() == m_scriptState->isolate()->GetCurrentContext());
85 m_prototype = v8::Object::New(m_scriptState->isolate());
153 v8::Isolate* isolate = m_scriptState->isolate(); local
154 v8::Handle<v8::Function> created = retrieveCallback(isolate, "createdCallback");
155 v8::Handle<v8::Function> attached = retrieveCallback(isolate, "attachedCallback");
156 v8::Handle<v8::Function> detached = retrieveCallback(isolate, "detachedCallback");
157 v8::Handle<v8::Function> attributeChanged = retrieveCallback(isolate, "attributeChangedCallback");
163 v8::Handle<v8::Function> CustomElementConstructorBuilder::retrieveCallback(v8::Isolate* isolate, const char* name) argument
165 v8::Handle<v8::Value> value = m_prototype->Get(v8String(isolate, nam
177 v8::Isolate* isolate = m_scriptState->isolate(); local
268 v8::Isolate* isolate = info.GetIsolate(); local
[all...]
H A DV8HiddenValue.cpp14 v8::Handle<v8::String> V8HiddenValue::name(v8::Isolate* isolate) \
16 V8HiddenValue* hiddenValue = V8PerIsolateData::from(isolate)->hiddenValue(); \
18 hiddenValue->m_##name.set(isolate, v8AtomicString(isolate, #name)); \
20 return hiddenValue->m_##name.newLocal(isolate); \
25 v8::Local<v8::Value> V8HiddenValue::getHiddenValue(v8::Isolate* isolate, v8::Handle<v8::Object> object, v8::Handle<v8::String> key) argument
30 bool V8HiddenValue::setHiddenValue(v8::Isolate* isolate, v8::Handle<v8::Object> object, v8::Handle<v8::String> key, v8::Handle<v8::Value> value) argument
35 bool V8HiddenValue::deleteHiddenValue(v8::Isolate* isolate, v8::Handle<v8::Object> object, v8::Handle<v8::String> key) argument
40 v8::Local<v8::Value> V8HiddenValue::getHiddenValueFromMainWorldWrapper(v8::Isolate* isolate, ScriptWrappable* wrappable, v8::Handle<v8::String> key) argument
42 v8::Local<v8::Object> wrapper = wrappable->newLocalWrapper(isolate);
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/modules/v8/
H A DIDBBindingUtilitiesTest.cpp39 IDBKey* checkKeyFromValueAndKeyPathInternal(v8::Isolate* isolate, const ScriptValue& value, const String& keyPath) argument
44 return createIDBKeyFromScriptValueAndKeyPath(isolate, value, idbKeyPath);
47 void checkKeyPathNullValue(v8::Isolate* isolate, const ScriptValue& value, const String& keyPath) argument
49 ASSERT_FALSE(checkKeyFromValueAndKeyPathInternal(isolate, value, keyPath));
57 return injectV8KeyIntoV8Value(scriptState->isolate(), keyValue.v8Value(), value.v8Value(), idbKeyPath);
64 IDBKey* extractedKey = checkKeyFromValueAndKeyPathInternal(scriptState->isolate(), value, keyPath);
73 void checkKeyPathStringValue(v8::Isolate* isolate, const ScriptValue& value, const String& keyPath, const String& expected) argument
75 IDBKey* idbKey = checkKeyFromValueAndKeyPathInternal(isolate, value, keyPath);
81 void checkKeyPathNumberValue(v8::Isolate* isolate, const ScriptValue& value, const String& keyPath, int expected) argument
83 IDBKey* idbKey = checkKeyFromValueAndKeyPathInternal(isolate, valu
104 v8::Isolate* isolate = v8::Isolate::GetCurrent(); local
116 v8::Isolate* isolate = v8::Isolate::GetCurrent(); local
128 v8::Isolate* isolate = v8::Isolate::GetCurrent(); local
145 v8::Isolate* isolate = v8::Isolate::GetCurrent(); local
158 v8::Isolate* isolate = v8::Isolate::GetCurrent(); local
[all...]
/external/chromium_org/v8/src/
H A Dcode-factory.h35 static Callable LoadIC(Isolate* isolate, ContextualMode mode);
36 static Callable KeyedLoadIC(Isolate* isolate);
37 static Callable StoreIC(Isolate* isolate, StrictMode mode);
38 static Callable KeyedStoreIC(Isolate* isolate, StrictMode mode);
40 static Callable CompareIC(Isolate* isolate, Token::Value op);
42 static Callable BinaryOpIC(Isolate* isolate, Token::Value op,
48 Isolate* isolate, ToBooleanStub::ResultMode mode,
51 static Callable ToNumber(Isolate* isolate);
53 static Callable StringAdd(Isolate* isolate, StringAddFlags flags,
56 static Callable CallFunction(Isolate* isolate, in
[all...]
H A Dtype-feedback-vector.h11 #include "src/isolate.h"
25 static Handle<TypeFeedbackVector> Copy(Isolate* isolate,
29 static inline Handle<Object> UninitializedSentinel(Isolate* isolate);
32 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate);
35 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate);
38 static inline Handle<Object> GenericSentinel(Isolate* isolate);
43 Isolate* isolate, ElementsKind elements_kind);
H A Dhandles.cc13 int HandleScope::NumberOfHandles(Isolate* isolate) { argument
14 HandleScopeImplementer* impl = isolate->handle_scope_implementer();
18 (isolate->handle_scope_data()->next - impl->blocks()->last()));
22 Object** HandleScope::Extend(Isolate* isolate) { argument
23 HandleScopeData* current = isolate->handle_scope_data();
35 HandleScopeImplementer* impl = isolate->handle_scope_implementer();
61 void HandleScope::DeleteExtensions(Isolate* isolate) { argument
62 HandleScopeData* current = isolate->handle_scope_data();
63 isolate->handle_scope_implementer()->DeleteExtensions(current->limit);
77 Address HandleScope::current_level_address(Isolate* isolate) { argument
82 current_next_address(Isolate* isolate) argument
87 current_limit_address(Isolate* isolate) argument
92 DeferredHandleScope(Isolate* isolate) argument
[all...]
/external/chromium_org/gin/
H A Dconverter_unittest.cc34 HandleScope handle_scope(instance_->isolate());
36 EXPECT_TRUE(Converter<bool>::ToV8(instance_->isolate(), true)->StrictEquals(
37 Boolean::New(instance_->isolate(), true)));
38 EXPECT_TRUE(Converter<bool>::ToV8(instance_->isolate(), false)->StrictEquals(
39 Boolean::New(instance_->isolate(), false)));
45 { Boolean::New(instance_->isolate(), false).As<Value>(), false },
46 { Boolean::New(instance_->isolate(), true).As<Value>(), true },
47 { Number::New(instance_->isolate(), 0).As<Value>(), false },
48 { Number::New(instance_->isolate(), 1).As<Value>(), true },
49 { Number::New(instance_->isolate(),
[all...]
H A Dconverter.cc23 Handle<Value> Converter<bool>::ToV8(Isolate* isolate, bool val) { argument
24 return Boolean::New(isolate, val).As<Value>();
27 bool Converter<bool>::FromV8(Isolate* isolate, Handle<Value> val, bool* out) { argument
32 Handle<Value> Converter<int32_t>::ToV8(Isolate* isolate, int32_t val) { argument
33 return Integer::New(isolate, val).As<Value>();
36 bool Converter<int32_t>::FromV8(Isolate* isolate, Handle<Value> val, argument
44 Handle<Value> Converter<uint32_t>::ToV8(Isolate* isolate, uint32_t val) { argument
45 return Integer::NewFromUnsigned(isolate, val).As<Value>();
48 bool Converter<uint32_t>::FromV8(Isolate* isolate, Handle<Value> val, argument
56 Handle<Value> Converter<int64_t>::ToV8(Isolate* isolate, int64_ argument
60 FromV8(Isolate* isolate, Handle<Value> val, int64_t* out) argument
70 ToV8(Isolate* isolate, uint64_t val) argument
74 FromV8(Isolate* isolate, Handle<Value> val, uint64_t* out) argument
82 ToV8(Isolate* isolate, float val) argument
86 FromV8(Isolate* isolate, Handle<Value> val, float* out) argument
94 ToV8(Isolate* isolate, double val) argument
98 FromV8(Isolate* isolate, Handle<Value> val, double* out) argument
106 ToV8( Isolate* isolate, const base::StringPiece& val) argument
112 ToV8(Isolate* isolate, const std::string& val) argument
117 FromV8(Isolate* isolate, Handle<Value> val, std::string* out) argument
128 FromV8(Isolate* isolate, Handle<Value> val, Handle<Function>* out) argument
136 ToV8(Isolate* isolate, Handle<Object> val) argument
141 FromV8(Isolate* isolate, Handle<Value> val, Handle<Object>* out) argument
149 ToV8(Isolate* isolate, Handle<ArrayBuffer> val) argument
154 FromV8(Isolate* isolate, Handle<Value> val, Handle<ArrayBuffer>* out) argument
163 ToV8(Isolate* isolate, Handle<External> val) argument
168 FromV8(Isolate* isolate, v8::Handle<Value> val, Handle<External>* out) argument
177 ToV8(Isolate* isolate, Handle<Value> val) argument
182 FromV8(Isolate* isolate, Handle<Value> val, Handle<Value>* out) argument
188 StringToSymbol(v8::Isolate* isolate, const base::StringPiece& val) argument
[all...]
H A Dobject_template_builder.cc15 WrappableBase* WrappableFromV8(v8::Isolate* isolate, argument
33 NamedPropertyInterceptor* NamedInterceptorFromV8(v8::Isolate* isolate, argument
35 WrappableBase* base = WrappableFromV8(isolate, val);
38 return PerIsolateData::From(isolate)->GetNamedPropertyInterceptor(base);
42 v8::Isolate* isolate,
44 WrappableBase* base = WrappableFromV8(isolate, val);
47 return PerIsolateData::From(isolate)->GetIndexedPropertyInterceptor(base);
52 v8::Isolate* isolate = info.GetIsolate(); local
54 NamedInterceptorFromV8(isolate, info.Holder());
58 ConvertFromV8(isolate, propert
41 IndexedInterceptorFromV8( v8::Isolate* isolate, v8::Handle<v8::Value> val) argument
65 v8::Isolate* isolate = info.GetIsolate(); local
78 v8::Isolate* isolate = info.GetIsolate(); local
91 v8::Isolate* isolate = info.GetIsolate(); local
102 v8::Isolate* isolate = info.GetIsolate(); local
113 v8::Isolate* isolate = info.GetIsolate(); local
124 v8::Isolate* isolate = info.GetIsolate(); local
135 ObjectTemplateBuilder(v8::Isolate* isolate) argument
[all...]
H A Dcontext_holder.cc12 ContextHolder::ContextHolder(v8::Isolate* isolate) argument
13 : isolate_(isolate) {
H A Dinterceptor.h23 NamedPropertyInterceptor(v8::Isolate* isolate, WrappableBase* base);
26 virtual v8::Local<v8::Value> GetNamedProperty(v8::Isolate* isolate,
29 virtual bool SetNamedProperty(v8::Isolate* isolate,
33 v8::Isolate* isolate);
44 IndexedPropertyInterceptor(v8::Isolate* isolate, WrappableBase* base);
47 virtual v8::Local<v8::Value> GetIndexedProperty(v8::Isolate* isolate,
50 virtual bool SetIndexedProperty(v8::Isolate* isolate,
54 v8::Isolate* isolate);
H A Drun_microtasks_observer.cc9 RunMicrotasksObserver::RunMicrotasksObserver(v8::Isolate* isolate) argument
10 : isolate_(isolate) {
/external/chromium_org/content/shell/renderer/
H A Dgc_controller.cc20 v8::Isolate* isolate = blink::mainThreadIsolate(); local
21 v8::HandleScope handle_scope(isolate);
29 gin::CreateHandle(isolate, new GCController());
33 global->Set(gin::StringToV8(isolate, "GCController"), controller.ToV8());
41 v8::Isolate* isolate) {
42 return gin::Wrappable<GCController>::GetObjectTemplateBuilder(isolate)
49 args.isolate()->RequestGarbageCollectionForTesting(
62 args.isolate()->RequestGarbageCollectionForTesting(
68 args.isolate()->RequestGarbageCollectionForTesting(
40 GetObjectTemplateBuilder( v8::Isolate* isolate) argument
/external/chromium_org/gin/test/
H A Dgc.cc26 v8::Local<v8::Value> GC::GetModule(v8::Isolate* isolate) { argument
27 PerIsolateData* data = PerIsolateData::From(isolate);
31 templ = ObjectTemplateBuilder(isolate)
34 base::Unretained(isolate)))
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebArrayBufferConverter.cpp40 v8::Handle<v8::Value> WebArrayBufferConverter::toV8Value(WebArrayBuffer* buffer, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) argument
44 return toV8(*buffer, creationContext, isolate);
47 WebArrayBuffer* WebArrayBufferConverter::createFromV8Value(v8::Handle<v8::Value> value, v8::Isolate* isolate) argument
49 if (!V8ArrayBuffer::hasInstance(value, isolate))
/external/chromium_org/v8/test/cctest/
H A Dtest-thread-termination.cc106 v8::Isolate* isolate,
109 v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(isolate);
110 global->Set(v8::String::NewFromUtf8(isolate, "terminate"),
111 v8::FunctionTemplate::New(isolate, terminate));
112 global->Set(v8::String::NewFromUtf8(isolate, "fail"),
113 v8::FunctionTemplate::New(isolate, Fail));
114 global->Set(v8::String::NewFromUtf8(isolate, "loop"),
115 v8::FunctionTemplate::New(isolate, Loop));
116 global->Set(v8::String::NewFromUtf8(isolate, "doloop"),
117 v8::FunctionTemplate::New(isolate, doloo
105 CreateGlobalTemplate( v8::Isolate* isolate, v8::FunctionCallback terminate, v8::FunctionCallback doloop) argument
164 TerminatorThread(i::Isolate* isolate) argument
246 v8::Isolate* isolate = CcTest::isolate(); local
304 v8::Isolate* isolate = CcTest::isolate(); local
350 v8::Isolate* isolate = CcTest::isolate(); local
370 v8::Isolate* isolate = info.GetIsolate(); local
385 v8::Isolate* isolate = CcTest::isolate(); local
411 CounterCallback(v8::Isolate* isolate, void* data) argument
417 v8::Isolate* isolate = CcTest::isolate(); local
465 v8::Isolate* isolate = CcTest::isolate(); local
[all...]
H A Dtest-object-observe.cc37 HandleScope scope(CcTest::isolate());
38 LocalContext context1(CcTest::isolate());
55 LocalContext context2(CcTest::isolate());
57 context2->Global()->Set(String::NewFromUtf8(CcTest::isolate(), "obj"),
64 LocalContext context3(CcTest::isolate());
66 context3->Global()->Set(String::NewFromUtf8(CcTest::isolate(), "obj"),
72 LocalContext context4(CcTest::isolate());
75 String::NewFromUtf8(CcTest::isolate(), "observer"), observer);
76 context4->Global()->Set(String::NewFromUtf8(CcTest::isolate(), "fun1"),
78 context4->Global()->Set(String::NewFromUtf8(CcTest::isolate(), "fun
228 ExpectRecords(v8::Isolate* isolate, Handle<Value> records, const RecordExpectation expectations[], int num) argument
423 v8::Isolate* isolate = CcTest::isolate(); local
431 v8::Isolate* isolate = CcTest::isolate(); local
448 v8::Isolate* isolate = CcTest::isolate(); local
457 v8::Isolate* isolate = CcTest::isolate(); local
473 v8::Isolate* isolate = CcTest::isolate(); local
482 v8::Isolate* isolate = CcTest::isolate(); local
497 v8::Isolate* isolate = CcTest::isolate(); local
506 v8::Isolate* isolate = CcTest::isolate(); local
521 v8::Isolate* isolate = CcTest::isolate(); local
[all...]
/external/chromium_org/mojo/bindings/js/
H A Dwaiting_callback.cc15 v8::Handle<v8::String> GetHiddenPropertyName(v8::Isolate* isolate) { argument
16 return gin::StringToSymbol(isolate, "::mojo::js::WaitingCallback");
25 v8::Isolate* isolate,
30 isolate, new WaitingCallback(isolate, callback, handle_wrapper));
50 WaitingCallback::WaitingCallback(v8::Isolate* isolate, argument
55 v8::Handle<v8::Context> context = isolate->GetCurrentContext();
57 GetWrapper(isolate)->SetHiddenValue(GetHiddenPropertyName(isolate), callback);
78 v8::Isolate* isolate local
24 Create( v8::Isolate* isolate, v8::Handle<v8::Function> callback, gin::Handle<gin::HandleWrapper> handle_wrapper, MojoHandleSignals signals) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/tests/results/core/
H A DV8TestInterfaceDocument.cpp39 static void installV8TestInterfaceDocumentTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate) argument
44 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTemplate, "TestInterfaceDocument", V8Document::domTemplate(isolate), V8TestInterfaceDocument::internalFieldCount,
48 isolate);
53 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData::from(isolate)->toStringTemplate());
56 v8::Handle<v8::FunctionTemplate> V8TestInterfaceDocument::domTemplate(v8::Isolate* isolate) argument
58 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), installV8TestInterfaceDocumentTemplate);
61 bool V8TestInterfaceDocument::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) argument
63 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Value);
66 v8::Handle<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) argument
71 toImplWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) argument
107 toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) argument
[all...]
H A DV8TestDictionary.cpp20 TestDictionary* V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Handle<v8::Value> v8Value, ExceptionState& exceptionState) argument
27 Dictionary dictionary(v8Value, isolate);
166 v8::Handle<v8::Value> toV8(TestDictionary* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) argument
168 v8::Handle<v8::Object> v8Object = v8::Object::New(isolate);
170 v8Object->Set(v8String(isolate, "booleanMember"), v8Boolean(impl->booleanMember(), isolate));
173 v8Object->Set(v8String(isolate, "doubleOrNullMember"), v8::Number::New(isolate, impl->doubleOrNullMember()));
175 v8Object->Set(v8String(isolate, "doubleOrNullMember"), v8::Null(isolate));
[all...]

Completed in 700 milliseconds

1234567891011>>