Home
last modified time | relevance | path

Searched refs:isolate (Results 1 – 25 of 243) sorted by relevance

12345678910

/external/v8/src/
Dapi.cc62 #define LOG_API(isolate, expr) LOG(isolate, ApiEntryCall(expr)) argument
64 #define ENTER_V8(isolate) \ argument
65 ASSERT((isolate)->IsInitialized()); \
66 i::VMState __state__((isolate), i::OTHER)
67 #define LEAVE_V8(isolate) \ argument
68 i::VMState __state__((isolate), i::EXTERNAL)
72 #define ON_BAILOUT(isolate, location, code) \ argument
73 if (IsDeadCheck(isolate, location) || \
74 IsExecutionTerminatingCheck(isolate)) { \
80 #define EXCEPTION_PREAMBLE(isolate) \ argument
[all …]
Dfactory.cc46 isolate(), in NewFixedArray()
47 isolate()->heap()->AllocateFixedArray(size, pretenure), in NewFixedArray()
56 isolate(), in NewFixedArrayWithHoles()
57 isolate()->heap()->AllocateFixedArrayWithHoles(size, pretenure), in NewFixedArrayWithHoles()
66 isolate(), in NewFixedDoubleArray()
67 isolate()->heap()->AllocateUninitializedFixedDoubleArray(size, pretenure), in NewFixedDoubleArray()
74 CALL_HEAP_FUNCTION(isolate(), in NewStringDictionary()
83 CALL_HEAP_FUNCTION(isolate(), in NewSeededNumberDictionary()
92 CALL_HEAP_FUNCTION(isolate(), in NewUnseededNumberDictionary()
100 CALL_HEAP_FUNCTION(isolate(), in NewObjectHashSet()
[all …]
Dassembler.cc123 AssemblerBase::AssemblerBase(Isolate* isolate) in AssemblerBase() argument
124 : isolate_(isolate), in AssemblerBase()
126 if (FLAG_mask_constants_with_cookie && isolate != NULL) { in AssemblerBase()
127 jit_cookie_ = V8::RandomPrivate(isolate); in AssemblerBase()
729 ExternalReference::ExternalReference(Builtins::CFunctionId id, Isolate* isolate) in ExternalReference() argument
730 : address_(Redirect(isolate, Builtins::c_function_address(id))) {} in ExternalReference()
736 Isolate* isolate = NULL) in ExternalReference() argument
737 : address_(Redirect(isolate, fun->address(), type)) {} in ExternalReference()
740 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) in ExternalReference() argument
741 : address_(isolate->builtins()->builtin_address(name)) {} in ExternalReference()
[all …]
Dexecution.cc75 Isolate* isolate = function->GetIsolate(); in Invoke() local
78 VMState state(isolate, JS); in Invoke()
90 ? isolate->factory()->js_construct_entry_code() in Invoke()
91 : isolate->factory()->js_entry_code(); in Invoke()
108 SaveContext save(isolate); in Invoke()
129 isolate->ReportPendingMessages(); in Invoke()
130 if (isolate->pending_exception() == Failure::OutOfMemoryException()) { in Invoke()
131 if (!isolate->ignore_out_of_memory()) { in Invoke()
137 isolate->clear_pending_message(); in Invoke()
140 return Handle<Object>(value->ToObjectUnchecked(), isolate); in Invoke()
[all …]
Druntime.cc68 if (!(value)) return isolate->ThrowIllegalOperation();
139 MUST_USE_RESULT static MaybeObject* DeepCopyBoilerplate(Isolate* isolate, in DeepCopyBoilerplate() argument
141 StackLimitCheck check(isolate); in DeepCopyBoilerplate()
142 if (check.HasOverflowed()) return isolate->StackOverflow(); in DeepCopyBoilerplate()
144 Heap* heap = isolate->heap(); in DeepCopyBoilerplate()
158 { MaybeObject* maybe_result = DeepCopyBoilerplate(isolate, js_object); in DeepCopyBoilerplate()
169 { MaybeObject* maybe_result = DeepCopyBoilerplate(isolate, js_object); in DeepCopyBoilerplate()
195 { MaybeObject* maybe_result = DeepCopyBoilerplate(isolate, js_object); in DeepCopyBoilerplate()
215 isolate->counters()->cow_arrays_created_runtime()->Increment(); in DeepCopyBoilerplate()
229 { MaybeObject* maybe_result = DeepCopyBoilerplate(isolate, in DeepCopyBoilerplate()
[all …]
Dassembler.h60 explicit AssemblerBase(Isolate* isolate);
62 Isolate* isolate() const { return isolate_; } in isolate() function
544 ExternalReference(Builtins::CFunctionId id, Isolate* isolate);
546 ExternalReference(ApiFunction* ptr, Type type, Isolate* isolate);
548 ExternalReference(Builtins::Name name, Isolate* isolate);
550 ExternalReference(Runtime::FunctionId id, Isolate* isolate);
552 ExternalReference(const Runtime::Function* f, Isolate* isolate);
554 ExternalReference(const IC_Utility& ic_utility, Isolate* isolate);
557 ExternalReference(const Debug_Address& debug_address, Isolate* isolate);
562 ExternalReference(Isolate::AddressId id, Isolate* isolate);
[all …]
Dhandles.cc49 Isolate* isolate = Isolate::Current(); in NumberOfHandles() local
50 HandleScopeImplementer* impl = isolate->handle_scope_implementer(); in NumberOfHandles()
54 (isolate->handle_scope_data()->next - impl->blocks()->last())); in NumberOfHandles()
59 Isolate* isolate = Isolate::Current(); in Extend() local
61 isolate->handle_scope_data(); in Extend()
73 HandleScopeImplementer* impl = isolate->handle_scope_implementer(); in Extend()
99 void HandleScope::DeleteExtensions(Isolate* isolate) { in DeleteExtensions() argument
100 ASSERT(isolate == Isolate::Current()); in DeleteExtensions()
102 isolate->handle_scope_data(); in DeleteExtensions()
103 isolate->handle_scope_implementer()->DeleteExtensions(current->limit); in DeleteExtensions()
[all …]
Dcompilation-cache.cc50 CompilationCache::CompilationCache(Isolate* isolate) in CompilationCache() argument
51 : isolate_(isolate), in CompilationCache()
52 script_(isolate, kScriptGenerations), in CompilationCache()
53 eval_global_(isolate, kEvalGlobalGenerations), in CompilationCache()
54 eval_contextual_(isolate, kEvalContextualGenerations), in CompilationCache()
55 reg_exp_(isolate, kRegExpGenerations), in CompilationCache()
68 static Handle<CompilationCacheTable> AllocateTable(Isolate* isolate, int size) { in AllocateTable() argument
69 CALL_HEAP_FUNCTION(isolate, in AllocateTable()
79 result = AllocateTable(isolate(), kInitialCacheSize); in GetTable()
84 result = Handle<CompilationCacheTable>(table, isolate()); in GetTable()
[all …]
Dserialize.cc65 ExternalReferenceTable* ExternalReferenceTable::instance(Isolate* isolate) { in instance() argument
67 isolate->external_reference_table(); in instance()
69 external_reference_table = new ExternalReferenceTable(isolate); in instance()
70 isolate->set_external_reference_table(external_reference_table); in instance()
79 Isolate* isolate) { in AddFromId() argument
83 ExternalReference ref(static_cast<Builtins::CFunctionId>(id), isolate); in AddFromId()
88 ExternalReference ref(static_cast<Builtins::Name>(id), isolate); in AddFromId()
93 ExternalReference ref(static_cast<Runtime::FunctionId>(id), isolate); in AddFromId()
99 isolate); in AddFromId()
126 void ExternalReferenceTable::PopulateTable(Isolate* isolate) { in PopulateTable() argument
[all …]
Dcompiler.cc142 Isolate* isolate = Isolate::Current(); in is_debugging_active() local
144 isolate->debug()->has_break_points() : in is_debugging_active()
145 isolate->debugger()->IsDebuggerActive(); in is_debugging_active()
297 TypeFeedbackOracle oracle(code, global_context, info->isolate()); in MakeCrankshaftCode()
301 if (info->isolate()->has_pending_exception()) { in MakeCrankshaftCode()
358 Isolate* isolate = info->isolate(); in MakeFunctionInfo() local
359 ZoneScope zone_scope(isolate, DELETE_ON_EXIT); in MakeFunctionInfo()
360 PostponeInterruptsScope postpone(isolate); in MakeFunctionInfo()
362 ASSERT(!isolate->global_context().is_null()); in MakeFunctionInfo()
364 script->set_context_data((*isolate->global_context())->data()); in MakeFunctionInfo()
[all …]
Daccessors.cc105 Isolate* isolate = object->GetIsolate(); in ArraySetLength() local
112 isolate->heap()->length_symbol(), value, NONE); in ArraySetLength()
118 HandleScope scope(isolate); in ArraySetLength()
121 Handle<JSObject> object_handle(object, isolate); in ArraySetLength()
122 Handle<Object> value_handle(value, isolate); in ArraySetLength()
133 return isolate->Throw( in ArraySetLength()
134 *isolate->factory()->NewRangeError("invalid_array_length", in ArraySetLength()
319 Isolate* isolate = wrapper->GetIsolate(); in ScriptGetLineEnds() local
320 HandleScope scope(isolate); in ScriptGetLineEnds()
321 Handle<Script> script(Script::cast(wrapper->value()), isolate); in ScriptGetLineEnds()
[all …]
Disolate-inl.h39 SaveContext::SaveContext(Isolate* isolate) : prev_(isolate->save_context()) { in SaveContext() argument
40 if (isolate->context() != NULL) { in SaveContext()
41 context_ = Handle<Context>(isolate->context()); in SaveContext()
43 dummy_ = Handle<Context>(isolate->context()); in SaveContext()
46 isolate->set_save_context(this); in SaveContext()
48 c_entry_fp_ = isolate->c_entry_fp(isolate->thread_local_top()); in SaveContext()
Dcpu-profiler.cc175 Isolate* isolate = Isolate::Current(); in AddCurrentStack() local
176 sample->state = isolate->current_vm_state(); in AddCurrentStack()
178 for (StackTraceFrameIterator it(isolate); in AddCurrentStack()
275 Isolate* isolate = Isolate::Current(); in StopProfiling() local
276 return is_profiling(isolate) ? in StopProfiling()
277 isolate->cpu_profiler()->StopCollectingProfile(title) : NULL; in StopProfiling()
282 Isolate* isolate = Isolate::Current(); in StopProfiling() local
283 return is_profiling(isolate) ? in StopProfiling()
284 isolate->cpu_profiler()->StopCollectingProfile( in StopProfiling()
313 TickSample* CpuProfiler::TickSampleEvent(Isolate* isolate) { in TickSampleEvent() argument
[all …]
Dic.h93 IC(FrameDepth depth, Isolate* isolate);
140 Isolate* isolate() const { return isolate_; } in isolate() function
214 CallICBase(Code::Kind kind, Isolate* isolate) in CallICBase() argument
215 : IC(EXTRA_CALL_FRAME, isolate), kind_(kind) {} in CallICBase()
267 explicit CallIC(Isolate* isolate) : CallICBase(Code::CALL_IC, isolate) { in CallIC() argument
297 explicit KeyedCallIC(Isolate* isolate) in KeyedCallIC() argument
298 : CallICBase(Code::KEYED_CALL_IC, isolate) { in KeyedCallIC()
324 explicit LoadIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { in LoadIC() argument
357 return isolate()->builtins()->LoadIC_Megamorphic(); in megamorphic_stub()
364 return isolate()->builtins()->LoadIC_PreMonomorphic(); in pre_monomorphic_stub()
[all …]
Dic.cc74 Isolate* isolate = new_target->GetIsolate(); in TraceIC() local
75 Code* apply_builtin = isolate->builtins()->builtin( in TraceIC()
112 IC::IC(FrameDepth depth, Isolate* isolate) : isolate_(isolate) { in IC() argument
113 ASSERT(isolate == Isolate::Current()); in IC()
118 Isolate::c_entry_fp(isolate->thread_local_top()); in IC()
172 static bool HasNormalObjectsInPrototypeChain(Isolate* isolate, in HasNormalObjectsInPrototypeChain() argument
176 ? lookup->holder() : Object::cast(isolate->heap()->null_value()); in HasNormalObjectsInPrototypeChain()
269 Code* code = Code::cast(isolate()->heap()->FindCodeObject(addr)); in ComputeMode()
283 HandleScope scope(isolate()); in TypeError()
285 Handle<Object> error = isolate()->factory()->NewTypeError( in TypeError()
[all …]
Dbuiltins.cc129 name##ArgumentsType args, Isolate* isolate); \
131 name##ArgumentsType args, Isolate* isolate) { \
132 ASSERT(isolate == Isolate::Current()); \
134 return Builtin_Impl_##name(args, isolate); \
137 name##ArgumentsType args, Isolate* isolate)
142 static MaybeObject* Builtin_##name(name##ArgumentsType args, Isolate* isolate)
147 static inline bool CalledAsConstructor(Isolate* isolate) { in CalledAsConstructor() argument
158 Address fp = Isolate::c_entry_fp(isolate->thread_local_top()); in CalledAsConstructor()
179 return isolate->heap()->undefined_value(); // Make compiler happy. in BUILTIN()
184 return isolate->heap()->undefined_value(); in BUILTIN()
[all …]
Dvm-state-inl.h61 VMState::VMState(Isolate* isolate, StateTag tag) in VMState() argument
62 : isolate_(isolate), previous_tag_(isolate->current_vm_state()) { in VMState()
64 LOG(isolate, UncheckedStringEvent("Entering", StateToString(tag))); in VMState()
65 LOG(isolate, UncheckedStringEvent("From", StateToString(previous_tag_))); in VMState()
85 ExternalCallbackScope::ExternalCallbackScope(Isolate* isolate, Address callback) in ExternalCallbackScope() argument
86 : isolate_(isolate), previous_callback_(isolate->external_callback()) { in ExternalCallbackScope()
Dv8threads.cc47 Locker::Locker(v8::Isolate* isolate) in Locker() argument
50 isolate_(reinterpret_cast<i::Isolate*>(isolate)) { in Locker()
88 bool Locker::IsLocked(v8::Isolate* isolate) { in IsLocked() argument
89 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate); in IsLocked()
118 Unlocker::Unlocker(v8::Isolate* isolate) in Unlocker() argument
119 : isolate_(reinterpret_cast<i::Isolate*>(isolate)) { in Unlocker()
410 ContextSwitcher::ContextSwitcher(Isolate* isolate, int every_n_ms) in ContextSwitcher() argument
414 isolate_(isolate) { in ContextSwitcher()
421 Isolate* isolate = Isolate::Current(); in StartPreemption() local
422 ASSERT(Locker::IsLocked(reinterpret_cast<v8::Isolate*>(isolate))); in StartPreemption()
[all …]
Dhandles-inl.h56 Handle<T>::Handle(T* obj, Isolate* isolate) { in Handle() argument
58 location_ = HandleScope::CreateHandle(obj, isolate); in Handle()
71 Isolate* isolate = Isolate::Current(); in HandleScope() local
73 isolate->handle_scope_data(); in HandleScope()
74 isolate_ = isolate; in HandleScope()
81 HandleScope::HandleScope(Isolate* isolate) { in HandleScope() argument
82 ASSERT(isolate == Isolate::Current()); in HandleScope()
84 isolate->handle_scope_data(); in HandleScope()
85 isolate_ = isolate; in HandleScope()
132 T** HandleScope::CreateHandle(T* value, Isolate* isolate) { in CreateHandle() argument
[all …]
Dregexp-macro-assembler.cc110 Isolate* isolate) { in Match() argument
152 isolate); in Match()
164 Isolate* isolate) { in Execute() argument
165 ASSERT(isolate == Isolate::Current()); in Execute()
167 RegExpStackScope stack_scope(isolate); in Execute()
179 isolate); in Execute()
183 if (result == EXCEPTION && !isolate->has_pending_exception()) { in Execute()
186 isolate->StackOverflow(); in Execute()
219 Isolate* isolate) { in CaseInsensitiveCompareUC16() argument
220 ASSERT(isolate == Isolate::Current()); in CaseInsensitiveCompareUC16()
[all …]
Djson-parser.h151 inline Isolate* isolate() { return isolate_; } in isolate() function
168 isolate_ = source->map()->GetHeap()->isolate(); in ParseJson()
187 Factory* factory = isolate()->factory(); in ParseJson()
226 isolate()->Throw(*result, &location); in ParseJson()
255 return isolate()->factory()->false_value(); in ParseJsonValue()
263 return isolate()->factory()->true_value(); in ParseJsonValue()
271 return isolate()->factory()->null_value(); in ParseJsonValue()
289 isolate()->global_context()->object_function()); in ParseJsonObject()
291 isolate()->factory()->NewJSObject(object_constructor); in ParseJsonObject()
307 } else if (key->Equals(isolate()->heap()->Proto_symbol())) { in ParseJsonObject()
[all …]
Darguments.h90 inline CustomArguments(Isolate* isolate, in CustomArguments() argument
93 JSObject* holder) : Relocatable(isolate) { in CustomArguments()
99 inline explicit CustomArguments(Isolate* isolate) : Relocatable(isolate) { in CustomArguments() argument
115 Type Name(Arguments args, Isolate* isolate)
119 Type Name(Arguments args, Isolate* isolate)
122 #define RUNTIME_ARGUMENTS(isolate, args) args, isolate argument
Dv8.cc78 ASSERT(i::Isolate::CurrentPerIsolateThreadData()->isolate() == in Initialize()
83 Isolate* isolate = Isolate::Current(); in Initialize() local
84 if (isolate->IsInitialized()) return true; in Initialize()
91 return isolate->Init(des); in Initialize()
102 Isolate* isolate = Isolate::Current(); in TearDown() local
103 ASSERT(isolate->IsDefaultIsolate()); in TearDown()
106 isolate->TearDown(); in TearDown()
168 uint32_t V8::RandomPrivate(Isolate* isolate) { in RandomPrivate() argument
169 ASSERT(isolate == Isolate::Current()); in RandomPrivate()
170 return random_base(isolate->private_random_seed()); in RandomPrivate()
[all …]
/external/v8/test/cctest/
Dtest-lockers.cc61 KangarooThread(v8::Isolate* isolate, in KangarooThread() argument
64 isolate_(isolate), context_(context), value_(value) { in KangarooThread()
98 v8::Isolate* isolate = v8::Isolate::New(); in TEST() local
101 v8::Locker locker(isolate); in TEST()
102 v8::Isolate::Scope isolate_scope(isolate); in TEST()
106 CHECK_EQ(isolate, v8::internal::Isolate::Current()); in TEST()
109 KangarooThread thread1(isolate, context, 1); in TEST()
175 explicit IsolateLockingThreadWithLocalContext(v8::Isolate* isolate) in IsolateLockingThreadWithLocalContext() argument
177 isolate_(isolate) { in IsolateLockingThreadWithLocalContext()
213 v8::Isolate* isolate = v8::Isolate::New(); in TEST() local
[all …]
Dtest-spaces.cc107 TestMemoryAllocatorScope(Isolate* isolate, MemoryAllocator* allocator) in TestMemoryAllocatorScope() argument
108 : isolate_(isolate), in TestMemoryAllocatorScope()
109 old_allocator_(isolate->memory_allocator_) { in TestMemoryAllocatorScope()
110 isolate->memory_allocator_ = allocator; in TestMemoryAllocatorScope()
129 Isolate* isolate = Isolate::Current(); in TEST() local
130 isolate->InitializeLoggingAndCounters(); in TEST()
131 Heap* heap = isolate->heap(); in TEST()
132 CHECK(isolate->heap()->ConfigureHeapDefault()); in TEST()
134 MemoryAllocator* memory_allocator = new MemoryAllocator(isolate); in TEST()
179 Isolate* isolate = Isolate::Current(); in TEST() local
[all …]

12345678910