Searched refs:self (Results 1 - 25 of 363) sorted by relevance

1234567891011>>

/art/tools/checker/file_format/checker/
H A Dtest.py29 def tryParse(self, string):
33 def assertParses(self, string):
34 checkFile = self.tryParse(string)
35 self.assertEqual(len(checkFile.testCases), 1)
36 self.assertNotEqual(len(checkFile.testCases[0].assertions), 0)
38 def assertIgnored(self, string):
39 checkFile = self.tryParse(string)
40 self.assertEqual(len(checkFile.testCases), 1)
41 self.assertEqual(len(checkFile.testCases[0].assertions), 0)
43 def assertInvalid(self, strin
[all...]
H A Dstruct.py22 def __init__(self, fileName):
23 self.fileName = fileName
24 self.testCases = []
26 def addTestCase(self, new_test_case):
27 self.testCases.append(new_test_case)
29 def testCasesForArch(self, targetArch):
30 return [t for t in self.testCases if t.testArch == targetArch]
32 def __eq__(self, other):
33 return isinstance(other, self.__class__) \
34 and self
[all...]
/art/tools/checker/file_format/c1visualizer/
H A Dstruct.py20 def __init__(self, fileName):
21 self.fileName = fileName
22 self.passes = []
24 def addPass(self, new_pass):
25 self.passes.append(new_pass)
27 def findPass(self, name):
28 for entry in self.passes:
33 def __eq__(self, other):
34 return isinstance(other, self.__class__) \
35 and self
[all...]
H A Dtest.py26 def createFile(self, passList):
38 def assertParsesTo(self, c1Text, expectedData):
39 expectedFile = self.createFile(expectedData)
41 return self.assertEqual(expectedFile, actualFile)
43 def test_EmptyFile(self):
44 self.assertParsesTo("", [])
46 def test_SingleGroup(self):
47 self.assertParsesTo(
60 def test_MultipleGroups(self):
61 self
[all...]
/art/runtime/entrypoints/quick/
H A Dquick_thread_entrypoints.cc22 extern "C" void artTestSuspendFromCode(Thread* self) SHARED_REQUIRES(Locks::mutator_lock_) {
24 ScopedQuickEntrypointChecks sqec(self);
25 self->CheckSuspend();
H A Dquick_throw_entrypoints.cc26 extern "C" NO_RETURN void artDeliverPendingExceptionFromCode(Thread* self)
28 ScopedQuickEntrypointChecks sqec(self);
29 self->QuickDeliverException();
33 extern "C" NO_RETURN void artDeliverExceptionFromCode(mirror::Throwable* exception, Thread* self)
42 ScopedQuickEntrypointChecks sqec(self);
44 self->ThrowNewException("Ljava/lang/NullPointerException;", "throw with null exception");
46 self->SetException(exception);
48 self->QuickDeliverException();
52 extern "C" NO_RETURN void artThrowNullPointerExceptionFromCode(Thread* self)
54 ScopedQuickEntrypointChecks sqec(self);
[all...]
H A Dquick_deoptimization_entrypoints.cc32 extern "C" NO_RETURN void artDeoptimize(Thread* self) SHARED_REQUIRES(Locks::mutator_lock_) {
33 ScopedQuickEntrypointChecks sqec(self);
37 self->Dump(LOG(INFO));
40 self->AssertHasDeoptimizationContext();
41 self->SetException(Thread::GetDeoptimizationException());
42 self->QuickDeliverException();
45 extern "C" NO_RETURN void artDeoptimizeFromCompiledCode(Thread* self)
47 ScopedQuickEntrypointChecks sqec(self);
55 self->PushDeoptimizationContext(return_value, false, /* from_code */ true, self
[all...]
H A Dquick_jni_entrypoints.cc26 Thread* self ATTRIBUTE_UNUSED) {
33 extern uint32_t JniMethodStart(Thread* self) { argument
34 JNIEnvExt* env = self->GetJniEnv();
38 ArtMethod* native_method = *self->GetManagedStack()->GetTopQuickFrame();
41 self->TransitionFromRunnableToSuspended(kNative);
46 extern uint32_t JniMethodStartSynchronized(jobject to_lock, Thread* self) { argument
47 self->DecodeJObject(to_lock)->MonitorEnter(self);
48 return JniMethodStart(self);
52 static void GoToRunnable(Thread* self) NO_THREAD_SAFETY_ANALYSI
76 JniMethodEnd(uint32_t saved_local_ref_cookie, Thread* self) argument
81 JniMethodEndSynchronized(uint32_t saved_local_ref_cookie, jobject locked, Thread* self) argument
104 JniMethodEndWithReference(jobject result, uint32_t saved_local_ref_cookie, Thread* self) argument
110 JniMethodEndWithReferenceSynchronized(jobject result, uint32_t saved_local_ref_cookie, jobject locked, Thread* self) argument
126 GoToRunnable(self); variable
[all...]
H A Dquick_dexcache_entrypoints.cc28 extern "C" mirror::Class* artInitializeStaticStorageFromCode(uint32_t type_idx, Thread* self)
33 ScopedQuickEntrypointChecks sqec(self);
34 auto* caller = GetCalleeSaveMethodCaller(self, Runtime::kRefsOnly);
35 return ResolveVerifyAndClinit(type_idx, caller, self, true, false);
38 extern "C" mirror::Class* artInitializeTypeFromCode(uint32_t type_idx, Thread* self)
41 ScopedQuickEntrypointChecks sqec(self);
42 auto* caller = GetCalleeSaveMethodCaller(self, Runtime::kRefsOnly);
43 return ResolveVerifyAndClinit(type_idx, caller, self, false, false);
46 extern "C" mirror::Class* artInitializeTypeAndVerifyAccessFromCode(uint32_t type_idx, Thread* self)
50 ScopedQuickEntrypointChecks sqec(self);
[all...]
H A Dquick_lock_entrypoints.cc23 extern "C" int artLockObjectFromCode(mirror::Object* obj, Thread* self)
27 ScopedQuickEntrypointChecks sqec(self);
33 obj = obj->MonitorEnter(self); // May block
34 CHECK(self->HoldsLock(obj));
35 CHECK(!self->IsExceptionPending());
37 obj->MonitorEnter(self); // May block
44 extern "C" int artUnlockObjectFromCode(mirror::Object* obj, Thread* self)
48 ScopedQuickEntrypointChecks sqec(self);
54 return obj->MonitorExit(self) ? 0 /* Success */ : -1 /* Failure */;
/art/tools/checker/match/
H A Dtest.py31 def createTestAssertion(self, checkerString):
36 def tryMatch(self, checkerString, c1String, varState={}):
37 return MatchLines(self.createTestAssertion(checkerString),
41 def assertMatches(self, checkerString, c1String, varState={}):
42 self.assertIsNotNone(self.tryMatch(checkerString, c1String, varState))
44 def assertDoesNotMatch(self, checkerString, c1String, varState={}):
45 self.assertIsNone(self.tryMatch(checkerString, c1String, varState))
47 def test_TextAndWhitespace(self)
[all...]
/art/tools/checker/common/
H A Dmixins.py18 def __eq__(self, other):
19 return isinstance(other, self.__class__) \
20 and self.__dict__ == other.__dict__
25 def __repr__(self):
26 return "<%s: %s>" % (type(self).__name__, str(self.__dict__))
H A Dimmutables.py16 def __setitem__(self, key, value):
19 def __delitem__(self, key):
22 def copyWith(self, key, value):
23 newDict = ImmutableDict(self)
/art/test/968-default-partial-compile-generated/util-src/
H A Dgenerate_smali.py87 def __init__(self):
91 self.tests = set()
93 def get_expected(self):
97 all_tests = sorted(self.tests)
100 def add_test(self, ty):
104 self.tests.add(Func(ty))
106 def get_name(self):
112 def __str__(self):
116 all_tests = sorted(self.tests)
122 test_invoke += self
[all...]
/art/runtime/interpreter/mterp/
H A Dmterp_stub.cc32 void InitMterpTls(Thread* self) { argument
33 self->SetMterpDefaultIBase(nullptr);
34 self->SetMterpCurrentIBase(nullptr);
35 self->SetMterpAltIBase(nullptr);
41 extern "C" bool ExecuteMterpImpl(Thread* self, const DexFile::CodeItem* code_item,
44 UNUSED(self); UNUSED(shadow_frame); UNUSED(code_item); UNUSED(result_register);
/art/test/utils/python/testgen/
H A Dmixins.py31 def get_name(self):
43 def get_file_name(self):
48 def get_file_extension(self):
55 Gets a mixin that defines get_file_name(self) in terms of get_name(self) with the
61 A mixin defining get_file_name(self) in terms of get_name(self)
64 def get_file_name(self):
65 return self.get_name() + ext
67 def get_file_extension(self)
[all...]
/art/runtime/
H A Dbarrier.cc32 void Barrier::Pass(Thread* self) { argument
33 MutexLock mu(self, lock_);
34 SetCountLocked(self, count_ - 1);
37 void Barrier::Wait(Thread* self) { argument
38 Increment(self, -1);
41 void Barrier::Init(Thread* self, int count) { argument
42 MutexLock mu(self, lock_);
43 SetCountLocked(self, count);
46 void Barrier::Increment(Thread* self, int delta) { argument
47 MutexLock mu(self, lock
62 Increment(Thread* self, int delta, uint32_t timeout_ms) argument
83 SetCountLocked(Thread* self, int count) argument
[all...]
H A Dthread_list.cc80 Thread* self = Thread::Current(); local
82 MutexLock mu(self, *Locks::thread_list_lock_);
83 contains = Contains(self);
155 DIR* d = opendir("/proc/self/task");
160 Thread* self = Thread::Current(); local
168 MutexLock mu(self, *Locks::thread_list_lock_);
193 // Note thread and self may not be equal if thread was already suspended at the point of the
195 Thread* self = Thread::Current(); variable
198 ScopedObjectAccess soa(self);
204 MutexLock mu(self, *Lock
211 Thread* self = Thread::Current(); local
244 AssertThreadsAreSuspended(Thread* self, Thread* ignore1, Thread* ignore2) argument
282 Thread* self = Thread::Current(); local
363 Thread* self = Thread::Current(); local
397 Thread* self = Thread::Current(); local
465 Thread* self = Thread::Current(); local
521 SuspendAllInternal(Thread* self, Thread* ignore1, Thread* ignore2, bool debug_suspend) argument
628 Thread* self = Thread::Current(); local
682 Thread* self = Thread::Current(); local
712 ThreadSuspendByPeerWarning(Thread* self, LogSeverity severity, const char* message, jobject peer) argument
736 Thread* const self = Thread::Current(); local
842 Thread* const self = Thread::Current(); local
937 Thread* self = Thread::Current(); local
967 Thread* const self = Thread::Current(); local
1033 Thread* self = Thread::Current(); local
1083 Thread* self = Thread::Current(); local
1112 Thread* self = Thread::Current(); local
1144 Thread* self = Thread::Current(); local
1193 Register(Thread* self) argument
1228 Unregister(Thread* self) argument
1306 AllocThreadId(Thread* self) argument
1318 ReleaseThreadId(Thread* self, uint32_t id) argument
[all...]
/art/test/970-iface-super-resolution-generated/util-src/
H A Dgenerate_smali.py86 def __init__(self):
90 self.tests = set()
92 def add_test(self, ty):
96 self.tests.add(Func(ty))
98 def get_expected(self):
102 all_tests = sorted(self.tests)
105 def initial_build_different(self):
108 def get_name(self):
114 def __str__(self):
118 all_tests = sorted(self
[all...]
/art/test/971-iface-super/util-src/
H A Dgenerate_smali.py87 def __init__(self):
91 self.tests = set()
93 def get_expected(self):
97 all_tests = sorted(self.tests)
100 def add_test(self, ty):
104 self.tests.add(Func(ty))
106 def get_name(self):
112 def __str__(self):
116 all_tests = sorted(self.tests)
122 test_invoke += self
[all...]
/art/test/964-default-iface-init-generated/util-src/
H A Dgenerate_java.py66 def __init__(self):
70 self.tests = set()
72 def add_test(self, ty):
76 self.tests.add(Func(ty))
78 def get_expected(self):
82 all_tests = sorted(self.tests)
85 def get_name(self):
91 def __str__(self):
95 all_tests = sorted(self.tests)
101 test_invoke += self
[all...]
/art/runtime/entrypoints/jni/
H A Djni_entrypoints.cc29 Thread* self = Thread::Current(); local
31 extern "C" void* artFindNativeMethod(Thread* self) {
32 DCHECK_EQ(self, Thread::Current());
34 Locks::mutator_lock_->AssertNotHeld(self); // We come here as Native.
35 ScopedObjectAccess soa(self);
37 ArtMethod* method = self->GetCurrentMethod(nullptr);
44 DCHECK(self->IsExceptionPending());
/art/runtime/base/
H A Dmutex-inl.h49 static inline uint64_t SafeGetTid(const Thread* self) { argument
50 if (self != nullptr) {
51 return static_cast<uint64_t>(self->GetTid());
72 // no longer exist and so we expect an unlock with no self.
81 inline void BaseMutex::RegisterAsLocked(Thread* self) { argument
82 if (UNLIKELY(self == nullptr)) {
90 BaseMutex* held_mutex = self->GetHeldMutex(static_cast<LockLevel>(i));
109 self->SetHeldMutex(level_, this);
113 inline void BaseMutex::RegisterAsUnlocked(Thread* self) { argument
114 if (UNLIKELY(self
126 SharedLock(Thread* self) argument
147 SharedUnlock(Thread* self) argument
221 TransitionFromRunnableToSuspended(Thread* self) argument
226 TransitionFromSuspendedToRunnable(Thread* self) argument
[all...]
/art/runtime/gc/
H A Dscoped_gc_critical_section.cc27 ScopedGCCriticalSection::ScopedGCCriticalSection(Thread* self, argument
30 : self_(self) {
31 Runtime::Current()->GetHeap()->StartGC(self, cause, collector_type);
32 old_cause_ = self->StartAssertNoThreadSuspension("ScopedGCCriticalSection");
/art/test/961-default-iface-resolution-generated/util-src/
H A Dgenerate_java.py69 def __init__(self):
73 self.tests = set()
75 def get_expected(self):
79 all_tests = sorted(self.tests)
82 def add_test(self, ty):
86 self.tests.add(Func(ty))
88 def get_name(self):
94 def __str__(self):
98 all_tests = sorted(self.tests)
104 test_invoke += self
[all...]

Completed in 423 milliseconds

1234567891011>>