Home
last modified time | relevance | path

Searched refs:v8 (Results 1 – 25 of 2762) sorted by relevance

12345678910>>...111

/external/v8/src/inspector/
Dv8-console.h20 class V8Console : public v8::debug::ConsoleDelegate {
22 v8::Local<v8::Object> createCommandLineAPI(v8::Local<v8::Context> context,
24 void installMemoryGetter(v8::Local<v8::Context> context,
25 v8::Local<v8::Object> console);
29 CommandLineAPIScope(v8::Local<v8::Context>,
30 v8::Local<v8::Object> commandLineAPI,
31 v8::Local<v8::Object> global);
36 v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&);
37 static void accessorSetterCallback(v8::Local<v8::Name>,
38 v8::Local<v8::Value>,
[all …]
Dv8-injected-script-host.cc22 void setFunctionProperty(v8::Local<v8::Context> context, in setFunctionProperty()
23 v8::Local<v8::Object> obj, const char* name, in setFunctionProperty()
24 v8::FunctionCallback callback, in setFunctionProperty()
25 v8::Local<v8::External> external) { in setFunctionProperty()
26 v8::Local<v8::String> funcName = in setFunctionProperty()
28 v8::Local<v8::Function> func; in setFunctionProperty()
29 if (!v8::Function::New(context, callback, external, 0, in setFunctionProperty()
30 v8::ConstructorBehavior::kThrow) in setFunctionProperty()
38 const v8::FunctionCallbackInfo<v8::Value>& info) { in unwrapInspector()
42 static_cast<V8InspectorImpl*>(info.Data().As<v8::External>()->Value()); in unwrapInspector()
[all …]
Dv8-console.cc27 v8::Isolate* isolate, const v8::debug::ConsoleContext& consoleContext) { in consoleContextToString()
35 ConsoleHelper(const v8::debug::ConsoleCallArguments& info, in ConsoleHelper()
36 const v8::debug::ConsoleContext& consoleContext, in ConsoleHelper()
65 std::vector<v8::Local<v8::Value>> arguments; in reportCall()
72 std::vector<v8::Local<v8::Value>> arguments; in reportCallWithDefaultArgument()
79 std::vector<v8::Local<v8::Value>> arguments(1, in reportCallWithArgument()
85 const std::vector<v8::Local<v8::Value>>& arguments) { in reportCall()
101 std::vector<v8::Local<v8::Value>> arguments(1, in reportDeprecatedCall()
108 if (m_info[0]->IsBoolean()) return m_info[0].As<v8::Boolean>()->Value(); in firstArgToBoolean()
117 v8::Local<v8::String> titleValue; in firstArgToString()
[all …]
Dv8-debugger.cc27 v8::MaybeLocal<v8::Array> collectionsEntries(v8::Local<v8::Context> context, in collectionsEntries()
28 v8::Local<v8::Value> value) { in collectionsEntries()
29 v8::Isolate* isolate = context->GetIsolate(); in collectionsEntries()
30 v8::Local<v8::Array> entries; in collectionsEntries()
33 !value.As<v8::Object>()->PreviewEntries(&isKeyValue).ToLocal(&entries)) { in collectionsEntries()
34 return v8::MaybeLocal<v8::Array>(); in collectionsEntries()
37 v8::Local<v8::Array> wrappedEntries = v8::Array::New(isolate); in collectionsEntries()
39 if (!wrappedEntries->SetPrototype(context, v8::Null(isolate)) in collectionsEntries()
41 return v8::MaybeLocal<v8::Array>(); in collectionsEntries()
43 v8::Local<v8::Value> item; in collectionsEntries()
[all …]
Dv8-internal-value-type.cc13 v8::Local<v8::Private> internalSubtypePrivate(v8::Isolate* isolate) { in internalSubtypePrivate()
14 return v8::Private::ForApi( in internalSubtypePrivate()
19 v8::Local<v8::String> subtypeForInternalType(v8::Isolate* isolate, in subtypeForInternalType()
36 bool markAsInternal(v8::Local<v8::Context> context, in markAsInternal()
37 v8::Local<v8::Object> object, V8InternalValueType type) { in markAsInternal()
38 v8::Isolate* isolate = context->GetIsolate(); in markAsInternal()
39 v8::Local<v8::Private> privateValue = internalSubtypePrivate(isolate); in markAsInternal()
40 v8::Local<v8::String> subtype = subtypeForInternalType(isolate, type); in markAsInternal()
44 bool markArrayEntriesAsInternal(v8::Local<v8::Context> context, in markArrayEntriesAsInternal()
45 v8::Local<v8::Array> array, in markArrayEntriesAsInternal()
[all …]
Dinjected-script.h71 static InjectedScript* fromInjectedScriptHost(v8::Isolate* isolate,
72 v8::Local<v8::Object>);
77 v8::Local<v8::Object>, const String16& groupName, bool ownProperties,
85 v8::Local<v8::Value>, const String16& groupName, bool forceValueType,
89 v8::Local<v8::Value> table, v8::Local<v8::Value> columns) const;
92 v8::MaybeLocal<v8::Value> value,
97 Response findObject(const RemoteObjectId&, v8::Local<v8::Value>*) const;
102 v8::Local<v8::Value>* result);
105 const v8::TryCatch&, const String16& groupName, bool generatePreview,
108 v8::MaybeLocal<v8::Value> maybeResultValue, const v8::TryCatch&,
[all …]
Dv8-function-call.cc43 v8::Local<v8::Context> context, in V8FunctionCall()
44 v8::Local<v8::Value> value, const String16& name) in V8FunctionCall()
50 void V8FunctionCall::appendArgument(v8::Local<v8::Value> value) { in appendArgument()
59 m_arguments.push_back(v8::Number::New(m_context->GetIsolate(), argument)); in appendArgument()
63 m_arguments.push_back(argument ? v8::True(m_context->GetIsolate()) in appendArgument()
64 : v8::False(m_context->GetIsolate())); in appendArgument()
67 v8::Local<v8::Value> V8FunctionCall::call(bool& hadException, in call()
69 v8::TryCatch tryCatch(m_context->GetIsolate()); in call()
72 v8::Local<v8::Value> result = callWithoutExceptionHandling(); in call()
77 v8::Local<v8::Value> V8FunctionCall::callWithoutExceptionHandling() { in callWithoutExceptionHandling()
[all …]
Dv8-debugger.h39 class V8Debugger : public v8::debug::DebugDelegate,
40 public v8::debug::AsyncEventDelegate {
42 V8Debugger(v8::Isolate*, V8InspectorImpl*);
46 v8::Isolate* isolate() const { return m_isolate; } in isolate()
50 v8::debug::ExceptionBreakState getPauseOnExceptionsState();
51 void setPauseOnExceptionsState(v8::debug::ExceptionBreakState);
93 std::shared_ptr<StackFrame> symbolize(v8::Local<v8::StackFrame> v8Frame);
95 std::unique_ptr<V8StackTraceImpl> createStackTrace(v8::Local<v8::StackTrace>);
98 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>,
99 v8::Local<v8::Value>);
[all …]
Dv8-value-utils.cc11 protocol::Response toProtocolValue(v8::Local<v8::Context> context, in toProtocolValue()
12 v8::Local<v8::Value> value, int maxDepth, in toProtocolValue()
28 protocol::FundamentalValue::create(value.As<v8::Boolean>()->Value()); in toProtocolValue()
32 double doubleValue = value.As<v8::Number>()->Value(); in toProtocolValue()
43 toProtocolString(context->GetIsolate(), value.As<v8::String>())); in toProtocolValue()
47 v8::Local<v8::Array> array = value.As<v8::Array>(); in toProtocolValue()
52 v8::Local<v8::Value> value; in toProtocolValue()
66 v8::Local<v8::Object> object = v8::Local<v8::Object>::Cast(value); in toProtocolValue()
67 v8::Local<v8::Array> propertyNames; in toProtocolValue()
72 v8::Local<v8::Value> name; in toProtocolValue()
[all …]
/external/pdfium/fxjs/
Dcjs_v8.cpp14 CJS_V8::CJS_V8(v8::Isolate* isolate) : m_isolate(isolate) {} in CJS_V8()
20 v8::Local<v8::Value> CJS_V8::GetObjectProperty( in GetObjectProperty()
21 v8::Local<v8::Object> pObj, in GetObjectProperty()
24 return v8::Local<v8::Value>(); in GetObjectProperty()
25 v8::Local<v8::Value> val; in GetObjectProperty()
29 return v8::Local<v8::Value>(); in GetObjectProperty()
34 v8::Local<v8::Object> pObj) { in GetObjectPropertyNames()
38 v8::Local<v8::Array> val; in GetObjectPropertyNames()
39 v8::Local<v8::Context> context = m_isolate->GetCurrentContext(); in GetObjectPropertyNames()
51 void CJS_V8::PutObjectProperty(v8::Local<v8::Object> pObj, in PutObjectProperty()
[all …]
Dcjs_v8.h26 explicit CJS_V8(v8::Isolate* pIsolate);
29 v8::Isolate* GetIsolate() const { return m_isolate; } in GetIsolate()
31 v8::Local<v8::Context> NewLocalContext();
32 v8::Local<v8::Context> GetPersistentContext();
34 v8::Local<v8::Value> NewNull();
35 v8::Local<v8::Value> NewUndefined();
36 v8::Local<v8::Array> NewArray();
37 v8::Local<v8::Number> NewNumber(int number);
38 v8::Local<v8::Number> NewNumber(double number);
39 v8::Local<v8::Number> NewNumber(float number);
[all …]
Dcfxjse_value.cpp56 v8::Isolate* pIsolate = v8::Isolate::GetCurrent(); in FXJSE_ThrowMessage()
60 v8::Local<v8::String> hMessage = v8::String::NewFromUtf8( in FXJSE_ThrowMessage()
61 pIsolate, utf8Message.unterminated_c_str(), v8::String::kNormalString, in FXJSE_ThrowMessage()
63 v8::Local<v8::Value> hError = v8::Exception::Error(hMessage); in FXJSE_ThrowMessage()
67 CFXJSE_Value::CFXJSE_Value(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} in CFXJSE_Value()
75 v8::Local<v8::Value> pValue = v8::Local<v8::Value>::New(m_pIsolate, m_hValue); in ToHostObject()
81 return FXJSE_RetrieveObjectBinding(pValue.As<v8::Object>(), lpClass); in ToHostObject()
87 v8::Local<v8::FunctionTemplate> hClass = in SetObject()
88 v8::Local<v8::FunctionTemplate>::New(m_pIsolate, pClass->m_hTemplate); in SetObject()
89 v8::Local<v8::Object> hObject = hClass->InstanceTemplate()->NewInstance(); in SetObject()
[all …]
Dcjs_publicmethods.h17 explicit CJS_PublicMethods(v8::Local<v8::Object> pObject);
31 const std::vector<v8::Local<v8::Value>>& params);
34 const std::vector<v8::Local<v8::Value>>& params);
37 const std::vector<v8::Local<v8::Value>>& params);
40 const std::vector<v8::Local<v8::Value>>& params);
43 const std::vector<v8::Local<v8::Value>>& params);
46 const std::vector<v8::Local<v8::Value>>& params);
49 const std::vector<v8::Local<v8::Value>>& params);
52 const std::vector<v8::Local<v8::Value>>& params);
55 const std::vector<v8::Local<v8::Value>>& params);
[all …]
Dcfxjse_context.cpp46 v8::Local<v8::Object> CreateReturnValue(v8::Isolate* pIsolate, in CreateReturnValue()
47 v8::TryCatch& trycatch) { in CreateReturnValue()
48 v8::Local<v8::Object> hReturnValue = v8::Object::New(pIsolate); in CreateReturnValue()
50 v8::Local<v8::Value> hException = trycatch.Exception(); in CreateReturnValue()
51 v8::Local<v8::Message> hMessage = trycatch.Message(); in CreateReturnValue()
53 v8::Local<v8::Value> hValue; in CreateReturnValue()
54 hValue = hException.As<v8::Object>()->Get( in CreateReturnValue()
55 v8::String::NewFromUtf8(pIsolate, "name")); in CreateReturnValue()
59 hReturnValue->Set(0, v8::String::NewFromUtf8(pIsolate, "Error")); in CreateReturnValue()
61 hValue = hException.As<v8::Object>()->Get( in CreateReturnValue()
[all …]
Dfxjs_v8.cpp19 static v8::Isolate* g_isolate = nullptr;
22 static v8::Global<v8::ObjectTemplate>* g_DefaultGlobalObjectTemplate = nullptr;
31 v8::Local<v8::Object> pObj) { in SetInObject()
39 static CFXJS_PerObjectData* GetFromObject(v8::Local<v8::Object> pObj) { in GetFromObject()
55 static int MaxID(v8::Isolate* pIsolate) { in MaxID()
59 static CFXJS_ObjDefinition* ForID(v8::Isolate* pIsolate, int id) { in ForID()
64 CFXJS_ObjDefinition(v8::Isolate* isolate, in CFXJS_ObjDefinition()
74 v8::Isolate::Scope isolate_scope(isolate); in CFXJS_ObjDefinition()
75 v8::HandleScope handle_scope(isolate); in CFXJS_ObjDefinition()
77 v8::Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(isolate); in CFXJS_ObjDefinition()
[all …]
Dcjs_document.h27 CJS_Return set_ADBE(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
30 CJS_Return set_author(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
33 CJS_Return set_base_URL(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
36 CJS_Return set_bookmark_root(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
39 CJS_Return set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
42 CJS_Return set_collab(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
45 CJS_Return set_creation_date(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
48 CJS_Return set_creator(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
51 CJS_Return set_delay(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
54 CJS_Return set_dirty(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
[all …]
Dfxjs_v8.h53 class V8TemplateMapTraits : public v8::StdMapTraits<void*, v8::Object> {
55 typedef v8::GlobalValueMap<void*, v8::Object, V8TemplateMapTraits> MapType;
59 WeakCallbackParameter(MapType* map, void* key, v8::Local<v8::Object> value) { in WeakCallbackParameter()
63 const v8::WeakCallbackInfo<WeakCallbackDataType>&);
66 const v8::WeakCallbackInfo<WeakCallbackDataType>& data) { in KeyFromWeakCallbackInfo()
69 static const v8::PersistentContainerCallbackType kCallbackType =
70 v8::kWeakWithInternalFields;
72 const v8::WeakCallbackInfo<WeakCallbackDataType>& data) {} in DisposeWeak()
74 const v8::WeakCallbackInfo<WeakCallbackDataType>& data) {} in OnWeakCallback()
75 static void Dispose(v8::Isolate* isolate,
[all …]
Dcjs_field.h39 CJS_Return set_alignment(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
42 CJS_Return set_border_style(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
45 CJS_Return set_button_align_x(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
48 CJS_Return set_button_align_y(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
52 v8::Local<v8::Value> vp);
56 v8::Local<v8::Value> vp);
60 v8::Local<v8::Value> vp);
64 v8::Local<v8::Value> vp);
68 v8::Local<v8::Value> vp);
71 CJS_Return set_char_limit(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
[all …]
Dcfxjse_class.cpp22 const v8::FunctionCallbackInfo<v8::Value>& info) { in V8FunctionCallback_Wrapper()
25 info.Data().As<v8::External>()->Value()); in V8FunctionCallback_Wrapper()
40 const v8::FunctionCallbackInfo<v8::Value>& info) { in V8ConstructorCallback_Wrapper()
46 info.Data().As<v8::External>()->Value()); in V8ConstructorCallback_Wrapper()
55 const v8::FunctionCallbackInfo<v8::Value>& info) { in Context_GlobalObjToString()
57 info.Data().As<v8::External>()->Value()); in Context_GlobalObjToString()
63 info.GetReturnValue().Set(v8::String::NewFromUtf8( in Context_GlobalObjToString()
64 info.GetIsolate(), szStringVal.c_str(), v8::String::kNormalString, in Context_GlobalObjToString()
68 v8::Local<v8::String> local_str = in Context_GlobalObjToString()
71 .FromMaybe(v8::Local<v8::String>()); in Context_GlobalObjToString()
[all …]
Dcjs_app.h25 CJS_Return set_active_docs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
28 CJS_Return set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
31 CJS_Return set_forms_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
34 CJS_Return set_fs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
37 CJS_Return set_fullscreen(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
40 CJS_Return set_language(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
43 CJS_Return set_media(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
46 CJS_Return set_platform(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
50 v8::Local<v8::Value> vp);
53 CJS_Return set_viewer_type(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
[all …]
/external/v8/samples/
Dshell.cc47 v8::Local<v8::Context> CreateShellContext(v8::Isolate* isolate);
48 void RunShell(v8::Local<v8::Context> context, v8::Platform* platform);
49 int RunMain(v8::Isolate* isolate, v8::Platform* platform, int argc,
51 bool ExecuteString(v8::Isolate* isolate, v8::Local<v8::String> source,
52 v8::Local<v8::Value> name, bool print_result,
54 void Print(const v8::FunctionCallbackInfo<v8::Value>& args);
55 void Read(const v8::FunctionCallbackInfo<v8::Value>& args);
56 void Load(const v8::FunctionCallbackInfo<v8::Value>& args);
57 void Quit(const v8::FunctionCallbackInfo<v8::Value>& args);
58 void Version(const v8::FunctionCallbackInfo<v8::Value>& args);
[all …]
Dhello-world.cc14 v8::V8::InitializeICUDefaultLocation(argv[0]); in main()
15 v8::V8::InitializeExternalStartupData(argv[0]); in main()
16 std::unique_ptr<v8::Platform> platform = v8::platform::NewDefaultPlatform(); in main()
17 v8::V8::InitializePlatform(platform.get()); in main()
18 v8::V8::Initialize(); in main()
21 v8::Isolate::CreateParams create_params; in main()
23 v8::ArrayBuffer::Allocator::NewDefaultAllocator(); in main()
24 v8::Isolate* isolate = v8::Isolate::New(create_params); in main()
26 v8::Isolate::Scope isolate_scope(isolate); in main()
29 v8::HandleScope handle_scope(isolate); in main()
[all …]
/external/v8/src/
Dapi.h25 namespace v8 {
40 inline T ToCData(v8::internal::Object* obj);
43 inline v8::internal::Address ToCData(v8::internal::Object* obj);
46 inline v8::internal::Handle<v8::internal::Object> FromCData(
47 v8::internal::Isolate* isolate, T obj);
50 inline v8::internal::Handle<v8::internal::Object> FromCData(
51 v8::internal::Isolate* isolate, v8::internal::Address obj);
55 explicit ApiFunction(v8::internal::Address addr) : addr_(addr) { } in ApiFunction()
56 v8::internal::Address address() { return addr_; } in address()
58 v8::internal::Address addr_;
[all …]
/external/chromium-libpac/src/
Dproxy_resolver_v8.cc117 : public v8::String::ExternalOneByteStringResource {
154 std::string V8StringToUTF8(v8::Handle<v8::String> s) { in V8StringToUTF8()
161 std::u16string V8StringToUTF16(v8::Handle<v8::String> s) { in V8StringToUTF16()
171 v8::Local<v8::String> ASCIIStringToV8String(v8::Isolate* isolate, const std::string& s) { in ASCIIStringToV8String()
172 return v8::String::NewFromUtf8(isolate, s.data(), v8::String::kNormalString, s.size()); in ASCIIStringToV8String()
175 v8::Local<v8::String> UTF16StringToV8String(v8::Isolate* isolate, const std::u16string& s) { in UTF16StringToV8String()
176 return v8::String::NewFromTwoByte( in UTF16StringToV8String()
178 v8::String::kNormalString, s.size()); in UTF16StringToV8String()
182 v8::Local<v8::String> ASCIILiteralToV8String(v8::Isolate* isolate, const char* ascii) { in ASCIILiteralToV8String()
186 return v8::String::NewFromUtf8(isolate, ascii, v8::String::kNormalString, length); in ASCIILiteralToV8String()
[all …]
/external/v8/src/debug/
Ddebug-interface.h15 namespace v8 {
98 v8::Local<v8::debug::Script> script;
100 v8::Local<v8::String> message;
110 v8::Isolate* GetIsolate() const;
131 v8::debug::Location GetSourceLocation(int offset) const;
132 bool SetScriptSource(v8::Local<v8::String> newSource, bool preview,
134 bool SetBreakpoint(v8::Local<v8::String> condition, debug::Location* location,
160 virtual void ScriptCompiled(v8::Local<Script> script, bool is_live_edited, in ScriptCompiled()
165 v8::Local<v8::Context> paused_context, in BreakProgramRequested()
167 virtual void ExceptionThrown(v8::Local<v8::Context> paused_context, in ExceptionThrown()
[all …]

12345678910>>...111