Home
last modified time | relevance | path

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

12345678910>>...126

/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 …]
Dcustom-preview.cc21 void reportError(v8::Local<v8::Context> context, const v8::TryCatch& tryCatch) { in reportError()
23 v8::Isolate* isolate = context->GetIsolate(); in reportError()
25 static_cast<V8InspectorImpl*>(v8::debug::GetInspector(isolate)); in reportError()
28 v8::Local<v8::String> message = tryCatch.Message()->Get(); in reportError()
29 v8::Local<v8::String> prefix = in reportError()
31 message = v8::String::Concat(isolate, prefix, message); in reportError()
32 std::vector<v8::Local<v8::Value>> arguments; in reportError()
43 void reportError(v8::Local<v8::Context> context, const v8::TryCatch& tryCatch, in reportError()
45 v8::Isolate* isolate = context->GetIsolate(); in reportError()
50 InjectedScript* getInjectedScript(v8::Local<v8::Context> context, in getInjectedScript()
[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()
73 std::vector<v8::Local<v8::Value>> arguments; in reportCallWithDefaultArgument()
81 std::vector<v8::Local<v8::Value>> arguments; in reportCallAndReplaceFirstArgument()
88 std::vector<v8::Local<v8::Value>> arguments(1, in reportCallWithArgument()
94 const std::vector<v8::Local<v8::Value>>& arguments) { in reportCall()
110 std::vector<v8::Local<v8::Value>> arguments(1, in reportDeprecatedCall()
117 if (m_info[0]->IsBoolean()) return m_info[0].As<v8::Boolean>()->Value(); in firstArgToBoolean()
[all …]
Dvalue-mirror.cc25 V8InspectorClient* clientFor(v8::Local<v8::Context> context) { in clientFor()
27 v8::debug::GetInspector(context->GetIsolate())) in clientFor()
31 V8InternalValueType v8InternalValueTypeFrom(v8::Local<v8::Context> context, in v8InternalValueTypeFrom()
32 v8::Local<v8::Value> value) { in v8InternalValueTypeFrom()
35 v8::debug::GetInspector(context->GetIsolate())); in v8InternalValueTypeFrom()
39 return inspectedContext->getInternalType(value.As<v8::Object>()); in v8InternalValueTypeFrom()
43 ResultType unpackWasmValue(v8::Local<v8::Context> context, in unpackWasmValue()
44 v8::Local<v8::Array> array) { in unpackWasmValue()
49 v8::Local<v8::Int32> i32 = in unpackWasmValue()
50 array->Get(context, i).ToLocalChecked().As<v8::Int32>(); in unpackWasmValue()
[all …]
Dv8-debugger.h53 static V8DebuggerId generate(v8::Isolate*);
64 class V8Debugger : public v8::debug::DebugDelegate,
65 public v8::debug::AsyncEventDelegate {
67 V8Debugger(v8::Isolate*, V8InspectorImpl*);
71 v8::Isolate* isolate() const { return m_isolate; } in isolate()
75 v8::debug::ExceptionBreakState getPauseOnExceptionsState();
76 void setPauseOnExceptionsState(v8::debug::ExceptionBreakState);
114 std::shared_ptr<StackFrame> symbolize(v8::Local<v8::StackFrame> v8Frame);
116 std::unique_ptr<V8StackTraceImpl> createStackTrace(v8::Local<v8::StackTrace>);
119 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>,
[all …]
Dv8-debugger.cc37 class MatchPrototypePredicate : public v8::debug::QueryObjectPredicate {
40 v8::Local<v8::Context> context, in MatchPrototypePredicate()
41 v8::Local<v8::Object> prototype) in MatchPrototypePredicate()
44 bool Filter(v8::Local<v8::Object> object) override { in Filter()
46 v8::Local<v8::Context> objectContext = in Filter()
47 v8::debug::GetCreationContext(object); in Filter()
51 for (v8::Local<v8::Value> prototype = object->GetPrototype(); in Filter()
53 prototype = prototype.As<v8::Object>()->GetPrototype()) { in Filter()
61 v8::Local<v8::Context> m_context;
62 v8::Local<v8::Value> m_prototype;
[all …]
/external/pdfium/fxjs/
Dcfx_v8.cpp12 CFX_V8::CFX_V8(v8::Isolate* isolate) : m_pIsolate(isolate) {} in CFX_V8()
16 v8::Local<v8::Value> CFX_V8::GetObjectProperty( in GetObjectProperty()
17 v8::Local<v8::Object> pObj, in GetObjectProperty()
20 return v8::Local<v8::Value>(); in GetObjectProperty()
21 v8::Local<v8::Value> val; in GetObjectProperty()
24 return v8::Local<v8::Value>(); in GetObjectProperty()
29 v8::Local<v8::Object> pObj) { in GetObjectPropertyNames()
33 v8::Local<v8::Array> val; in GetObjectPropertyNames()
34 v8::Local<v8::Context> context = m_pIsolate->GetCurrentContext(); in GetObjectPropertyNames()
46 bool CFX_V8::PutObjectProperty(v8::Local<v8::Object> pObj, in PutObjectProperty()
[all …]
Dcjs_publicmethods.h34 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);
58 const std::vector<v8::Local<v8::Value>>& params);
61 const std::vector<v8::Local<v8::Value>>& params);
[all …]
Dcfx_v8.h18 explicit CFX_V8(v8::Isolate* pIsolate);
21 v8::Isolate* GetIsolate() const { return m_pIsolate.Get(); } in GetIsolate()
23 v8::Local<v8::Value> NewNull();
24 v8::Local<v8::Value> NewUndefined();
25 v8::Local<v8::Array> NewArray();
26 v8::Local<v8::Object> NewObject();
27 v8::Local<v8::Number> NewNumber(int number);
28 v8::Local<v8::Number> NewNumber(double number);
29 v8::Local<v8::Number> NewNumber(float number);
30 v8::Local<v8::Boolean> NewBoolean(bool b);
[all …]
Dcfxjs_engine.cpp25 v8::Isolate* g_isolate = nullptr;
28 v8::Global<v8::ObjectTemplate>* g_DefaultGlobalObjectTemplate = nullptr;
35 std::pair<int, int> GetLineAndColumnFromError(v8::Local<v8::Message> message, in GetLineAndColumnFromError()
36 v8::Local<v8::Context> context) { in GetLineAndColumnFromError()
47 : public v8::StdMapTraits<CFXJS_PerObjectData*, v8::Object> {
50 using MapType = v8::
51 GlobalValueMap<WeakCallbackDataType*, v8::Object, V8TemplateMapTraits>;
53 static const v8::PersistentContainerCallbackType kCallbackType =
54 v8::kWeakWithInternalFields;
59 v8::Local<v8::Object> value) { in WeakCallbackParameter()
[all …]
Dcjs_document.h28 CJS_Document(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
121 CJS_Result set_ADBE(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
124 CJS_Result set_author(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
127 CJS_Result set_base_URL(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
130 CJS_Result set_bookmark_root(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
133 CJS_Result set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
136 CJS_Result set_collab(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
139 CJS_Result set_creation_date(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
142 CJS_Result set_creator(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
145 CJS_Result set_delay(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
[all …]
Dcjs_field.h37 CJS_Field(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
123 CJS_Result set_text_color(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
132 CJS_Result set_alignment(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
135 CJS_Result set_border_style(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
138 CJS_Result set_button_align_x(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
141 CJS_Result set_button_align_y(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
145 v8::Local<v8::Value> vp);
149 v8::Local<v8::Value> vp);
153 v8::Local<v8::Value> vp);
157 v8::Local<v8::Value> vp);
[all …]
Dcfxjs_engine.h51 static void SetUp(v8::Isolate* pIsolate);
52 static FXJS_PerIsolateData* Get(v8::Isolate* pIsolate);
63 explicit FXJS_PerIsolateData(v8::Isolate* pIsolate);
66 void FXJS_Initialize(unsigned int embedderDataSlot, v8::Isolate* pIsolate);
72 bool FXJS_GetIsolate(v8::Isolate** pResultIsolate);
79 explicit CFXJS_Engine(v8::Isolate* pIsolate);
83 std::function<void(CFXJS_Engine* pEngine, v8::Local<v8::Object> obj)>;
84 using Destructor = std::function<void(v8::Local<v8::Object> obj)>;
86 static int GetObjDefnID(v8::Local<v8::Object> pObj);
87 static CJS_Object* GetObjectPrivate(v8::Local<v8::Object> pObj);
[all …]
Dcjs_app.h25 CJS_App(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
75 CJS_Result set_active_docs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
78 CJS_Result set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
81 CJS_Result set_forms_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
84 CJS_Result set_fs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
87 CJS_Result set_fullscreen(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
90 CJS_Result set_language(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
93 CJS_Result set_media(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
96 CJS_Result set_platform(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
100 v8::Local<v8::Value> vp);
[all …]
Djs_define.cpp19 void JSDestructor(v8::Local<v8::Object> obj) { in JSDestructor()
24 v8::Isolate* pIsolate = v8::Isolate::GetCurrent(); in JS_DateParse()
25 v8::Isolate::Scope isolate_scope(pIsolate); in JS_DateParse()
26 v8::HandleScope scope(pIsolate); in JS_DateParse()
28 v8::Local<v8::Context> context = pIsolate->GetCurrentContext(); in JS_DateParse()
31 v8::Local<v8::Value> v = in JS_DateParse()
33 ->Get(context, v8::String::NewFromUtf8(pIsolate, "Date", in JS_DateParse()
34 v8::NewStringType::kNormal) in JS_DateParse()
38 v8::Local<v8::Object> o = v->ToObject(context).ToLocalChecked(); in JS_DateParse()
39 v = o->Get(context, v8::String::NewFromUtf8(pIsolate, "parse", in JS_DateParse()
[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/pdfium/fxjs/xfa/
Dcfxjse_value.cpp57 v8::Isolate* pIsolate = v8::Isolate::GetCurrent(); in FXJSE_ThrowMessage()
61 v8::Local<v8::String> hMessage = in FXJSE_ThrowMessage()
62 v8::String::NewFromUtf8(pIsolate, utf8Message.unterminated_c_str(), in FXJSE_ThrowMessage()
63 v8::NewStringType::kNormal, in FXJSE_ThrowMessage()
66 v8::Local<v8::Value> hError = v8::Exception::Error(hMessage); in FXJSE_ThrowMessage()
70 CFXJSE_Value::CFXJSE_Value(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} in CFXJSE_Value()
76 v8::Local<v8::Value> pValue = in ToHostObject()
77 v8::Local<v8::Value>::New(GetIsolate(), m_hValue); in ToHostObject()
82 return FXJSE_RetrieveObjectBinding(pValue.As<v8::Object>()); in ToHostObject()
88 v8::Local<v8::FunctionTemplate> hClass = in SetHostObject()
[all …]
Dcfxjse_context.cpp58 v8::Local<v8::Object> CreateReturnValue(v8::Isolate* pIsolate, in CreateReturnValue()
59 v8::TryCatch* trycatch) { in CreateReturnValue()
60 v8::Local<v8::Object> hReturnValue = v8::Object::New(pIsolate); in CreateReturnValue()
64 v8::Local<v8::Message> hMessage = trycatch->Message(); in CreateReturnValue()
68 v8::Local<v8::Context> context = pIsolate->GetCurrentContext(); in CreateReturnValue()
69 v8::Local<v8::Value> hException = trycatch->Exception(); in CreateReturnValue()
71 v8::Local<v8::String> hNameStr = in CreateReturnValue()
72 v8::String::NewFromUtf8(pIsolate, "name", v8::NewStringType::kNormal) in CreateReturnValue()
74 v8::Local<v8::Value> hValue = in CreateReturnValue()
75 hException.As<v8::Object>()->Get(context, hNameStr).ToLocalChecked(); in CreateReturnValue()
[all …]
Dcfxjse_class.cpp36 const v8::FunctionCallbackInfo<v8::Value>& info) { in V8FunctionCallback_Wrapper()
38 AsFunctionDescriptor(info.Data().As<v8::External>()->Value()); in V8FunctionCallback_Wrapper()
53 const v8::FunctionCallbackInfo<v8::Value>& info) { in V8ConstructorCallback_Wrapper()
58 AsClassDescriptor(info.Data().As<v8::External>()->Value()); in V8ConstructorCallback_Wrapper()
68 const v8::FunctionCallbackInfo<v8::Value>& info) { in Context_GlobalObjToString()
70 AsClassDescriptor(info.Data().As<v8::External>()->Value()); in Context_GlobalObjToString()
77 v8::String::NewFromUtf8(info.GetIsolate(), szStringVal.c_str(), in Context_GlobalObjToString()
78 v8::NewStringType::kNormal, in Context_GlobalObjToString()
83 v8::Local<v8::String> local_str = in Context_GlobalObjToString()
86 .FromMaybe(v8::Local<v8::String>()); in Context_GlobalObjToString()
[all …]
/external/libsrtp2/crypto/cipher/
Daes.c1425 expanded_key->round[i].v8[0] = in aes_128_expand_encryption_key()
1426 aes_sbox[expanded_key->round[i - 1].v8[13]] ^ rc; in aes_128_expand_encryption_key()
1427 expanded_key->round[i].v8[1] = in aes_128_expand_encryption_key()
1428 aes_sbox[expanded_key->round[i - 1].v8[14]]; in aes_128_expand_encryption_key()
1429 expanded_key->round[i].v8[2] = in aes_128_expand_encryption_key()
1430 aes_sbox[expanded_key->round[i - 1].v8[15]]; in aes_128_expand_encryption_key()
1431 expanded_key->round[i].v8[3] = in aes_128_expand_encryption_key()
1432 aes_sbox[expanded_key->round[i - 1].v8[12]]; in aes_128_expand_encryption_key()
1483 expanded_key->round[i].v8[0] = in aes_256_expand_encryption_key()
1484 aes_sbox[expanded_key->round[i - 1].v8[13]] ^ rc; in aes_256_expand_encryption_key()
[all …]
/external/chromium-libpac/src/
Dproxy_resolver_v8.cc117 : public v8::String::ExternalOneByteStringResource {
154 std::string V8StringToUTF8(v8::Isolate* isolate, v8::Handle<v8::String> s) { in V8StringToUTF8()
163 std::u16string V8StringToUTF16(v8::Isolate* isolate, v8::Handle<v8::String> s) { in V8StringToUTF16()
173 v8::Local<v8::String> ASCIIStringToV8String(v8::Isolate* isolate, const std::string& s) { in ASCIIStringToV8String()
174 …return v8::String::NewFromUtf8(isolate, s.data(), v8::NewStringType::kNormal, s.size()).ToLocalChe… in ASCIIStringToV8String()
177 v8::Local<v8::String> UTF16StringToV8String(v8::Isolate* isolate, const std::u16string& s) { in UTF16StringToV8String()
178 return v8::String::NewFromTwoByte( in UTF16StringToV8String()
180 v8::NewStringType::kNormal, s.size()).ToLocalChecked(); in UTF16StringToV8String()
184 v8::Local<v8::String> ASCIILiteralToV8String(v8::Isolate* isolate, const char* ascii) { in ASCIILiteralToV8String()
188 …return v8::String::NewFromUtf8(isolate, ascii, v8::NewStringType::kNormal, length).ToLocalChecked(… in ASCIILiteralToV8String()
[all …]
/external/v8/src/debug/
Ddebug-interface.h18 namespace v8 {
131 v8::Local<v8::debug::Script> script;
133 v8::Local<v8::String> message;
143 v8::Isolate* GetIsolate() const;
164 v8::debug::Location GetSourceLocation(int offset) const;
165 bool SetScriptSource(v8::Local<v8::String> newSource, bool preview,
167 bool SetBreakpoint(v8::Local<v8::String> condition, debug::Location* location,
206 virtual void ScriptCompiled(v8::Local<Script> script, bool is_live_edited, in ScriptCompiled()
211 v8::Local<v8::Context> paused_context, in BreakProgramRequested()
213 virtual void ExceptionThrown(v8::Local<v8::Context> paused_context, in ExceptionThrown()
[all …]
/external/v8/src/api/
Dapi.h25 namespace v8 {
50 inline T ToCData(v8::internal::Object obj);
53 inline v8::internal::Address ToCData(v8::internal::Object obj);
56 inline v8::internal::Handle<v8::internal::Object> FromCData(
57 v8::internal::Isolate* isolate, T obj);
60 inline v8::internal::Handle<v8::internal::Object> FromCData(
61 v8::internal::Isolate* isolate, v8::internal::Address obj);
65 explicit ApiFunction(v8::internal::Address addr) : addr_(addr) {} in ApiFunction()
66 v8::internal::Address address() { return addr_; } in address()
69 v8::internal::Address addr_;
[all …]
/external/v8/src/extensions/
Dgc-extension.cc13 namespace v8 { namespace
21 v8::Isolate::GarbageCollectionType type;
25 Maybe<bool> IsProperty(v8::Isolate* isolate, v8::Local<v8::Context> ctx, in IsProperty()
26 v8::Local<v8::Object> object, const char* key, in IsProperty()
28 auto k = v8::String::NewFromUtf8(isolate, key).ToLocalChecked(); in IsProperty()
34 v8::String::NewFromUtf8(isolate, value).ToLocalChecked())); in IsProperty()
37 Maybe<GCOptions> Parse(v8::Isolate* isolate, in Parse()
38 const v8::FunctionCallbackInfo<v8::Value>& args) { in Parse()
41 GCOptions{v8::Isolate::GarbageCollectionType::kFullGarbageCollection, in Parse()
46 v8::HandleScope scope(isolate); in Parse()
[all …]

12345678910>>...126