Searched refs:cast (Results 1 - 25 of 740) sorted by relevance

1234567891011>>

/external/clang/test/PCH/
H A Dcxx-chain-function-template.cpp9 T cast(U u) { function
14 cast<float>(1);
22 cast<CXXRecordDecl>(1.0f);
28 cast<CXXRecordDecl>(1.0f);
/external/llvm/lib/VMCore/
H A DInstruction.cpp195 return LI->isVolatile() == cast<LoadInst>(I)->isVolatile() &&
196 LI->getAlignment() == cast<LoadInst>(I)->getAlignment() &&
197 LI->getOrdering() == cast<LoadInst>(I)->getOrdering() &&
198 LI->getSynchScope() == cast<LoadInst>(I)->getSynchScope();
200 return SI->isVolatile() == cast<StoreInst>(I)->isVolatile() &&
201 SI->getAlignment() == cast<StoreInst>(I)->getAlignment() &&
202 SI->getOrdering() == cast<StoreInst>(I)->getOrdering() &&
203 SI->getSynchScope() == cast<StoreInst>(I)->getSynchScope();
205 return CI->getPredicate() == cast<CmpInst>(I)->getPredicate();
207 return CI->isTailCall() == cast<CallIns
[all...]
H A DIntrinsicInst.cpp20 // cast instruction needs to be stripped away.
68 return cast<MDNode>(getArgOperand(0))->getOperand(0);
72 return cast<MDNode>(getArgOperand(0))->getOperand(0);
/external/v8/test/cctest/
H A Dtest-weakmaps.cc40 Handle<JSWeakMap> weakmap(JSWeakMap::cast(*weakmap_obj));
43 ObjectHashTable* table = ObjectHashTable::cast(table_obj);
53 Handle<ObjectHashTable>(ObjectHashTable::cast(weakmap->table())),
54 Handle<JSObject>(JSObject::cast(*key)),
86 PutIntoWeakMap(weakmap, Handle<JSObject>(JSObject::cast(*key)), 23);
88 CHECK_EQ(1, ObjectHashTable::cast(weakmap->table())->NumberOfElements());
93 CHECK_EQ(1, ObjectHashTable::cast(weakmap->table())->NumberOfElements());
95 0, ObjectHashTable::cast(weakmap->table())->NumberOfDeletedElements());
111 CHECK_EQ(1, ObjectHashTable::cast(weakmap->table())->NumberOfElements());
113 0, ObjectHashTable::cast(weakma
[all...]
/external/guava/guava/src/com/google/common/collect/
H A DMutableClassToInstanceMap.java63 cast(key, value);
69 return cast(type, put(type, value));
74 return cast(type, get(type));
77 private static <B, T extends B> T cast(Class<T> type, B value) { method in class:MutableClassToInstanceMap
78 return Primitives.wrap(type).cast(value);
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/
H A DCstByte.java49 byte cast = (byte) value;
51 if (cast != value) {
56 return make(cast);
H A DCstChar.java49 char cast = (char) value;
51 if (cast != value) {
56 return make(cast);
H A DCstShort.java50 short cast = (short) value;
52 if (cast != value) {
57 return make(cast);
/external/jsilver/src/org/clearsilver/jni/
H A DJniClearsilverFactory.java66 return new JniCs(JniHdf.cast(hdf));
82 return new JniCs(JniHdf.cast(hdf), JniHdf.cast(globalHdf));
/external/v8/src/
H A Dv8conversions.h38 if (number->IsSmi()) return Smi::cast(number)->value();
44 if (number->IsSmi()) return Smi::cast(number)->value();
H A Dobjects-debug.cc44 Smi::cast(this_as_object)->SmiVerify();
46 HeapObject::cast(this_as_object)->HeapObjectVerify();
49 Failure::cast(this)->FailureVerify();
77 String::cast(this)->StringVerify();
83 Map::cast(this)->MapVerify();
86 HeapNumber::cast(this)->HeapNumberVerify();
89 FixedArray::cast(this)->FixedArrayVerify();
92 FixedDoubleArray::cast(this)->FixedDoubleArrayVerify();
95 ByteArray::cast(this)->ByteArrayVerify();
98 FreeSpace::cast(thi
[all...]
H A Daccessors.cc53 return C::cast(obj);
94 JSValue* wrapper = JSValue::cast(value);
131 return Handle<JSArray>::cast(object_handle)->SetElementsLength(*uint32_v);
153 if (object->IsJSValue()) value = JSValue::cast(object)->value();
154 if (value->IsString()) return Smi::FromInt(String::cast(value)->length());
174 Object* script = JSValue::cast(object)->value();
175 return Script::cast(script)->source();
192 Object* script = JSValue::cast(object)->value();
193 return Script::cast(script)->name();
210 Object* script = JSValue::cast(objec
[all...]
H A Dobjects-printer.cc47 Smi::cast(this_as_object)->SmiPrint(out);
49 HeapObject::cast(this_as_object)->HeapObjectPrint(out);
52 Failure::cast(this)->FailurePrint(out);
74 String::cast(this)->StringPrint(out);
80 Map::cast(this)->MapPrint(out);
83 HeapNumber::cast(this)->HeapNumberPrint(out);
86 FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(out);
89 FixedArray::cast(this)->FixedArrayPrint(out);
92 ByteArray::cast(this)->ByteArrayPrint(out);
95 FreeSpace::cast(thi
[all...]
H A Dmessages.cc51 data_str = Handle<String>::cast(data)->ToCString(DISALLOW_NULLS);
83 ? Handle<Object>::cast(FACTORY->undefined_value())
84 : Handle<Object>::cast(stack_trace);
87 ? Handle<Object>::cast(FACTORY->undefined_value())
88 : Handle<Object>::cast(stack_frames);
126 v8::NeanderObject listener(JSObject::cast(global_listeners.get(i)));
127 Handle<Foreign> callback_obj(Foreign::cast(listener.get(0)));
148 JSFunction::cast(
164 Handle<String> result_string = Handle<String>::cast(result);
H A Dinspector.cc45 HeapObject* hobj = HeapObject::cast(obj);
H A Dv8conversions.cc87 const char* begin = SeqAsciiString::cast(str)->GetChars();
92 const uc16* begin = SeqTwoByteString::cast(str)->GetChars();
112 const char* begin = SeqAsciiString::cast(str)->GetChars();
116 const uc16* begin = SeqTwoByteString::cast(str)->GetChars();
/external/llvm/include/llvm/
H A DIntrinsicInst.h34 /// functions. This allows the standard isa/dyncast/cast functionality to
47 // Methods for support type inquiry through isa, cast, and dyn_cast:
55 return isa<CallInst>(V) && classof(cast<CallInst>(V));
64 // Methods for support type inquiry through isa, cast, and dyn_cast:
75 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
86 MDNode *getVariable() const { return cast<MDNode>(getArgOperand(1)); }
88 // Methods for support type inquiry through isa, cast, and dyn_cast:
94 return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
105 return cast<ConstantInt>(
108 MDNode *getVariable() const { return cast<MDNod
[all...]
/external/llvm/bindings/python/llvm/
H A Ddisassembler.py21 from ctypes import cast namespace
73 buf = cast(c_char_p(source), POINTER(c_ubyte))
74 out_str = cast((c_byte * 255)(), c_char_p)
95 out_str = cast((c_byte * 255)(), c_char_p)
98 buf = cast(source_bytes, POINTER(c_ubyte * len(source))).contents
103 b = cast(addressof(buf) + offset, POINTER(c_ubyte))
/external/clang/lib/Frontend/
H A DASTConsumers.cpp81 return cast<NamedDecl>(D)->getQualifiedNameAsString();
191 const NamespaceDecl* ND = cast<NamespaceDecl>(DC);
196 const EnumDecl* ED = cast<EnumDecl>(DC);
205 const RecordDecl* RD = cast<RecordDecl>(DC);
214 const CXXRecordDecl* RD = cast<CXXRecordDecl>(DC);
247 const FunctionDecl* FD = cast<FunctionDecl>(DC);
268 const CXXMethodDecl* D = cast<CXXMethodDecl>(DC);
298 const CXXConstructorDecl* D = cast<CXXConstructorDecl>(DC);
327 const CXXDestructorDecl* D = cast<CXXDestructorDecl>(DC);
343 const CXXConversionDecl* D = cast<CXXConversionDec
[all...]
/external/clang/lib/AST/
H A DExprClassification.cpp49 llvm_unreachable("Invalid value category of implicit cast.");
189 cast<SubstNonTypeTemplateParmExpr>(E)->getReplacement());
194 if (cast<ArraySubscriptExpr>(E)->getBase()->getType()->isVectorType())
195 return ClassifyInternal(Ctx, cast<ArraySubscriptExpr>(E)->getBase());
202 return isa<FunctionDecl>(cast<DeclRefExpr>(E)->getDecl())
204 return ClassifyDecl(Ctx, cast<DeclRefExpr>(E)->getDecl());
208 return ClassifyMemberExpr(Ctx, cast<MemberExpr>(E));
211 switch (cast<UnaryOperator>(E)->getOpcode()) {
220 return ClassifyInternal(Ctx, cast<UnaryOperator>(E)->getSubExpr());
226 const Expr *Op = cast<UnaryOperato
[all...]
H A DParentMap.cpp83 } while (S && isa<Expr>(S) && cast<Expr>(S)->IgnoreParenImpCasts() != S);
116 BinaryOperator *BE = cast<BinaryOperator>(P);
122 return DirectChild == cast<ForStmt>(P)->getCond();
124 return DirectChild == cast<WhileStmt>(P)->getCond();
126 return DirectChild == cast<DoStmt>(P)->getCond();
128 return DirectChild == cast<IfStmt>(P)->getCond();
130 return DirectChild == cast<IndirectGotoStmt>(P)->getTarget();
132 return DirectChild == cast<SwitchStmt>(P)->getCond();
/external/llvm/unittests/VMCore/
H A DMDBuilderTest.cpp42 ConstantFP *Val = cast<ConstantFP>(Op);
55 ConstantInt *C0 = cast<ConstantInt>(R1->getOperand(0));
56 ConstantInt *C1 = cast<ConstantInt>(R1->getOperand(1));
79 EXPECT_EQ(cast<MDString>(R0->getOperand(0))->getString(), "Root");
98 EXPECT_EQ(cast<MDString>(N0->getOperand(0))->getString(), "Node");
99 EXPECT_EQ(cast<MDString>(N1->getOperand(0))->getString(), "edoN");
100 EXPECT_EQ(cast<MDString>(N2->getOperand(0))->getString(), "Node");
105 EXPECT_EQ(cast<ConstantInt>(N2->getOperand(2))->getZExtValue(), 1U);
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
H A DJavaExpression.java33 * Simple type enumeration to allow us to compare the return types of expressions easily and cast
39 protected JavaExpression cast(JavaExpression expression) {
41 expression = expression.cast(DATA);
48 protected JavaExpression cast(JavaExpression expression) {
50 expression = expression.cast(DATA);
57 protected JavaExpression cast(JavaExpression expression) {
59 expression = expression.cast(DATA);
66 protected JavaExpression cast(JavaExpression expression) {
76 protected JavaExpression cast(JavaExpression expression) {
80 throw new JSilverCompilationException("Cannot cast t
140 protected abstract JavaExpression cast(JavaExpression expression); method in class:JavaExpression.Type
163 public JavaExpression cast(Type destType) { method in class:JavaExpression
[all...]
/external/clang/lib/StaticAnalyzer/Core/
H A DSVals.cpp171 return cast<loc::ConcreteInt>(*this).getValue() == I;
173 return cast<nonloc::ConcreteInt>(*this).getValue() == I;
240 cast<NonLoc>(this)->dumpToStream(os);
243 cast<Loc>(this)->dumpToStream(os);
254 const nonloc::ConcreteInt& C = *cast<nonloc::ConcreteInt>(this);
264 os << cast<nonloc::SymbolVal>(this)->getSymbol();
268 const nonloc::LocAsInteger& C = *cast<nonloc::LocAsInteger>(this);
273 const nonloc::CompoundVal& C = *cast<nonloc::CompoundVal>(this);
289 const nonloc::LazyCompoundVal &C = *cast<nonloc::LazyCompoundVal>(this);
304 os << cast<lo
[all...]
/external/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMCExpr.cpp54 const MCBinaryExpr *BE = cast<MCBinaryExpr>(Value);
61 Asm->getOrCreateSymbolData(cast<MCSymbolRefExpr>(Value)->getSymbol());
65 AddValueSymbols_(cast<MCUnaryExpr>(Value)->getSubExpr(), Asm);

Completed in 4515 milliseconds

1234567891011>>