/external/pdfium/fpdfsdk/include/jsapi/ |
D | fxjs_v8.h | 50 static void SetUp(v8::Isolate* pIsolate); 51 static FXJS_PerIsolateData* Get(v8::Isolate* pIsolate); 75 class FXJS_ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { 81 using FXJS_CONSTRUCTOR = void (*)(IJS_Runtime* cc, v8::Local<v8::Object> obj); 82 using FXJS_DESTRUCTOR = void (*)(v8::Local<v8::Object> obj); 85 void FXJS_Initialize(unsigned int embedderDataSlot, v8::Isolate* pIsolate); 91 bool FXJS_GetIsolate(v8::Isolate** pResultIsolate); 98 void FXJS_PrepareIsolate(v8::Isolate* pIsolate); 102 void JS_PrepareIsolate(v8::Isolate* pIsolate); 105 int FXJS_DefineObj(v8::Isolate* pIsolate, [all …]
|
/external/pdfium/fpdfsdk/src/jsapi/ |
D | fxjs_v8.cpp | 26 static v8::Isolate* g_isolate = nullptr; 29 static v8::Global<v8::ObjectTemplate>* g_DefaultGlobalObjectTemplate = nullptr; 42 static int MaxID(v8::Isolate* pIsolate) { in MaxID() 46 static CFXJS_ObjDefinition* ForID(v8::Isolate* pIsolate, int id) { in ForID() 51 CFXJS_ObjDefinition(v8::Isolate* isolate, in CFXJS_ObjDefinition() 61 v8::Isolate::Scope isolate_scope(isolate); in CFXJS_ObjDefinition() 62 v8::HandleScope handle_scope(isolate); in CFXJS_ObjDefinition() 64 v8::Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(isolate); in CFXJS_ObjDefinition() 68 v8::Local<v8::Signature> sig = v8::Signature::New(isolate, fun); in CFXJS_ObjDefinition() 78 v8::Local<v8::ObjectTemplate> GetInstanceTemplate() { in GetInstanceTemplate() [all …]
|
/external/v8/test/cctest/ |
D | test-lockers.cc | 43 using ::v8::Context; 44 using ::v8::Extension; 45 using ::v8::Function; 46 using ::v8::HandleScope; 47 using ::v8::Local; 48 using ::v8::Object; 49 using ::v8::ObjectTemplate; 50 using ::v8::Persistent; 51 using ::v8::Script; 52 using ::v8::String; [all …]
|
D | cctest.h | 70 typedef v8::internal::EnumSet<CcTestExtensionIds> CcTestExtensionFlags; 92 static v8::Isolate* isolate() { in EXTENSION_LIST() 94 v8::base::NoBarrier_Store(&isolate_used_, 1); in EXTENSION_LIST() 111 static v8::base::RandomNumberGenerator* random_number_generator() { in EXTENSION_LIST() 115 static v8::Local<v8::Object> global() { in EXTENSION_LIST() 119 static v8::ArrayBuffer::Allocator* array_buffer_allocator() { in EXTENSION_LIST() 124 v8::ArrayBuffer::Allocator* allocator) { in EXTENSION_LIST() 131 CHECK(!v8::base::NoBarrier_Load(&isolate_used_)); in EXTENSION_LIST() 134 v8::HandleScope handle_scope(CcTest::isolate()); in EXTENSION_LIST() 135 v8::Context::New(CcTest::isolate())->Enter(); in EXTENSION_LIST() [all …]
|
D | test-access-checks.cc | 13 void NamedGetter(v8::Local<v8::Name> property, in NamedGetter() 14 const v8::PropertyCallbackInfo<v8::Value>& info) { in NamedGetter() 15 v8::Isolate* isolate = info.GetIsolate(); in NamedGetter() 16 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in NamedGetter() 21 void NamedSetter(v8::Local<v8::Name> property, v8::Local<v8::Value> value, in NamedSetter() 22 const v8::PropertyCallbackInfo<v8::Value>& info) { in NamedSetter() 23 v8::Isolate* isolate = info.GetIsolate(); in NamedSetter() 24 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in NamedSetter() 33 void NamedQuery(v8::Local<v8::Name> property, in NamedQuery() 34 const v8::PropertyCallbackInfo<v8::Integer>& info) { in NamedQuery() [all …]
|
D | test-thread-termination.cc | 34 v8::base::Semaphore* semaphore = NULL; 37 void Signal(const v8::FunctionCallbackInfo<v8::Value>& args) { in Signal() 42 void TerminateCurrentThread(const v8::FunctionCallbackInfo<v8::Value>& args) { in TerminateCurrentThread() 48 void Fail(const v8::FunctionCallbackInfo<v8::Value>& args) { in Fail() 53 void Loop(const v8::FunctionCallbackInfo<v8::Value>& args) { in Loop() 55 v8::MaybeLocal<v8::Value> result = in Loop() 63 void DoLoop(const v8::FunctionCallbackInfo<v8::Value>& args) { in DoLoop() 64 v8::TryCatch try_catch(args.GetIsolate()); in DoLoop() 66 v8::MaybeLocal<v8::Value> result = in DoLoop() 90 void DoLoopNoCall(const v8::FunctionCallbackInfo<v8::Value>& args) { in DoLoopNoCall() [all …]
|
D | test-debug.cc | 43 using ::v8::base::Mutex; 44 using ::v8::base::LockGuard; 45 using ::v8::base::ConditionVariable; 46 using ::v8::base::OS; 47 using ::v8::base::Semaphore; 48 using ::v8::internal::EmbeddedVector; 49 using ::v8::internal::Object; 50 using ::v8::internal::Handle; 51 using ::v8::internal::Heap; 52 using ::v8::internal::JSGlobalProxy; [all …]
|
D | test-heap-profiler.cc | 68 v8::base::HashMap visited(AddressesMatch); in CheckAllReachables() 78 v8::base::HashMap::Entry* entry = visited.LookupOrInsert( in CheckAllReachables() 98 static const v8::HeapGraphNode* GetGlobalObject( in GetGlobalObject() 99 const v8::HeapSnapshot* snapshot) { in GetGlobalObject() 102 const v8::HeapGraphNode* global_obj = in GetGlobalObject() 110 static const v8::HeapGraphNode* GetProperty(const v8::HeapGraphNode* node, in GetProperty() 111 v8::HeapGraphEdge::Type type, in GetProperty() 114 const v8::HeapGraphEdge* prop = node->GetChild(i); in GetProperty() 115 v8::String::Utf8Value prop_name(prop->GetName()); in GetProperty() 123 static bool HasString(const v8::HeapGraphNode* node, const char* contents) { in HasString() [all …]
|
D | test-func-name-inference.cc | 37 using ::v8::base::SmartArrayPointer; 38 using ::v8::internal::CStrVector; 39 using ::v8::internal::Factory; 40 using ::v8::internal::Handle; 41 using ::v8::internal::Heap; 42 using ::v8::internal::Isolate; 43 using ::v8::internal::JSFunction; 44 using ::v8::internal::Object; 45 using ::v8::internal::Runtime; 46 using ::v8::internal::Script; [all …]
|
D | test-serialize.cc | 52 using namespace v8::internal; 63 static v8::Isolate* NewInitialized(bool enable_serializer) { in NewInitialized() 65 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate); in NewInitialized() 66 v8::Isolate::Scope isolate_scope(v8_isolate); in NewInitialized() 82 static Vector<const byte> Serialize(v8::Isolate* isolate) { in Serialize() 87 v8::Isolate::Scope isolate_scope(isolate); in Serialize() 89 v8::HandleScope scope(isolate); in Serialize() 90 v8::Context::New(isolate); in Serialize() 96 v8::SnapshotCreator::FunctionCodeHandling::kClear); in Serialize() 120 v8::Isolate* InitializeFromBlob(Vector<const byte> blob) { in InitializeFromBlob() [all …]
|
D | test-cpu-profiler.cc | 54 static v8::Local<v8::Function> GetFunction(v8::Local<v8::Context> env, in GetFunction() 56 return v8::Local<v8::Function>::Cast( in GetFunction() 75 v8::base::TimeDelta::FromMicroseconds(100))); in TEST() 135 v8::Utils::OpenHandle(*GetFunction(env->local(), name_start))); in CreateCode() 159 generator, nullptr, v8::base::TimeDelta::FromMicroseconds(100)); in TEST() 227 generator, nullptr, v8::base::TimeDelta::FromMicroseconds(100)); in TEST() 299 generator, nullptr, v8::base::TimeDelta::FromMicroseconds(100)); in TEST() 364 static bool FindCpuProfile(v8::CpuProfiler* v8profiler, in FindCpuProfile() 365 const v8::CpuProfile* v8profile) { in FindCpuProfile() 380 v8::HandleScope scope(env->GetIsolate()); in TEST() [all …]
|
D | test-log.cc | 49 using v8::internal::Address; 50 using v8::internal::EmbeddedVector; 51 using v8::internal::Logger; 52 using v8::internal::StrLength; 68 ScopedLoggerInitializer(bool saved_log, bool saved_prof, v8::Isolate* isolate) in ScopedLoggerInitializer() 75 env_(v8::Context::New(isolate)), in ScopedLoggerInitializer() 88 v8::Local<v8::Context>& env() { return env_; } in env() 90 v8::Isolate* isolate() { return isolate_; } in isolate() 106 v8::Isolate* isolate_; 107 v8::Isolate::Scope isolate_scope_; [all …]
|
D | test-accessors.cc | 37 using ::v8::ObjectTemplate; 38 using ::v8::Value; 39 using ::v8::Context; 40 using ::v8::Local; 41 using ::v8::Name; 42 using ::v8::String; 43 using ::v8::Script; 44 using ::v8::Function; 45 using ::v8::Extension; 48 const v8::PropertyCallbackInfo<v8::Value>& info) { in handle_property() [all …]
|
D | test-api-interceptors.cc | 21 using ::v8::Boolean; 22 using ::v8::BooleanObject; 23 using ::v8::Context; 24 using ::v8::Extension; 25 using ::v8::Function; 26 using ::v8::FunctionTemplate; 27 using ::v8::HandleScope; 28 using ::v8::Local; 29 using ::v8::Name; 30 using ::v8::Message; [all …]
|
D | test-api-fast-accessor-builder.cc | 59 const v8::FunctionCallbackInfo<v8::Value>& info) { in NativePropertyAccessor() 69 v8::Isolate* isolate = env->GetIsolate(); in TEST() 70 v8::HandleScope scope(isolate); in TEST() 72 v8::Local<v8::FunctionTemplate> foo = v8::FunctionTemplate::New(isolate); in TEST() 77 v8::FunctionTemplate::New(isolate, NativePropertyAccessor)); in TEST() 80 auto fab = v8::experimental::FastAccessorBuilder::New(isolate); in TEST() 83 v8_str("barf"), v8::FunctionTemplate::NewWithFastHandler( in TEST() 101 void AddInternalFieldAccessor(v8::Isolate* isolate, in AddInternalFieldAccessor() 102 v8::Local<v8::Template> templ, const char* name, in AddInternalFieldAccessor() 104 auto builder = v8::experimental::FastAccessorBuilder::New(isolate); in AddInternalFieldAccessor() [all …]
|
/external/v8/samples/ |
D | shell.cc | 47 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 …]
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/testing/ |
D | perf_report_output.txt | 21 …erThrea^chrome ^[.] void v8::internal::RelocInfo::Visit<v8::internal::MarkCompactMar… 23 …--- void v8::internal::RelocInfo::Visit<v8::internal::MarkCompactMarkingVisitor>(v8::internal::Hea… 25 … ^[.] v8::internal::StaticMarkingVisitor<v8::internal::MarkCompactMarkingVisitor>::Mar… 27 …--- v8::internal::StaticMarkingVisitor<v8::internal::MarkCompactMarkingVisitor>::MarkMapContents(v… 35 1.53^46054550^HTMLParserThrea^chrome ^[.] v8::internal::Scanner::ScanIdentifierOrKeyw… 37 --- v8::internal::Scanner::ScanIdentifierOrKeyword() 49 …^42913933^HTMLParserThrea^chrome ^[.] v8::internal::LiveRange::CreateAssignedOperand… 51 --- v8::internal::LiveRange::CreateAssignedOperand(v8::internal::Zone*) 53 …rserThrea^chrome ^[.] v8::internal::LAllocator::MeetConstraintsBetween(v8::internal:… 55 …--- v8::internal::LAllocator::MeetConstraintsBetween(v8::internal::LInstruction*, v8::internal::LI… [all …]
|
/external/pdfium/xfa/src/fxjse/src/ |
D | dynprop.cpp | 12 const v8::FunctionCallbackInfo<v8::Value>& info) { in FXJSE_DynPropGetterAdapter_MethodCallback() 13 v8::Local<v8::Object> hCallBackInfo = info.Data().As<v8::Object>(); in FXJSE_DynPropGetterAdapter_MethodCallback() 16 v8::Local<v8::String> hPropName = in FXJSE_DynPropGetterAdapter_MethodCallback() 17 hCallBackInfo->GetInternalField(1).As<v8::String>(); in FXJSE_DynPropGetterAdapter_MethodCallback() 19 v8::String::Utf8Value szPropName(hPropName); in FXJSE_DynPropGetterAdapter_MethodCallback() 52 v8::Isolate* pIsolate = lpValue->GetIsolate(); in FXJSE_DynPropGetterAdapter() 53 v8::HandleScope hscope(pIsolate); in FXJSE_DynPropGetterAdapter() 54 v8::Local<v8::ObjectTemplate> hCallBackInfoTemplate = in FXJSE_DynPropGetterAdapter() 55 v8::ObjectTemplate::New(); in FXJSE_DynPropGetterAdapter() 57 v8::Local<v8::Object> hCallBackInfo = in FXJSE_DynPropGetterAdapter() [all …]
|
D | context.cpp | 18 reinterpret_cast<v8::Isolate*>(hRuntime), lpGlobalClass, lpGlobalObject); in FXJSE_Context_Create() 70 v8::Local<v8::Object> FXJSE_CreateReturnValue(v8::Isolate* pIsolate, in FXJSE_CreateReturnValue() 71 v8::TryCatch& trycatch) { in FXJSE_CreateReturnValue() 72 v8::Local<v8::Object> hReturnValue = v8::Object::New(pIsolate); in FXJSE_CreateReturnValue() 74 v8::Local<v8::Value> hException = trycatch.Exception(); in FXJSE_CreateReturnValue() 75 v8::Local<v8::Message> hMessage = trycatch.Message(); in FXJSE_CreateReturnValue() 77 v8::Local<v8::Value> hValue; in FXJSE_CreateReturnValue() 78 hValue = hException.As<v8::Object>()->Get( in FXJSE_CreateReturnValue() 79 v8::String::NewFromUtf8(pIsolate, "name")); in FXJSE_CreateReturnValue() 83 hReturnValue->Set(0, v8::String::NewFromUtf8(pIsolate, "Error")); in FXJSE_CreateReturnValue() [all …]
|
D | value.h | 12 CFXJSE_Value(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} in CFXJSE_Value() 25 v8::Local<v8::Value> hValue = in IsUndefined() 26 v8::Local<v8::Value>::New(m_pIsolate, m_hValue); in IsUndefined() 34 v8::Local<v8::Value> hValue = in IsNull() 35 v8::Local<v8::Value>::New(m_pIsolate, m_hValue); in IsNull() 43 v8::Local<v8::Value> hValue = in IsBoolean() 44 v8::Local<v8::Value>::New(m_pIsolate, m_hValue); in IsBoolean() 52 v8::Local<v8::Value> hValue = in IsString() 53 v8::Local<v8::Value>::New(m_pIsolate, m_hValue); in IsString() 61 v8::Local<v8::Value> hValue = in IsNumber() [all …]
|
/external/srtp/crypto/cipher/ |
D | aes.c | 1384 expanded_key[i].v8[0] = aes_sbox[expanded_key[i-1].v8[13]] ^ rc; in aes_expand_encryption_key() 1385 expanded_key[i].v8[1] = aes_sbox[expanded_key[i-1].v8[14]]; in aes_expand_encryption_key() 1386 expanded_key[i].v8[2] = aes_sbox[expanded_key[i-1].v8[15]]; in aes_expand_encryption_key() 1387 expanded_key[i].v8[3] = aes_sbox[expanded_key[i-1].v8[12]]; in aes_expand_encryption_key() 1472 c0 = U0[aes_sbox[expanded_key[i].v8[0]]] in aes_expand_decryption_key() 1473 ^ U1[aes_sbox[expanded_key[i].v8[1]]] in aes_expand_decryption_key() 1474 ^ U2[aes_sbox[expanded_key[i].v8[2]]] in aes_expand_decryption_key() 1475 ^ U3[aes_sbox[expanded_key[i].v8[3]]]; in aes_expand_decryption_key() 1477 c1 = U0[aes_sbox[expanded_key[i].v8[4]]] in aes_expand_decryption_key() 1478 ^ U1[aes_sbox[expanded_key[i].v8[5]]] in aes_expand_decryption_key() [all …]
|
/external/skia/experimental/SkV8Example/ |
D | JsContext.cpp | 20 static const char* to_cstring(const v8::String::Utf8Value& value) { in to_cstring() 24 v8::Persistent<v8::ObjectTemplate> JsContext::gContextTemplate; 27 v8::Handle<v8::Object> JsContext::wrap() { in wrap() 29 v8::EscapableHandleScope handleScope(fGlobal->getIsolate()); in wrap() 34 v8::Local<v8::ObjectTemplate> localTemplate = v8::ObjectTemplate::New(); in wrap() 43 v8::Handle<v8::ObjectTemplate> templ = in wrap() 44 v8::Local<v8::ObjectTemplate>::New(fGlobal->getIsolate(), gContextTemplate); in wrap() 47 v8::Local<v8::Object> result = templ->NewInstance(); in wrap() 51 v8::Handle<v8::External> contextPtr = v8::External::New(fGlobal->getIsolate(), this); in wrap() 68 v8::HandleScope handleScope(fGlobal->getIsolate()); in onDraw() [all …]
|
D | Global.cpp | 18 static const char* to_cstring(const v8::String::Utf8Value& value) { in to_cstring() 33 void Global::reportException(v8::TryCatch* tryCatch) { in reportException() 34 v8::HandleScope handleScope(fIsolate); in reportException() 35 v8::String::Utf8Value exception(tryCatch->Exception()); in reportException() 37 v8::Handle<v8::Message> message = tryCatch->Message(); in reportException() 44 v8::String::Utf8Value filename(message->GetScriptOrigin().ResourceName()); in reportException() 50 v8::String::Utf8Value sourceline(message->GetSourceLine()); in reportException() 63 v8::String::Utf8Value stackTrace(tryCatch->StackTrace()); in reportException() 75 void Global::Inval(const v8::FunctionCallbackInfo<v8::Value>& args) { in Inval() 84 void Global::Print(const v8::FunctionCallbackInfo<v8::Value>& args) { in Print() [all …]
|
/external/v8/src/ |
D | api.h | 15 namespace v8 { 34 explicit NeanderObject(v8::internal::Isolate* isolate, int size); 35 explicit inline NeanderObject(v8::internal::Handle<v8::internal::Object> obj); 36 explicit inline NeanderObject(v8::internal::Object* obj); 37 inline v8::internal::Object* get(int index); 38 inline void set(int index, v8::internal::Object* value); 39 inline v8::internal::Handle<v8::internal::JSObject> value() { return value_; } in value() 42 v8::internal::Handle<v8::internal::JSObject> value_; 50 explicit NeanderArray(v8::internal::Isolate* isolate); 51 explicit inline NeanderArray(v8::internal::Handle<v8::internal::Object> obj); [all …]
|
/external/chromium-libpac/src/ |
D | proxy_resolver_v8.cc | 93 : public v8::String::ExternalStringResource { 114 : public v8::String::ExternalOneByteStringResource { 151 std::string V8StringToUTF8(v8::Handle<v8::String> s) { in V8StringToUTF8() 158 android::String16 V8StringToUTF16(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::String::kNormalString, s.size()); in ASCIIStringToV8String() 177 v8::Local<v8::String> UTF16StringToV8String(v8::Isolate* isolate, const android::String16& s) { in UTF16StringToV8String() 178 return v8::String::NewFromTwoByte( in UTF16StringToV8String() 180 v8::String::kNormalString, s.size()); in UTF16StringToV8String() 184 v8::Local<v8::String> ASCIILiteralToV8String(v8::Isolate* isolate, const char* ascii) { in ASCIILiteralToV8String() [all …]
|