Lines Matching refs:JSThread
38 class JSThread : public ManagedThread {
45 static JSThread *Cast(ManagedThread *thread) in Cast()
48 return reinterpret_cast<JSThread *>(thread); in Cast()
51 JSThread(Runtime *runtime, PandaVM *vm);
53 ~JSThread() override;
57 static JSThread *Create(Runtime *runtime, PandaVM *vm);
232 return MEMBER_OFFSET(JSThread, propertiesCache_); in GetPropertiesCacheOffset()
237 return MEMBER_OFFSET(JSThread, globalObject_); in GetGlobalObjectOffset()
242 return MEMBER_OFFSET(JSThread, globalConst_); in GetGlobalConstantsOffset()
247 return MEMBER_OFFSET(JSThread, globalStorage_); in GetGlobalStorageOffset()
252 return MEMBER_OFFSET(JSThread, currentFrame_); in GetCurrentFrameOffset()
257 return MEMBER_OFFSET(JSThread, leaveFrame_); in GetLeaveFrameOffset()
262 return MEMBER_OFFSET(JSThread, runtimeFunctions_); in GetRuntimeFunctionsOffset()
267 return MEMBER_OFFSET(JSThread, fastStubEntries_); in GetFastStubEntriesOffset()
272 return MEMBER_OFFSET(JSThread, bytecodeHandlers_); in GetBytecodeHandlersOffset()
349 return MEMBER_OFFSET(JSThread, exception_); in GetExceptionOffset()
357 static JSThread *GlueToJSThread(uintptr_t glue) in GlueToJSThread()
360 return reinterpret_cast<JSThread *>(glue - GetExceptionOffset()); in GlueToJSThread()
385 NO_COPY_SEMANTIC(JSThread);
386 NO_MOVE_SEMANTIC(JSThread);
448 JSThread::MAX_BYTECODE_HANDLERS * sizeof(uint32_t), \
449 JSThread::MAX_BYTECODE_HANDLERS * sizeof(uint64_t)) \
451 JSThread::MAX_RUNTIME_FUNCTIONS * sizeof(uint32_t), \
452 JSThread::MAX_RUNTIME_FUNCTIONS * sizeof(uint64_t)) \
468 (JSThread::Get##camelName##Offset() - JSThread::GetExceptionOffset()));
479 (JSThread::Get##camelName##Offset() - JSThread::GetExceptionOffset()));