Home
last modified time | relevance | path

Searched refs:FromJust (Results 1 – 25 of 74) sorted by relevance

123

/external/v8/test/cctest/
Dtest-api-interceptors.cc82 .FromJust(); in SimpleAccessorSetter()
136 if (value->IsInt32() && value->Int32Value(context).FromJust() < 10000) { in StringInterceptorSetter()
139 self->SetPrivate(context, symbol, value).FromJust(); in StringInterceptorSetter()
192 self->Set(info.GetIsolate()->GetCurrentContext(), str, value).FromJust(); in GenericInterceptorSetter()
231 .FromJust()); in CheckThisIndexedPropertyHandler()
240 .FromJust()); in CheckThisNamedPropertyHandler()
250 .FromJust()); in CheckThisIndexedPropertySetter()
261 .FromJust()); in CheckThisNamedPropertySetter()
270 .FromJust()); in CheckThisIndexedPropertyQuery()
280 .FromJust()); in CheckThisNamedPropertyQuery()
[all …]
Dtest-api.cc116 .FromJust()); in IncrementingSignatureCallback()
120 .FromJust()); in IncrementingSignatureCallback()
126 .FromJust()); in IncrementingSignatureCallback()
215 .FromJust()); in TestSignature()
251 .FromJust()); in THREADED_TEST()
255 .FromJust()); in THREADED_TEST()
258 .FromJust()); in THREADED_TEST()
261 .FromJust()); in THREADED_TEST()
328 CHECK(obj->Set(env.local(), v8_str("foo"), bar_str).FromJust()); in THREADED_TEST()
333 CHECK(bar_str->Equals(env.local(), foo_after).FromJust()); in THREADED_TEST()
[all …]
Dtest-accessors.cc82 CHECK(env->Global()->Set(env.local(), v8_str("Fun"), fun).FromJust()); in THREADED_TEST()
90 .FromJust()); in THREADED_TEST()
95 .FromJust()); in THREADED_TEST()
100 .FromJust()); in THREADED_TEST()
105 .FromJust()); in THREADED_TEST()
111 .FromJust()); in THREADED_TEST()
116 .FromJust()); in THREADED_TEST()
134 *field = value->Int32Value(info.GetIsolate()->GetCurrentContext()).FromJust(); in SetIntValue()
172 x_receiver->Equals(isolate->GetCurrentContext(), info.This()).FromJust()); in XGetter()
180 .FromJust()); in XGetter()
[all …]
Dtest-deoptimization.cc144 .FromJust()); in TEST()
164 .FromJust()); in TEST()
190 .FromJust()); in TEST()
211 .FromJust()); in TEST()
238 .FromJust()); in TEST()
243 .FromJust()); in TEST()
271 .FromJust()); in TEST()
276 .FromJust()); in TEST()
313 .FromJust()); in TEST()
318 .FromJust()); in TEST()
[all …]
Dtest-unscopables-hidden-prototype.cc42 CHECK(object->SetPrototype(current_context, hidden_prototype).FromJust()); in TEST()
59 .FromJust()); in TEST()
70 .FromJust()); in TEST()
82 .FromJust()); in TEST()
94 .FromJust()); in TEST()
106 .FromJust()); in TEST()
118 .FromJust()); in TEST()
Dtest-global-object.cc48 proto->Set(context.local(), var_name, v8_num(100)).FromJust(); in TEST()
49 global->SetPrototype(context.local(), proto).FromJust(); in TEST()
73 .FromJust(); in TEST()
75 env2->Global()->Set(env2, v8_str("a"), v8_str("a")).FromJust(); in TEST()
76 env2->Global()->Set(env2, v8_str("42"), v8_str("42")).FromJust(); in TEST()
85 .FromJust()); in TEST()
89 .FromJust()); in TEST()
Dtest-access-checks.cc17 if (property->Equals(context, v8_str("cross_context_int")).FromJust()) in NamedGetter()
25 if (!property->Equals(context, v8_str("cross_context_int")).FromJust()) in NamedSetter()
37 if (!property->Equals(context, v8_str("cross_context_int")).FromJust()) in NamedQuery()
46 if (!property->Equals(context, v8_str("cross_context_int")).FromJust()) in NamedDeleter()
55 names->Set(context, 0, v8_str("cross_context_int")).FromJust(); in NamedEnumerator()
89 names->Set(context, 0, v8_str("7")).FromJust(); in IndexedEnumerator()
157 .FromJust(); in TEST()
Dtest-debug.cc194 return value->Int32Value(isolate->GetCurrentContext()).FromJust(); in SetBreakPointFromJS()
218 return value->Int32Value(isolate->GetCurrentContext()).FromJust(); in SetScriptBreakPointByIdFromJS()
245 return value->Int32Value(isolate->GetCurrentContext()).FromJust(); in SetScriptBreakPointByNameFromJS()
556 last_source_line = result->Int32Value(context).FromJust(); in DebugEventBreakPointHitCount()
567 last_source_column = result->Int32Value(context).FromJust(); in DebugEventBreakPointHitCount()
645 last_js_stack_height = result->Int32Value(context).FromJust(); in DebugEventCounter()
655 result->Int32Value(context).FromJust()); in DebugEventCounter()
1046 .FromJust()); in TEST()
1054 .FromJust()); in TEST()
1059 .FromJust()); in TEST()
[all …]
Dtest-compiler.cc378 .FromJust(); in TEST()
424 .FromJust(); in TEST()
446 .FromJust(); in TEST()
494 .FromJust(); in TEST()
519 .FromJust(); in TEST()
566 CHECK(env->Global()->Has(env.local(), v8_str("a")).FromJust()); in TEST()
570 CHECK(env->Global()->Has(env.local(), v8_str("x")).FromJust()); in TEST()
574 CHECK(env->Global()->Has(env.local(), v8_str("y")).FromJust()); in TEST()
578 CHECK_EQ(314.1592653589793, a->NumberValue(env.local()).FromJust()); in TEST()
579 CHECK_EQ(-10.0, x->NumberValue(env.local()).FromJust()); in TEST()
[all …]
Dprofiler-extension.cc45 if (name->Equals(context, v8_str(isolate, "startProfiling")).FromJust()) { in GetNativeFunctionTemplate()
49 if (name->Equals(context, v8_str(isolate, "stopProfiling")).FromJust()) { in GetNativeFunctionTemplate()
52 if (name->Equals(context, v8_str(isolate, "collectSample")).FromJust()) { in GetNativeFunctionTemplate()
Dtrace-extension.cc50 .FromJust()) { in GetNativeFunctionTemplate()
56 .FromJust()) { in GetNativeFunctionTemplate()
62 .FromJust()) { in GetNativeFunctionTemplate()
68 .FromJust()) { in GetNativeFunctionTemplate()
Dtest-api-fast-accessor-builder.cc90 .FromJust()); in TEST()
132 CHECK(env->Global()->Set(env.local(), v8_str("obj"), obj).FromJust()); in TEST()
180 CHECK(env->Global()->Set(env.local(), v8_str("obj"), obj).FromJust()); in TEST()
225 CHECK(env->Global()->Set(env.local(), v8_str("obj"), obj).FromJust()); in TEST()
287 CHECK(env->Global()->Set(env.local(), v8_str("obj"), obj).FromJust()); in TEST()
353 CHECK(env->Global()->Set(env.local(), v8_str("obj"), obj).FromJust()); in TEST()
Dtest-serialize.cc212 CHECK_EQ(4, result.FromJust()); in UNINITIALIZED_TEST()
237 CHECK_EQ(4, result.FromJust()); in UNINITIALIZED_TEST()
577 .FromJust(); in UNINITIALIZED_TEST()
583 .FromJust(); in UNINITIALIZED_TEST()
589 .FromJust()); in UNINITIALIZED_TEST()
594 .FromJust(); in UNINITIALIZED_TEST()
600 .FromJust(); in UNINITIALIZED_TEST()
632 CHECK_EQ(42, result.FromJust()); in TEST()
649 CHECK_EQ(86, result.FromJust()); in TEST()
651 CHECK_EQ(43, result.FromJust()); in TEST()
[all …]
Dtest-log-stack-tracer.cc99 .FromJust(); in construct_call()
104 args.This()->Set(context, v8_str("low_bits"), v8_num(low_bits)).FromJust(); in construct_call()
105 args.This()->Set(context, v8_str("high_bits"), v8_num(high_bits)).FromJust(); in construct_call()
121 context->Global()->Set(context, v8_str(constructor_name), fun).FromJust(); in CreateFramePointerGrabberConstructor()
Dtest-receiver-check-hidden-prototype.cc61 CHECK(object->SetPrototype(current_context, hidden_prototype).FromJust()); in TEST()
70 .FromJust()); in TEST()
Dtest-javascript-arm64.cc64 CHECK_EQ(expected, result->BooleanValue(context).FromJust()); in ExpectBoolean()
71 CHECK_EQ(expected, result->Int32Value(context).FromJust()); in ExpectInt32()
78 CHECK_EQ(expected, result->NumberValue(context).FromJust()); in ExpectNumber()
Dtest-heap-profiler.cc250 CHECK(v8_str("native_bind")->Equals(env.local(), f->GetName()).FromJust()); in TEST()
479 CHECK(v8_str("symbol")->Equals(env.local(), a->GetName()).FromJust()); in TEST()
483 CHECK(v8_str("mySymbol")->Equals(env.local(), name->GetName()).FromJust()); in TEST()
544 CHECK(v8_str("WeakSet")->Equals(env.local(), ws->GetName()).FromJust()); in TEST()
568 CHECK(v8_str("WeakMap")->Equals(env.local(), wm->GetName()).FromJust()); in TEST()
617 CHECK(v8_str("Set")->Equals(env.local(), set->GetName()).FromJust()); in TEST()
641 CHECK(v8_str("Map")->Equals(env.local(), map->GetName()).FromJust()); in TEST()
924 .FromJust(); in TEST()
936 CHECK(parsed_snapshot->Has(env.local(), v8_str("snapshot")).FromJust()); in TEST()
937 CHECK(parsed_snapshot->Has(env.local(), v8_str("nodes")).FromJust()); in TEST()
[all …]
Dtest-global-handles.cc342 .FromJust(); in TEST()
370 value->Int32Value(v8_isolate->GetCurrentContext()).FromJust()); in TEST()
427 .FromJust(); in finalizer()
451 CHECK(o->Has(isolate->GetCurrentContext(), v8_str("finalizer")).FromJust()); in TEST()
Dtest-cpu-profiler.cc465 if (name_handle->Equals(context, child->GetFunctionName()).FromJust()) { in FindChild()
795 env->Global()->Set(env.local(), v8_str("instance"), instance).FromJust(); in TEST()
836 env->Global()->Set(env.local(), v8_str("instance"), instance).FromJust(); in TEST()
899 env->Global()->Set(env.local(), v8_str("instance"), instance).FromJust(); in TEST()
942 env->Global()->Set(env.local(), v8_str("instance"), instance).FromJust(); in TEST()
1307 env->Global()->Set(env, v8_str("CallJsFunction"), func).FromJust(); in TEST()
1359 env->Global()->Set(env, v8_str("CallJsFunction"), func).FromJust(); in TEST()
1415 env->Global()->Set(env, v8_str("CallJsFunction1"), func1).FromJust(); in TEST()
1422 env->Global()->Set(env, v8_str("CallJsFunction2"), func2).FromJust(); in TEST()
1456 env->Global()->Set(env, v8_str("CallCollectSample"), func).FromJust(); in TEST()
[all …]
/external/v8/src/runtime/
Druntime-operators.cc118 return isolate->heap()->ToBoolean(result.FromJust()); in RUNTIME_FUNCTION()
128 return isolate->heap()->ToBoolean(!result.FromJust()); in RUNTIME_FUNCTION()
154 return isolate->heap()->ToBoolean(result.FromJust()); in RUNTIME_FUNCTION()
164 return isolate->heap()->ToBoolean(result.FromJust()); in RUNTIME_FUNCTION()
174 return isolate->heap()->ToBoolean(result.FromJust()); in RUNTIME_FUNCTION()
184 return isolate->heap()->ToBoolean(result.FromJust()); in RUNTIME_FUNCTION()
Druntime-forin.cc62 if (result.FromJust() == ABSENT) { in HasEnumerableProperty()
72 } else if (result.FromJust() & DONT_ENUM) { in HasEnumerableProperty()
81 if (result.FromJust() != ABSENT) return it.GetName(); in HasEnumerableProperty()
88 if (result.FromJust() != ABSENT) return it.GetName(); in HasEnumerableProperty()
Druntime-object.cc165 if (maybe.FromJust()) return isolate->heap()->true_value(); in RUNTIME_FUNCTION()
184 return isolate->heap()->ToBoolean(maybe.FromJust()); in RUNTIME_FUNCTION()
195 return isolate->heap()->ToBoolean(result.FromJust()); in RUNTIME_FUNCTION()
460 return isolate->heap()->ToBoolean(result.FromJust()); in DeleteProperty()
507 return isolate->heap()->ToBoolean(maybe.FromJust()); in RUNTIME_FUNCTION()
521 if (maybe.FromJust() == ABSENT) return isolate->heap()->false_value(); in RUNTIME_FUNCTION()
522 return isolate->heap()->ToBoolean((maybe.FromJust() & DONT_ENUM) == 0); in RUNTIME_FUNCTION()
883 switch (result.FromJust()) { in RUNTIME_FUNCTION()
906 return isolate->heap()->ToBoolean(result.FromJust()); in RUNTIME_FUNCTION()
/external/v8/src/extensions/
Dstatistics-extension.cc34 .FromJust(); in AddCounter()
45 v8::Number::New(isolate, static_cast<double>(value))).FromJust(); in AddNumber()
56 v8::Number::New(isolate, static_cast<double>(value))).FromJust(); in AddNumber64()
/external/pdfium/fpdfsdk/src/jsapi/
Dfxjs_v8.cpp319 v8Context->Global()->Set(v8Context, m_ObjName, obj).FromJust(); in FXJS_InitializeRuntime()
586 FXJS_WSToJSString(pIsolate, sValue)).FromJust(); in FXJS_PutObjectString()
597 v8::Int32::New(pIsolate, nValue)).FromJust(); in FXJS_PutObjectNumber()
608 v8::Number::New(pIsolate, (double)fValue)).FromJust(); in FXJS_PutObjectNumber()
619 v8::Number::New(pIsolate, (double)dValue)).FromJust(); in FXJS_PutObjectNumber()
630 v8::Boolean::New(pIsolate, bValue)).FromJust(); in FXJS_PutObjectBoolean()
640 FXJS_WSToJSString(pIsolate, PropertyName), pPut).FromJust(); in FXJS_PutObjectObject()
650 v8::Local<v8::Object>()).FromJust(); in FXJS_PutObjectNull()
/external/v8/src/
Dcontexts.cc162 if (!found.IsJust() || !found.FromJust()) return found; in UnscopableLookup()
300 maybe = Just(found.FromJust() ? NONE : ABSENT); in Lookup()
309 *attributes = maybe.FromJust(); in Lookup()
311 if (maybe.FromJust() != ABSENT) { in Lookup()

123