/external/llvm/lib/IR/ |
D | ValueTypes.cpp | 23 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedTypeToInteger() local 24 return getIntegerVT(Context, getSizeInBits()); in changeExtendedTypeToInteger() 28 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementTypeToInteger() local 29 EVT IntTy = getIntegerVT(Context, getVectorElementType().getSizeInBits()); in changeExtendedVectorElementTypeToInteger() 30 return getVectorVT(Context, IntTy, getVectorNumElements()); in changeExtendedVectorElementTypeToInteger() 33 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT() argument 35 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT() 40 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, in getExtendedVectorVT() argument 43 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT() 199 Type *EVT::getTypeForEVT(LLVMContext &Context) const { in getTypeForEVT() [all …]
|
D | MDBuilder.cpp | 21 return MDString::get(Context, Str); in createString() 33 createConstant(ConstantFP::get(Type::getFloatTy(Context), Accuracy)); in createFPMath() 34 return MDNode::get(Context, Op); in createFPMath() 48 Type *Int32Ty = Type::getInt32Ty(Context); in createBranchWeights() 52 return MDNode::get(Context, Vals); in createBranchWeights() 56 return MDNode::get(Context, None); in createUnpredictable() 60 Type *Int64Ty = Type::getInt64Ty(Context); in createFunctionEntryCount() 61 return MDNode::get(Context, in createFunctionEntryCount() 69 Type *Ty = IntegerType::get(Context, Lo.getBitWidth()); in createRange() 79 return MDNode::get(Context, {createConstant(Lo), createConstant(Hi)}); in createRange() [all …]
|
/external/v8/src/ |
D | contexts-inl.h | 33 Handle<Context> ScriptContextTable::GetContext(Handle<ScriptContextTable> table, in GetContext() 36 return Handle<Context>::cast(FixedArray::get(table, i + kFirstContextSlot)); in GetContext() 41 Context* Context::cast(Object* context) { in cast() 43 return reinterpret_cast<Context*>(context); in cast() 47 JSFunction* Context::closure() { return JSFunction::cast(get(CLOSURE_INDEX)); } in closure() 48 void Context::set_closure(JSFunction* closure) { set(CLOSURE_INDEX, closure); } in set_closure() 51 Context* Context::previous() { in previous() 54 return reinterpret_cast<Context*>(result); in previous() 56 void Context::set_previous(Context* context) { set(PREVIOUS_INDEX, context); } in set_previous() 59 bool Context::has_extension() { return !extension()->IsTheHole(); } in has_extension() [all …]
|
D | contexts.cc | 17 Handle<ScriptContextTable> table, Handle<Context> script_context) { in Extend() 43 Handle<Context> context = GetContext(table, i); in Lookup() 60 bool Context::is_declaration_context() { in is_declaration_context() 73 Context* Context::declaration_context() { in declaration_context() 74 Context* current = this; in declaration_context() 83 JSObject* Context::extension_object() { in extension_object() 97 JSReceiver* Context::extension_receiver() { in extension_receiver() 104 ScopeInfo* Context::scope_info() { in scope_info() 115 String* Context::catch_name() { in catch_name() 121 JSGlobalObject* Context::global_object() { in global_object() [all …]
|
/external/llvm/include/llvm/IR/ |
D | TypeBuilder.h | 114 static PointerType *get(LLVMContext &Context) { in get() argument 115 return PointerType::getUnqual(TypeBuilder<T,cross>::get(Context)); in get() 125 static ArrayType *get(LLVMContext &Context) { in get() argument 126 return ArrayType::get(TypeBuilder<T, cross>::get(Context), N); in get() 132 static ArrayType *get(LLVMContext &Context) { in get() argument 133 return ArrayType::get(TypeBuilder<T, cross>::get(Context), 0); in get() 162 static IntegerType *get(LLVMContext &Context) { \ 163 return IntegerType::get(Context, sizeof(T) * CHAR_BIT); \ 257 static FunctionType *get(LLVMContext &Context) { in get() argument 258 return FunctionType::get(TypeBuilder<R, cross>::get(Context), false); in get() [all …]
|
/external/llvm/unittests/IR/ |
D | MetadataTest.cpp | 29 LLVMContext Context; in TEST() local 30 ContextAndReplaceableUses CRU(Context); in TEST() 31 EXPECT_EQ(&Context, &CRU.getContext()); in TEST() 37 LLVMContext Context; in TEST() local 38 ContextAndReplaceableUses CRU(make_unique<ReplaceableMetadataImpl>(Context)); in TEST() 39 EXPECT_EQ(&Context, &CRU.getContext()); in TEST() 45 LLVMContext Context; in TEST() local 46 ContextAndReplaceableUses CRU(Context); in TEST() 47 CRU.makeReplaceable(make_unique<ReplaceableMetadataImpl>(Context)); in TEST() 48 EXPECT_EQ(&Context, &CRU.getContext()); in TEST() [all …]
|
/external/clang/unittests/Tooling/ |
D | RefactoringTest.cpp | 38 return Replacement(Context.Sources, Start, Length, ReplacementText); in createReplacement() 41 RewriterTestContext Context; member in clang::tooling::ReplacementTest 45 FileID ID = Context.createInMemoryFile("input.cpp", "text"); in TEST_F() 46 SourceLocation Location = Context.getLocation(ID, 1, 1); in TEST_F() 48 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F() 49 EXPECT_EQ("", Context.getRewrittenText(ID)); in TEST_F() 53 FileID ID = Context.createInMemoryFile("input.cpp", "line1\nline2\nline3"); in TEST_F() 54 SourceLocation Location = Context.getLocation(ID, 1, 1); in TEST_F() 56 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F() 57 EXPECT_EQ("", Context.getRewrittenText(ID)); in TEST_F() [all …]
|
D | RewriterTest.cpp | 19 RewriterTestContext Context; in TEST() local 20 FileID ID = Context.createOnDiskFile("t.cpp", "line1\nline2\nline3\nline4"); in TEST() 21 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced"); in TEST() 22 EXPECT_FALSE(Context.Rewrite.overwriteChangedFiles()); in TEST() 24 Context.getFileContentFromDisk("t.cpp")); in TEST() 28 RewriterTestContext Context; in TEST() local 29 FileID FailingID = Context.createInMemoryFile("invalid/failing.cpp", "test"); in TEST() 30 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other"); in TEST() 31 FileID WorkingID = Context.createOnDiskFile( in TEST() 33 Context.Rewrite.ReplaceText(Context.getLocation(WorkingID, 2, 1), 5, in TEST() [all …]
|
/external/v8/src/debug/ |
D | debug-evaluate.h | 56 Handle<Context> innermost_context() const { return innermost_context_; } in innermost_context() 57 Handle<Context> native_context() const { return native_context_; } in native_context() 62 Handle<Context> original_context; 63 Handle<Context> cloned_context; 68 void RecordContextsInChain(Handle<Context>* inner_context, 69 Handle<Context> first, Handle<Context> last); 79 Handle<Context> context); 82 Handle<Context> context); 84 Handle<Context> MaterializeReceiver(Handle<Context> parent_context, 85 Handle<Context> lookup_context, [all …]
|
D | debug-evaluate.cc | 18 static inline bool IsDebugContext(Isolate* isolate, Context* context) { in IsDebugContext() 39 Handle<Context> context = isolate->native_context(); in Global() 76 Handle<Context> context = context_builder.native_context(); in Local() 91 Handle<Context> context, Handle<HeapObject> context_extension, in Evaluate() 132 Handle<Context> outer_context(local_function->context()); in ContextBuilder() 133 native_context_ = Handle<Context>(outer_context->native_context()); in ContextBuilder() 136 Handle<Context> inner_context; in ContextBuilder() 166 Handle<Context> local_context = in ContextBuilder() 171 Handle<Context> receiver_context = in ContextBuilder() 181 Handle<Context> with_context = isolate->factory()->NewWithContext( in ContextBuilder() [all …]
|
/external/clang/lib/Sema/ |
D | Sema.cpp | 52 PrintingPolicy Sema::getPrintingPolicy(const ASTContext &Context, in getPrintingPolicy() argument 54 PrintingPolicy Policy = Context.getPrintingPolicy(); in getPrintingPolicy() 55 Policy.Bool = Context.getLangOpts().Bool; in getPrintingPolicy() 58 BoolMacro = PP.getMacroInfo(&Context.Idents.get("bool"))) { in getPrintingPolicy() 70 PushDeclContext(S, Context.getTranslationUnitDecl()); in ActOnTranslationUnitScope() 78 LangOpts(pp.getLangOpts()), PP(pp), Context(ctxt), Consumer(consumer), in Sema() 117 NSAPIObj.reset(new NSAPI(Context)); in Sema() 123 Diags.SetArgToStringFn(&FormatASTNodeDiagnosticArgument, &Context); in Sema() 134 DeclarationName DN = &Context.Idents.get(Name); in addImplicitTypedef() 136 PushOnScopeChains(Context.buildImplicitTypedef(T, Name), TUScope); in addImplicitTypedef() [all …]
|
D | SemaDeclAttr.cpp | 222 !Expr->isIntegerConstantExpr(I, S.Context)) { in checkUInt32Argument() 279 !IdxExpr->isIntegerConstantExpr(IdxInt, S.Context)) { in checkFunctionOrMethodParameterIndex() 347 D->addAttr(::new (S.Context) AttrType(Attr.getRange(), S.Context, in handleSimpleAttribute() 362 S.Context.DeclarationNames.getCXXOperatorName(OO_Star)); in threadSafetyCheckIsSmartPointer() 367 S.Context.DeclarationNames.getCXXOperatorName(OO_Arrow)); in threadSafetyCheckIsSmartPointer() 581 D->addAttr(::new (S.Context) in handlePtGuardedVarAttr() 582 PtGuardedVarAttr(Attr.getRange(), S.Context, in handlePtGuardedVarAttr() 606 D->addAttr(::new (S.Context) GuardedByAttr(Attr.getRange(), S.Context, Arg, in handleGuardedByAttr() 619 D->addAttr(::new (S.Context) PtGuardedByAttr(Attr.getRange(), in handlePtGuardedByAttr() 620 S.Context, Arg, in handlePtGuardedByAttr() [all …]
|
D | SemaExprObjC.cpp | 70 const ConstantArrayType *CAT = Context.getAsConstantArrayType(S->getType()); in ParseObjCStringLiteral() 72 QualType StrTy = Context.getConstantArrayType( in ParseObjCStringLiteral() 75 S = StringLiteral::Create(Context, StrBuf, StringLiteral::Ascii, in ParseObjCStringLiteral() 92 QualType Ty = Context.getObjCConstantStringInterface(); in BuildObjCStringLiteral() 94 Ty = Context.getObjCObjectPointerType(Ty); in BuildObjCStringLiteral() 100 NSIdent = &Context.Idents.get("NSConstantString"); in BuildObjCStringLiteral() 102 NSIdent = &Context.Idents.get(StringClass); in BuildObjCStringLiteral() 107 Context.setObjCConstantStringInterface(StrIF); in BuildObjCStringLiteral() 108 Ty = Context.getObjCConstantStringInterface(); in BuildObjCStringLiteral() 109 Ty = Context.getObjCObjectPointerType(Ty); in BuildObjCStringLiteral() [all …]
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteModernObjC.cpp | 67 ASTContext *Context; member in __anoneeab31c10111::RewriteModernObjC 268 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange() 285 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange() 296 Diags.Report(Context->getFullLoc(Loc), RewriteFailedDiag); in InsertText() 306 Diags.Report(Context->getFullLoc(Start), RewriteFailedDiag); in ReplaceText() 514 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer() 531 T = isConst ? Context->getObjCIdType().withConst() in convertToUnqualifiedObjCType() 532 : Context->getObjCIdType(); in convertToUnqualifiedObjCType() 535 T = Context->getObjCClassType(); in convertToUnqualifiedObjCType() 542 T = Context->getPointerType(T); in convertToUnqualifiedObjCType() [all …]
|
D | RewriteObjC.cpp | 67 ASTContext *Context; member in __anon6e6e6bfc0111::RewriteObjC 217 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange() 234 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange() 245 Diags.Report(Context->getFullLoc(Loc), RewriteFailedDiag); in InsertText() 255 Diags.Report(Context->getFullLoc(Start), RewriteFailedDiag); in ReplaceText() 419 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer() 433 T = Context->getObjCIdType(); in convertToUnqualifiedObjCType() 435 T = Context->getObjCClassType(); in convertToUnqualifiedObjCType() 442 T = Context->getPointerType(T); in convertToUnqualifiedObjCType() 452 QualType OCT = Context->getCanonicalType(T).getUnqualifiedType(); in isObjCType() [all …]
|
/external/v8/test/cctest/ |
D | test-lockers.cc | 43 using ::v8::Context; 60 KangarooThread(v8::Isolate* isolate, v8::Local<v8::Context> context) in KangarooThread() 71 v8::Local<v8::Context> context = in Run() 72 v8::Local<v8::Context>::New(isolate_, context_); in Run() 73 v8::Context::Scope context_scope(context); in Run() 82 v8::Local<v8::Context> context = in Run() 83 v8::Local<v8::Context>::New(isolate_, context_); in Run() 84 v8::Context::Scope context_scope(context); in Run() 94 Persistent<v8::Context> context_; 108 v8::Local<v8::Context> context = v8::Context::New(isolate); in TEST() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86CallFrameOptimization.cpp | 89 MachineBasicBlock::iterator I, CallContext &Context); 91 bool adjustCallSequence(MachineFunction &MF, const CallContext &Context); 239 CallContext Context; in runOnMachineFunction() local 240 collectCallInfo(MF, *BB, I, Context); in runOnMachineFunction() 241 CallSeqVector.push_back(Context); in runOnMachineFunction() 315 CallContext &Context) { in collectCallInfo() argument 325 Context.FrameSetup = FrameSetup; in collectCallInfo() 333 Context.NoStackParams = true; in collectCallInfo() 349 Context.SPCopy = I++; in collectCallInfo() 351 unsigned StackPtr = Context.SPCopy->getOperand(0).getReg(); in collectCallInfo() [all …]
|
/external/deqp/modules/gles3/ |
D | tes3TestCase.hpp | 38 TestCaseGroup (Context& context, const char* name, const char* description); 39 …TestCaseGroup (Context& context, const char* name, const char* description, const std::vector<Tes… 42 Context& getContext (void) { return m_context; } in getContext() 45 Context& m_context; 51 TestCase (Context& context, const char* name, const char* description); 52 …TestCase (Context& context, tcu::TestNodeType nodeType, const char* name, const char* descriptio… 56 Context& m_context; 59 inline TestCaseGroup::TestCaseGroup (Context& context, const char* name, const char* description) in TestCaseGroup() 65 inline TestCaseGroup::TestCaseGroup (Context& context, const char* name, const char* description, c… in TestCaseGroup() 71 inline TestCase::TestCase (Context& context, const char* name, const char* description) in TestCase() [all …]
|
/external/deqp/modules/gles2/ |
D | tes2TestCase.hpp | 38 TestCaseGroup (Context& context, const char* name, const char* description); 39 …TestCaseGroup (Context& context, const char* name, const char* description, const std::vector<Tes… 42 Context& getContext (void) { return m_context; } in getContext() 45 Context& m_context; 51 TestCase (Context& context, const char* name, const char* description); 52 … TestCase (Context& context, tcu::TestNodeType type, const char* name, const char* description); 56 Context& m_context; 59 inline TestCaseGroup::TestCaseGroup (Context& context, const char* name, const char* description) in TestCaseGroup() 65 inline TestCaseGroup::TestCaseGroup (Context& context, const char* name, const char* description, c… in TestCaseGroup() 71 inline TestCase::TestCase (Context& context, const char* name, const char* description) in TestCase() [all …]
|
/external/deqp/modules/gles31/ |
D | tes31TestCase.hpp | 38 TestCaseGroup (Context& context, const char* name, const char* description); 39 …TestCaseGroup (Context& context, const char* name, const char* description, const std::vector<Tes… 42 Context& getContext (void) { return m_context; } in getContext() 45 Context& m_context; 51 TestCase (Context& context, const char* name, const char* description); 52 …TestCase (Context& context, tcu::TestNodeType nodeType, const char* name, const char* descriptio… 56 Context& m_context; 59 inline TestCaseGroup::TestCaseGroup (Context& context, const char* name, const char* description) in TestCaseGroup() 65 inline TestCaseGroup::TestCaseGroup (Context& context, const char* name, const char* description, c… in TestCaseGroup() 71 inline TestCase::TestCase (Context& context, const char* name, const char* description) in TestCase() [all …]
|
/external/clang/lib/AST/ |
D | RecordLayoutBuilder.cpp | 106 const ASTContext &Context; member in __anon07e898d70111::EmptySubobjectMap 147 return Context.toCharUnitsFromBits(FieldOffset); in getFieldOffset() 169 EmptySubobjectMap(const ASTContext &Context, const CXXRecordDecl *Class) in EmptySubobjectMap() argument 170 : Context(Context), CharWidth(Context.getCharWidth()), Class(Class) { in EmptySubobjectMap() 192 const ASTRecordLayout &Layout = Context.getASTRecordLayout(BaseDecl); in ComputeEmptySubobjectSizes() 208 Context.getBaseElementType(FD->getType())->getAs<RecordType>(); in ComputeEmptySubobjectSizes() 216 const ASTRecordLayout &Layout = Context.getASTRecordLayout(MemberDecl); in ComputeEmptySubobjectSizes() 280 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Info->Class); in CanPlaceBaseSubobjectAtOffset() 330 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Info->Class); in UpdateEmptyBaseSubobjects() 387 const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); in CanPlaceFieldSubobjectAtOffset() [all …]
|
D | NestedNameSpecifier.cpp | 28 NestedNameSpecifier::FindOrInsert(const ASTContext &Context, in FindOrInsert() argument 35 = Context.NestedNameSpecifiers.FindNodeOrInsertPos(ID, InsertPos); in FindOrInsert() 37 NNS = new (Context, llvm::alignOf<NestedNameSpecifier>()) in FindOrInsert() 39 Context.NestedNameSpecifiers.InsertNode(NNS, InsertPos); in FindOrInsert() 46 NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument 55 return FindOrInsert(Context, Mockup); in Create() 59 NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument 71 return FindOrInsert(Context, Mockup); in Create() 75 NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument 87 return FindOrInsert(Context, Mockup); in Create() [all …]
|
/external/llvm/examples/Fibonacci/ |
D | fibonacci.cpp | 39 static Function *CreateFibFunction(Module *M, LLVMContext &Context) { in CreateFibFunction() argument 43 cast<Function>(M->getOrInsertFunction("fib", Type::getInt32Ty(Context), in CreateFibFunction() 44 Type::getInt32Ty(Context), in CreateFibFunction() 48 BasicBlock *BB = BasicBlock::Create(Context, "EntryBlock", FibF); in CreateFibFunction() 51 Value *One = ConstantInt::get(Type::getInt32Ty(Context), 1); in CreateFibFunction() 52 Value *Two = ConstantInt::get(Type::getInt32Ty(Context), 2); in CreateFibFunction() 59 BasicBlock *RetBB = BasicBlock::Create(Context, "return", FibF); in CreateFibFunction() 61 BasicBlock* RecurseBB = BasicBlock::Create(Context, "recurse", FibF); in CreateFibFunction() 68 ReturnInst::Create(Context, One, RetBB); in CreateFibFunction() 86 ReturnInst::Create(Context, Sum, RecurseBB); in CreateFibFunction() [all …]
|
/external/deqp/framework/platform/null/ |
D | tcuNullRenderContext.cpp | 73 class Context class 76 Context (ContextType ctxType_); 77 ~Context (void); 80 Context (const Context&); 81 Context& operator= (const Context&); 119 Context::Context (ContextType ctxType_) in Context() function in tcu::null::Context 242 Context::~Context (void) in ~Context() 246 void Context::addExtension (const char* name) in addExtension() 257 void setCurrentContext (Context* context) in setCurrentContext() 262 Context* getCurrentContext (void) in getCurrentContext() [all …]
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowApplication.java | 8 import android.content.Context; 45 …SYSTEM_SERVICE_MAP.put(Context.WINDOW_SERVICE, "com.xtremelabs.robolectric.tester.android.view.Tes… in SYSTEM_SERVICE_MAP.put() 46 …SYSTEM_SERVICE_MAP.put(Context.CLIPBOARD_SERVICE, "com.xtremelabs.robolectric.tester.android.text.… in SYSTEM_SERVICE_MAP.put() 47 SYSTEM_SERVICE_MAP.put(Context.SENSOR_SERVICE, "android.hardware.TestSensorManager"); in SYSTEM_SERVICE_MAP.put() 48 SYSTEM_SERVICE_MAP.put(Context.VIBRATOR_SERVICE, "android.os.TestVibrator"); in SYSTEM_SERVICE_MAP.put() 51 SYSTEM_SERVICE_MAP.put(Context.LAYOUT_INFLATER_SERVICE, "android.view.LayoutInflater"); in SYSTEM_SERVICE_MAP.put() 52 SYSTEM_SERVICE_MAP.put(Context.ACTIVITY_SERVICE, "android.app.ActivityManager"); in SYSTEM_SERVICE_MAP.put() 53 SYSTEM_SERVICE_MAP.put(Context.POWER_SERVICE, "android.os.PowerManager"); in SYSTEM_SERVICE_MAP.put() 54 SYSTEM_SERVICE_MAP.put(Context.ALARM_SERVICE, "android.app.AlarmManager"); in SYSTEM_SERVICE_MAP.put() 55 SYSTEM_SERVICE_MAP.put(Context.NOTIFICATION_SERVICE, "android.app.NotificationManager"); in SYSTEM_SERVICE_MAP.put() [all …]
|