Home | History | Annotate | Download | only in src

Lines Matching refs:Isolate

15 #include "src/isolate.h"
25 Isolate* isolate,
30 Factory* factory = isolate->factory();
36 Handle<Object> get = v8::FromCData(isolate, getter);
37 Handle<Object> set = v8::FromCData(isolate, setter);
45 Isolate* isolate,
47 Factory* factory = isolate->factory();
60 static C* FindInstanceOf(Isolate* isolate, Object* obj) {
61 for (PrototypeIterator iter(isolate, obj,
88 Isolate* isolate = name->GetIsolate();
91 return CheckForName(name, isolate->factory()->length_string(),
101 CheckForName(name, isolate->factory()->length_string(),
105 CheckForName(name, isolate->factory()->length_string(),
107 CheckForName(name, isolate->factory()->byte_length_string(),
109 CheckForName(name, isolate->factory()->byte_offset_string(),
113 CheckForName(name, isolate->factory()->byte_length_string(),
117 CheckForName(name, isolate->factory()->byte_length_string(),
119 CheckForName(name, isolate->factory()->byte_offset_string(),
140 Isolate* isolate, const v8::PropertyCallbackInfo<void>& info,
165 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
167 HandleScope scope(isolate);
168 Object* result = isolate->native_context()->array_values_iterator();
169 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate)));
176 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
177 HandleScope scope(isolate);
181 if (SetPropertyOnInstanceIfInherited(isolate, info, name, value)) return;
191 Isolate* isolate, PropertyAttributes attributes) {
192 Handle<Name> name(isolate->native_context()->iterator_symbol(), isolate);
193 return MakeAccessor(isolate, name, &ArgumentsIteratorGetter,
204 Handle<Object> Accessors::FlattenNumber(Isolate* isolate,
210 if (wrapper->map() == isolate->number_function()->initial_map()) {
211 return handle(wrapper->value(), isolate);
221 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
223 HandleScope scope(isolate);
226 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate)));
234 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
235 HandleScope scope(isolate);
238 if (SetPropertyOnInstanceIfInherited(isolate, info, name, value)) {
242 value = FlattenNumber(isolate, value);
247 maybe = Execution::ToUint32(isolate, value);
249 isolate->OptionalRescheduleException(false);
253 maybe = Execution::ToNumber(isolate, value);
255 isolate->OptionalRescheduleException(false);
266 maybe = isolate->factory()->NewRangeError("invalid_array_length",
269 isolate->OptionalRescheduleException(false);
273 isolate->ScheduleThrow(*exception);
278 Isolate* isolate, PropertyAttributes attributes) {
279 return MakeAccessor(isolate,
280 isolate->factory()->length_string(),
295 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
297 HandleScope scope(isolate);
311 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate)));
324 Isolate* isolate, PropertyAttributes attributes) {
325 return MakeAccessor(isolate,
326 isolate->factory()->length_string(),
341 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
343 HandleScope scope(isolate);
346 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate)));
359 Isolate* isolate, PropertyAttributes attributes) {
360 Handle<String> name(isolate->factory()->InternalizeOneByteString(
362 return MakeAccessor(isolate,
378 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
380 HandleScope scope(isolate);
383 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(id, isolate)));
396 Isolate* isolate, PropertyAttributes attributes) {
398 isolate->factory()->InternalizeOneByteString(STATIC_CHAR_VECTOR("id")));
399 return MakeAccessor(isolate,
415 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
417 HandleScope scope(isolate);
420 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(source, isolate)));
433 Isolate* isolate, PropertyAttributes attributes) {
434 return MakeAccessor(isolate,
435 isolate->factory()->name_string(),
450 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
452 HandleScope scope(isolate);
455 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(source, isolate)));
468 Isolate* isolate, PropertyAttributes attributes) {
469 return MakeAccessor(isolate,
470 isolate->factory()->source_string(),
485 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
487 HandleScope scope(isolate);
490 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate)));
503 Isolate* isolate, PropertyAttributes attributes) {
504 Handle<String> name(isolate->factory()->InternalizeOneByteString(
506 return MakeAccessor(isolate,
522 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
524 HandleScope scope(isolate);
527 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate)));
540 Isolate* isolate, PropertyAttributes attributes) {
542 isolate->factory()->InternalizeOneByteString(STATIC_CHAR_VECTOR("type")));
543 return MakeAccessor(isolate,
559 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
561 HandleScope scope(isolate);
565 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate)));
578 Isolate* isolate, PropertyAttributes attributes) {
579 Handle<String> name(isolate->factory()->InternalizeOneByteString(
581 return MakeAccessor(isolate,
597 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
598 HandleScope scope(isolate);
601 Script::cast(Handle<JSValue>::cast(object)->value()), isolate);
606 DCHECK(*line_ends == isolate->heap()->empty_fixed_array() ||
607 line_ends->map() == isolate->heap()->fixed_cow_array_map());
609 isolate->factory()->NewJSArrayWithElements(line_ends);
623 Isolate* isolate, PropertyAttributes attributes) {
624 Handle<String> name(isolate->factory()->InternalizeOneByteString(
626 return MakeAccessor(isolate,
642 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
644 HandleScope scope(isolate);
647 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(url, isolate)));
660 Isolate* isolate, PropertyAttributes attributes) {
661 return MakeAccessor(isolate,
662 isolate->factory()->source_url_string(),
677 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
679 HandleScope scope(isolate);
683 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(url, isolate)));
696 Isolate* isolate, PropertyAttributes attributes) {
697 return MakeAccessor(isolate,
698 isolate->factory()->source_mapping_url_string(),
713 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
715 HandleScope scope(isolate);
718 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate)));
731 Isolate* isolate, PropertyAttributes attributes) {
732 Handle<String> name(isolate->factory()->InternalizeOneByteString(
734 return MakeAccessor(isolate,
750 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
751 HandleScope scope(isolate);
754 Script::cast(Handle<JSValue>::cast(object)->value()), isolate);
755 Handle<Object> result = isolate->factory()->undefined_value();
778 Isolate* isolate, PropertyAttributes attributes) {
779 Handle<String> name(isolate->factory()->InternalizeOneByteString(
781 return MakeAccessor(isolate,
797 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
798 HandleScope scope(isolate);
801 Script::cast(Handle<JSValue>::cast(object)->value()), isolate);
802 Handle<Object> result = isolate->factory()->undefined_value();
809 isolate);
824 Isolate* isolate, PropertyAttributes attributes) {
825 Handle<String> name(isolate->factory()->InternalizeOneByteString(
827 return MakeAccessor(isolate,
843 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
844 HandleScope scope(isolate);
847 Script::cast(Handle<JSValue>::cast(object)->value()), isolate);
853 result = Handle<Object>(shared->name(), isolate);
855 result = Handle<Object>(shared->inferred_name(), isolate);
870 Isolate* isolate, PropertyAttributes attributes) {
871 Handle<String> name(isolate->factory()->InternalizeOneByteString(
873 return MakeAccessor(isolate,
885 static Handle<Object> GetFunctionPrototype(Isolate* isolate,
888 Handle<Object> proto = isolate->factory()->NewFunctionPrototype(function);
891 return Handle<Object>(function->prototype(), isolate);
895 static Handle<Object> SetFunctionPrototype(Isolate* isolate,
902 old_value = handle(function->prototype(), isolate);
904 old_value = isolate->factory()->NewFunctionPrototype(function);
912 function, "update", isolate->factory()->prototype_string(), old_value);
927 Isolate* isolate = function->GetIsolate();
928 return SetFunctionPrototype(isolate, function, prototype);
935 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
936 HandleScope scope(isolate);
939 Handle<Object> result = GetFunctionPrototype(isolate, function);
948 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
949 HandleScope scope(isolate);
951 if (SetPropertyOnInstanceIfInherited(isolate, info, name, value)) {
956 SetFunctionPrototype(isolate, object, value);
961 Isolate* isolate, PropertyAttributes attributes) {
962 return MakeAccessor(isolate,
963 isolate->factory()->prototype_string(),
978 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
979 HandleScope scope(isolate);
992 if (isolate->has_pending_exception()) {
993 isolate->OptionalRescheduleException(false);
996 Handle<Object> result(Smi::FromInt(length), isolate);
1011 Isolate* isolate, PropertyAttributes attributes) {
1012 return MakeAccessor(isolate,
1013 isolate->factory()->length_string(),
1028 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
1029 HandleScope scope(isolate);
1032 Handle<Object> result(function->shared()->name(), isolate);
1047 Isolate* isolate, PropertyAttributes attributes) {
1048 return MakeAccessor(isolate,
1049 isolate->factory()->name_string(),
1065 Isolate* isolate = inlined_function->GetIsolate();
1066 Factory* factory = isolate->factory();
1076 slot_refs.Prepare(isolate);
1078 Handle<Object> value = slot_refs.GetNext(isolate, 0);
1081 slot_refs.Finish(isolate);
1101 Handle<Object> GetFunctionArguments(Isolate* isolate,
1103 if (function->shared()->native()) return isolate->factory()->null_value();
1106 for (JavaScriptFrameIterator it(isolate); !it.done(); it.Advance()) {
1123 isolate->heap()->arguments_string());
1125 Handle<Object> arguments(frame->GetExpression(index), isolate);
1139 Handle<JSObject> arguments = isolate->factory()->NewArgumentsObject(
1141 Handle<FixedArray> array = isolate->factory()->NewFixedArray(length);
1153 return isolate->factory()->null_value();
1165 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
1166 HandleScope scope(isolate);
1169 Handle<Object> result = GetFunctionArguments(isolate, function);
1184 Isolate* isolate, PropertyAttributes attributes) {
1185 return MakeAccessor(isolate,
1186 isolate->factory()->arguments_string(),
1206 FrameFunctionIterator(Isolate* isolate, const DisallowHeapAllocation& promise)
1207 : isolate_(isolate),
1208 frame_iterator_(isolate),
1249 Isolate* isolate_;
1256 MaybeHandle<JSFunction> FindCaller(Isolate* isolate,
1259 FrameFunctionIterator it(isolate, no_allocation);
1298 if (!AllowAccessToFunction(isolate->context(), caller)) {
1308 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate());
1309 HandleScope scope(isolate);
1314 maybe_caller = FindCaller(isolate, function);
1319 result = isolate->factory()->null_value();
1335 Isolate* isolate, PropertyAttributes attributes) {
1336 return MakeAccessor(isolate,
1337 isolate->factory()->caller_string(),
1356 Isolate* isolate = instance->GetIsolate();
1361 MaybeHandle<Object> maybe = isolate->factory()->NewReferenceError(
1364 isolate->OptionalRescheduleException(false);
1368 isolate->ScheduleThrow(*exception);
1371 info.GetReturnValue().Set(v8::Utils::ToLocal(Handle<Object>(value, isolate)));
1384 Isolate* isolate = context->GetIsolate();
1388 MaybeHandle<Object> maybe = isolate->factory()->NewReferenceError(
1391 isolate->OptionalRescheduleException(false);
1395 isolate->ScheduleThrow(*exception);
1406 Isolate* isolate = name->GetIsolate();
1407 Factory* factory = isolate->factory();
1414 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport);
1415 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport);