/libcore/luni/src/main/native/ |
org_apache_harmony_luni_platform_OSMemory.cpp | 38 template <typename T> static T cast(jint address) { function 76 memset(cast<void*>(dstAddress), value, length); 80 memmove(cast<void*>(dstAddress), cast<const void*>(srcAddress), length); 84 return *cast<const jbyte*>(srcAddress); 89 env->SetByteArrayRegion(dst, offset, length, cast<const jbyte*>(srcAddress)); 93 *cast<jbyte*>(dstAddress) = value; 98 env->GetByteArrayRegion(src, offset, length, cast<jbyte*>(dstAddress)); 129 jfloat* dst = cast<jfloat*>(dstAddress); 138 jint* dst = cast<jint*>(dstAddress) [all...] |
/external/v8/src/ |
accessors.cc | 49 return C::cast(obj); 90 JSValue* wrapper = JSValue::cast(value); 122 return JSArray::cast(object)->SetElementsLength(*uint32_v); 150 if (object->IsJSValue()) value = JSValue::cast(object)->value(); 151 if (value->IsString()) return Smi::FromInt(String::cast(value)->length()); 171 Object* script = JSValue::cast(object)->value(); 172 return Script::cast(script)->source(); 189 Object* script = JSValue::cast(object)->value(); 190 return Script::cast(script)->name(); 207 Object* script = JSValue::cast(object)->value() [all...] |
objects-debug.cc | 44 Smi::cast(this)->SmiPrint(); 46 Failure::cast(this)->FailurePrint(); 48 HeapObject::cast(this)->HeapObjectPrint(); 62 Smi::cast(this)->SmiVerify(); 64 Failure::cast(this)->FailureVerify(); 66 HeapObject::cast(this)->HeapObjectVerify(); 100 String::cast(this)->StringPrint(); 106 Map::cast(this)->MapPrint(); 109 HeapNumber::cast(this)->HeapNumberPrint(); 112 FixedArray::cast(this)->FixedArrayPrint() [all...] |
stub-cache.cc | 106 LOG(CodeCreateEvent(Logger::LOAD_IC_TAG, Code::cast(code), name)); 107 Object* result = receiver->map()->UpdateCodeCache(name, Code::cast(code)); 110 return Set(name, receiver->map(), Code::cast(code)); 125 LOG(CodeCreateEvent(Logger::LOAD_IC_TAG, Code::cast(code), name)); 126 Object* result = receiver->map()->UpdateCodeCache(name, Code::cast(code)); 129 return Set(name, receiver->map(), Code::cast(code)); 144 LOG(CodeCreateEvent(Logger::LOAD_IC_TAG, Code::cast(code), name)); 145 Object* result = receiver->map()->UpdateCodeCache(name, Code::cast(code)); 148 return Set(name, receiver->map(), Code::cast(code)); 161 LOG(CodeCreateEvent(Logger::LOAD_IC_TAG, Code::cast(code), name)) [all...] |
string-stream.cc | 191 if (String::cast(o)->length() <= String::kMaxShortPrintLength) { 206 debug_object_cache->Add(HeapObject::cast(o)); 327 String* str = String::cast(name); 355 len = String::cast(key)->length(); 360 Put(String::cast(key)); 423 Add(" value(): %o\n", JSValue::cast(printee)->value()); 425 PrintUsingMap(JSObject::cast(printee)); 427 JSArray* array = JSArray::cast(printee); 429 unsigned int limit = FixedArray::cast(array->elements())->length(); 431 static_cast<uint32_t>(JSArray::cast(array)->length()->Number()) [all...] |
objects-inl.h | 64 type* type::cast(Object* object) { \ 76 type* holder::name() { return type::cast(READ_FIELD(this, offset)); } \ 87 return Smi::cast(value)->value(); \ 113 Object* cons_obj = JSObject::cast(this)->map()->constructor(); 115 JSFunction* fun = JSFunction::cast(cons_obj); 120 type = FunctionTemplateInfo::cast(type)->parent_template()) { 140 && HeapObject::cast(this)->map()->instance_type() == HEAP_NUMBER_TYPE; 146 && HeapObject::cast(this)->map()->instance_type() < FIRST_NONSTRING_TYPE; 152 uint32_t type = HeapObject::cast(this)->map()->instance_type(); 164 uint32_t type = HeapObject::cast(this)->map()->instance_type() [all...] |
objects.cc | 59 JSValue::cast(result)->set_value(value); 98 return Heap::ToBoolean(Smi::cast(this)->value() != 0); 106 return Heap::ToBoolean(String::cast(this)->length() != 0); 109 return HeapNumber::cast(this)->HeapNumberToBoolean(); 116 if (IsJSObject()) return JSObject::cast(this)->Lookup(name, result); 127 JSObject::cast(holder)->Lookup(name, result); 151 reinterpret_cast<AccessorDescriptor*>(Proxy::cast(structure)->proxy()); 159 AccessorInfo* data = AccessorInfo::cast(structure); 163 JSObject* self = JSObject::cast(receiver); 164 JSObject* holder_handle = JSObject::cast(holder) [all...] |
builtins.cc | 95 // Make sure cast to JSFunction succeeds. 187 array = JSArray::cast(*args.receiver()); 194 array = JSArray::cast(obj); 204 int len = Smi::cast(obj)->value(); 208 array->SetContent(FixedArray::cast(obj)); 230 FixedArray* elms = FixedArray::cast(obj); 238 array->set_elements(FixedArray::cast(obj)); 246 JSArray* array = JSArray::cast(*args.receiver()); 249 int len = Smi::cast(array->length())->value(); 259 FixedArray* elms = FixedArray::cast(array->elements()) [all...] |
/dalvik/dx/tests/050-dex-checkcast/ |
expected.txt | 5 0002: check-cast v1, Blort
|
info.txt | 2 checked cast expressions get converted reasonably.
|
/external/v8/test/cctest/ |
test-heap.cc | 48 CHECK(String::cast(print_string)->IsEqualTo(CStrVector(string))); 56 CHECK(String::cast(print_string)->IsEqualTo(CStrVector(string))); 65 CHECK(String::cast(print_string)->IsEqualTo(CStrVector(string))); 85 HeapObject* obj = HeapObject::cast(code); 98 HeapObject* obj_copy = HeapObject::cast(copy); 127 CHECK_EQ(Smi::kMinValue, Smi::cast(value)->value()); 132 CHECK_EQ(Smi::kMaxValue, Smi::cast(value)->value()); 154 String* s = String::cast(str); 161 String* object_symbol = String::cast(Heap::Object_symbol()); 209 String* func_name = String::cast(Heap::LookupAsciiSymbol("theFunction")) [all...] |
test-mark-compact.cc | 91 Handle<FixedArray> array(FixedArray::cast(obj)); 121 Handle<FixedArray> array(FixedArray::cast(obj)); 133 host = FixedArray::cast(obj); 172 String* func_name = String::cast(Heap::LookupAsciiSymbol("theFunction")); 174 SharedFunctionInfo::cast(Heap::AllocateSharedFunctionInfo(func_name)); 176 JSFunction::cast(Heap::AllocateFunction(*Top::function_map(), 180 Map::cast(Heap::AllocateMap(JS_OBJECT_TYPE, JSObject::kHeaderSize)); 184 JSObject* obj = JSObject::cast(Heap::AllocateJSObject(function)); 187 func_name = String::cast(Heap::LookupAsciiSymbol("theFunction")); 191 function = JSFunction::cast(func_value) [all...] |
test-assembler-ia32.cc | 78 Code::cast(code)->Print(); 80 F2 f = FUNCTION_CAST<F2>(Code::cast(code)->entry()); 116 Code::cast(code)->Print(); 118 F1 f = FUNCTION_CAST<F1>(Code::cast(code)->entry()); 158 Code::cast(code)->Print(); 160 F1 f = FUNCTION_CAST<F1>(Code::cast(code)->entry()); 185 Code::cast(Heap::CreateCode(desc, 218 Code::cast(Heap::CreateCode(desc, 248 Code::cast(Heap::CreateCode(desc, 284 Code::cast(Heap::CreateCode(desc [all...] |
/dalvik/vm/mterp/armv5te/ |
OP_CHECK_CAST.S | 3 %verify "class cast exception thrown, with correct class name" 4 %verify "class cast exception not thrown on same class" 5 %verify "class cast exception not thrown on subclass" 9 * Check to see if a cast from one class to another is allowed. 11 /* check-cast vAA, class@BBBB */ 18 beq .L${opcode}_okay @ null obj, cast always succeeds 43 @ A cast has failed. We need to throw a ClassCastException with the 44 @ class of the object that failed to be cast.
|
/dalvik/vm/mterp/x86/ |
OP_CHECK_CAST.S | 3 %verify "class cast exception thrown, with correct class name" 4 %verify "class cast exception not thrown on same class" 5 %verify "class cast exception not thrown on subclass" 9 * Check to see if a cast from one class to another is allowed. 11 /* check-cast vAA, class@BBBB */ 19 je .L${opcode}_okay # null obj, cast always succeeds 48 # A cast has failed. We need to throw a ClassCastException with the 49 # class of the object that failed to be cast.
|
/libcore/luni/src/main/java/org/apache/xpath/objects/ |
XNull.java | 65 * Cast result object to a number. 76 * Cast result object to a boolean. 86 * Cast result object to a string. 96 * Cast result object to a result tree fragment. 110 // * Cast result object to a nodelist.
|
/libcore/luni/src/main/java/java/lang/ |
ClassCastException.java | 21 * Thrown when a program attempts to cast a an object to a type with which it is 51 * the class being cast from. 53 * the class being cast to.
|
/cts/tools/vm-tests/src/dot/junit/opcodes/check_cast/d/ |
T_check_cast_2.d | 65 check-cast v10, dot/junit/opcodes/check_cast/d/T_check_cast_2/SuperClass 70 check-cast v10, [Ldot/junit/opcodes/check_cast/d/T_check_cast_2/SuperClass; 75 check-cast v10, java/lang/Object 80 check-cast v10, dot/junit/opcodes/check_cast/d/T_check_cast_2/SuperInterface 88 check-cast v10, dot/junit/opcodes/check_cast/d/T_check_cast_2/SubClass 100 check-cast v10, dot/junit/opcodes/check_cast/d/T_check_cast_2/SuperInterface2 111 check-cast v10, dot/junit/opcodes/check_cast/d/T_check_cast_2/SuperInterface 122 check-cast v10, dot/junit/opcodes/check_cast/d/T_check_cast_2/SubClass 133 check-cast v10, [Ldot/junit/opcodes/check_cast/d/T_check_cast_2/SubClass;
|
/dalvik/docs/opcodes/ |
opcode-1f-check-cast.html | 6 <title>check-cast</title> 12 <h1>check-cast</h1> 17 Throw if the reference in the given register cannot be cast to the indicated 34 <td>check-cast vAA, type@BBBB</td>
|
/dalvik/tests/003-omnibus-opcodes/src/ |
UnresTest2.java | 6 * Try check-cast and instance-of.
|
/dalvik/vm/mterp/c/ |
OP_CHECK_CAST.c | 10 ILOGV("|check-cast v%d,class@0x%04x", vsrc1, ref);
|
/external/nist-sip/java/gov/nist/javax/sip/header/ims/ |
package.html | 7 list. To acccess these headers you have to cast the HeaderFactory to
|
/frameworks/base/media/libeffects/lvm/lib/Common/src/ |
MixSoft_2St_D32C31_SAT.c | 45 MixInSoft_D32C31_SAT( (void *) &pInstance->Alpha2, /* Cast to void: no dereferencing in function*/ 56 MixSoft_1St_D32C31_WRA( (void *) &pInstance->Alpha2, /* Cast to void: no dereferencing in function*/
|
/frameworks/base/tools/aidl/ |
AST.h | 132 Type* cast; member in struct:Assignment 135 Assignment(Variable* lvalue, Expression* rvalue, Type* cast); 203 struct Cast : public Expression 208 Cast(); 209 Cast(Type* type, Expression* expression); 210 virtual ~Cast(); 217 Type* cast; member in struct:VariableDeclaration 221 VariableDeclaration(Variable* lvalue, Expression* rvalue, Type* cast = NULL);
|
/external/guava/src/com/google/common/collect/ |
MutableClassToInstanceMap.java | 59 cast(key, value); 64 return cast(type, put(type, value)); 68 return cast(type, get(type)); 72 static <B, T extends B> T cast(Class<T> type, B value) { method in class:MutableClassToInstanceMap 74 return wrap(type).cast(value);
|