Home | History | Annotate | Download | only in src

Lines Matching full:cast

56 // Cast the given object to a value of the specified type and store
61 Type* name = Type::cast(obj);
67 // Cast the given object to a boolean and store it in a variable with
74 // Cast the given object to a Smi and store its value in an int variable
79 int name = Smi::cast(obj)->value();
81 // Cast the given object to a double and store it in a variable with
105 JSObject* copy = JSObject::cast(result);
113 JSObject* js_object = JSObject::cast(value);
123 JSObject* js_object = JSObject::cast(value);
132 FixedArray* names = FixedArray::cast(result);
136 String* key_string = String::cast(names->get(i));
146 JSObject* js_object = JSObject::cast(value);
160 FixedArray* elements = FixedArray::cast(copy->elements());
164 JSObject* js_object = JSObject::cast(value);
180 JSObject* js_object = JSObject::cast(value);
276 Handle<FixedArray> array = Handle<FixedArray>::cast(value);
284 Handle<String> name(String::cast(*key));
322 Handle<FixedArray> content = Handle<FixedArray>::cast(copied_elements);
327 Handle<FixedArray> fa(FixedArray::cast(content->get(i)));
336 Handle<JSArray>::cast(object)->SetContent(*content);
413 return DeepCopyBoilerplate(JSObject::cast(*boilerplate));
432 return Heap::CopyJSObject(JSObject::cast(*boilerplate));
451 return DeepCopyBoilerplate(JSObject::cast(*boilerplate));
470 return Heap::CopyJSObject(JSObject::cast(*boilerplate));
485 value = JSObject::cast(object)->SetProperty(key, value, DONT_DELETE);
496 return JSObject::cast(obj)->class_name();
526 !HeapObject::cast(jsobject->GetPrototype())->map()->is_hidden_prototype());
532 Map* new_proto_map = Map::cast(map_or_failure);
536 Map* new_map = Map::cast(map_or_failure);
568 JSObject::cast(proto)->map()->is_hidden_prototype())
569 GetOwnPropertyImplementation(JSObject::cast(proto),
610 elms->set(1, FixedArray::cast(structure)->get(0));
611 elms->set(2, FixedArray::cast(structure)->get(1));
692 Map::cast(new_map)->set_is_access_check_needed(false);
693 object->set_map(Map::cast(new_map));
708 Map::cast(new_map)->set_is_access_check_needed(true);
709 object->set_map(Map::cast(new_map));
731 bool is_eval = Smi::cast(args[2])->value() == 1;
743 Handle<String> name(String::cast(pairs->get(i)));
794 Handle<JSFunction> boilerplate = Handle<JSFunction>::cast(value);
841 Handle<String> name(String::cast(args[1]));
843 static_cast<PropertyAttributes>(Smi::cast(args[2])->value());
879 Handle<JSObject>::cast(holder)->SetElement(index, *initial_value);
883 Handle<JSObject> context_ext = Handle<JSObject>::cast(holder);
996 if (!JSObject::cast(proto)->map()->is_hidden_prototype())
999 real_holder = JSObject::cast(proto);
1101 Handle<String> name(String::cast(args[2]));
1132 Handle<Context>::cast(holder)->set(index, *value);
1137 Handle<JSObject>::cast(holder)->SetElement(index, *value);
1151 Handle<JSObject> context_ext = Handle<JSObject>::cast(holder);
1237 int index = Smi::cast(args[1])->value();
1291 return *GetScriptWrapper(Handle<Script>::cast(script));
1393 Handle<JSFunction> fun = Handle<JSFunction>::cast(code);
1446 subject = String::cast(flat);
1576 SeqAsciiString* seq = SeqAsciiString::cast(*joined_string);
1586 SeqTwoByteString* seq = SeqTwoByteString::cast(*joined_string);
1873 FixedArray* match_info = FixedArray::cast(last_match_info->elements());
1955 FixedArray::cast(last_match_info_handle->elements());
2009 subject = String::cast(flat_subject);
2018 replacement = String::cast(flat_replacement);
2641 start = Smi::cast(from)->value();
2642 end = Smi::cast(to)->value();
2682 FixedArray* elements = FixedArray::cast(regexp_info->elements());
2683 start = Smi::cast(elements->get(RegExpImpl::kFirstCapture))->value();
2684 end = Smi::cast(elements->get(RegExpImpl::kFirstCapture + 1))->value();
2714 int value = Smi::cast(args[0])->value();
2715 int radix = Smi::cast(args[1])->value();
2832 Handle<Object> result = GetCharAt(Handle<String>::cast(object), index);
2838 Handle<JSValue> js_value = Handle<JSValue>::cast(object);
2840 GetCharAt(Handle<String>(String::cast(js_value->value())), index);
2873 name = Handle<String>::cast(key);
2879 name = Handle<String>::cast(converted);
2924 JSObject* receiver = JSObject::cast(args[0]);
2925 String* key = String::cast(args[1]);
2950 value = JSGlobalPropertyCell::cast(value)->value();
2959 int index = Smi::cast(args[1])->value();
3048 Handle<JSObject> js_object = Handle<JSObject>::cast(object);
3071 if (Handle<String>::cast(key)->AsArrayIndex(&index)) {
3074 Handle<String> key_string = Handle<String>::cast(key);
3086 Handle<String> name = Handle<String>::cast(converted);
3120 if (Handle<String>::cast(key)->AsArrayIndex(&index)) {
3123 Handle<String> key_string = Handle<String>::cast(key);
3135 Handle<String> name = Handle<String>::cast(converted);
3167 key_string = Handle<String>::cast(key);
3173 key_string = Handle<String>::cast(converted);
3244 Handle<JSObject>::cast(proto)->map()->is_hidden_prototype()) {
3245 return HasLocalPropertyImplementation(Handle<JSObject>::cast(proto), key);
3259 JSObject* object = JSObject::cast(obj);
3271 String* string = String::cast(obj);
3286 JSObject* object = JSObject::cast(args[0]);
3300 JSObject* object = JSObject::cast(args[0]);
3365 JSObject::cast(proto)->map()->is_hidden_prototype()) {
3367 proto = JSObject::cast(proto)->GetPrototype();
3392 obj = Handle<JSObject>(JSObject::cast(obj->GetPrototype()));
3416 jsproto = Handle<JSObject>(JSObject::cast(jsproto->GetPrototype()));
3433 jsproto = Handle<JSObject>(JSObject::cast(jsproto->GetPrototype()));
3575 Handle<String> key = Handle<String>::cast(converted);
3601 Handle<JSObject> js_object = Handle<JSObject>::cast(object);
3616 Handle<JSObject> js_object = Handle<JSObject>::cast(object);
3638 HeapObject* heap_obj = HeapObject::cast(obj);
3682 int length = Smi::cast(codes->length())->value();
3701 String* result = String::cast(object);
3784 String* destination = String::cast(o);
3889 String* destination = String::cast(o);
3992 String* result = String::cast(o);
4087 answer = ConvertCaseHelper(s, Smi::cast(answer)->value(), length, mapping);
4167 if (obj->IsSmi() && Smi::cast(obj)->value() >= 0) return obj;
4195 double value = HeapNumber::cast(obj)->value();
4287 int encoded_slice = Smi::cast(element)->value();
4298 pos = Smi::cast(obj)->value();
4307 String* string = String::cast(element);
4324 int array_length = Smi::cast(args[1])->value();
4334 FixedArray* fixed_array = FixedArray::cast(array->elements());
4353 int len = Smi::cast(elt)->value();
4376 String* element = String::cast(elt);
4398 SeqAsciiString* answer = SeqAsciiString::cast(object);
4407 SeqTwoByteString* answer = SeqTwoByteString::cast(object);
4793 int y = Smi::cast(args[1])->value();
4869 JSFunction* callee = JSFunction::cast(args[0]);
4871 const int length = Smi::cast(args[2])->value();
4883 FixedArray* array = FixedArray::cast(obj);
4890 JSObject::cast(result)->set_elements(FixedArray::cast(obj));
4922 return Code::cast(code);
4943 Handle<JSFunction> function = Handle<JSFunction>::cast(constructor);
5041 Top::set_context(Context::cast(result));
5052 if (!Failure::cast(js_object)->IsInternalError()) return js_object;
5063 JSObject::cast(js_object),
5067 Context* context = Context::cast(result);
5191 ? Context::cast(*holder)->get(index)
5192 : JSObject::cast(*holder)->GetElement(index);
5198 ASSERT(Handle<JSObject>::cast(holder)->HasProperty(*name));
5199 JSObject* object = JSObject::cast(*holder);
5202 receiver = GlobalObject::cast(object)->global_receiver();
5254 Handle<Context>::cast(holder)->set(index, *value);
5259 Handle<JSObject>::cast(holder)->SetElement(index, *value);
5272 context_ext = Handle<JSObject>::cast(holder);
5363 PrintF("%d", Smi::cast(obj)->value());
5365 PrintString(String::cast(obj));
5409 PrintObject(JSFunction::cast(fun)->shared()->name());
5466 HeapObject::cast(args[0])->map()->Print();
5512 FixedArray* output_array = FixedArray::cast(output->elements());
5576 return JSGlobalObject::cast(global)->global_receiver();
5618 ASSERT(Context::cast(frame->context()) == *context);
5632 context = Handle<Context>(Context::cast(context->closure()->context()));
5651 context = Handle<Context>::cast(receiver);
5708 int length = Smi::cast(array->length())->value();
5709 FixedArray* elements = FixedArray::cast(array->elements());
5747 Handle<NumberDictionary> dict = Handle<NumberDictionary>::cast(storage_);
5783 ExternalArrayClass::cast(receiver->elements()));
5833 Handle<FixedArray> elements(FixedArray::cast(receiver->elements()));
5851 Handle<PixelArray> pixels(PixelArray::cast(receiver->elements()));
5964 objects.Add(Handle<JSObject>::cast(obj));
5972 IterateElements(Handle<JSObject>::cast(obj), range, visitor);
6010 Handle<JSArray> array = Handle<JSArray>::cast(obj);
6063 static_cast<uint32_t>(JSArray::cast(obj)->length()->Number());
6094 storage = Handle<FixedArray>::cast(
6145 to->SetContent(FixedArray::cast(from->elements()));
6159 return Smi::FromInt(NumberDictionary::cast(elements)->NumberOfElements());
6292 JSObject::cast(
6364 obj = Handle<JSObject>(JSObject::cast(obj->GetPrototype()));
6416 details->set(3, FixedArray::cast(*result_callback_obj)->get(0));
6417 details->set(4, FixedArray::cast(*result_callback_obj)->get(1));
6423 cast(jsproto->GetPrototype()));
6609 Handle<Context> context(Context::cast(it.frame()->context()));
6724 Context::cast(Context::cast(it.frame()->context())->global_context()));
6761 Handle<JSFunction> function(JSFunction::cast(frame->function()));
6784 Handle<Context> frame_context(Context::cast(frame->context()));
6794 Handle<JSObject> ext(JSObject::cast(function_context->extension()));
6799 Handle<String> key(String::cast(keys->get(i)));
6829 JSObject::cast(context->get(arguments_shadow_index)));
6843 Handle<JSObject> ext(JSObject::cast(context->extension()));
6848 Handle<String> key(String::cast(keys->get(i)));
6876 function_(JSFunction::cast(frame->function())),
6877 context_(Context::cast(frame->context())),
6921 context_ = Handle<Context>(Context::cast(context_->closure()->context()));
7284 Handle<FixedArray>::cast(break_locations));
7329 Handle<SharedFunctionInfo> shared(SharedFunctionInfo::cast(obj));
7415 Handle<Script> script(Script::cast(wrapper->value()));
7420 Handle<SharedFunctionInfo> shared(SharedFunctionInfo::cast(result));
7527 Handle<JSObject> extension(JSObject::cast(context_chain->extension()));
7605 Handle<JSFunction> function(JSFunction::cast(frame->function()));
7643 Handle<Context> frame_context(Context::cast(frame->context()));
7681 Handle<Object>::cast(source).location() };
7683 Execution::Call(Handle<JSFunction>::cast(evaluation_function), receiver,
7690 result = Handle<JSObject>(JSObject::cast(result->GetPrototype()));
7756 Handle<Script> script = Handle<Script>(Script::cast(instances->get(i)));
7768 Handle<JSArray>::cast(result)->SetContent(*instances);
7792 JSObject* obj = JSObject::cast(heap_obj);
7865 JSFunction::cast(arguments_boilerplate->map()->constructor());
7875 FixedArray* instances = FixedArray::cast(object);
7885 if (!result->IsFailure()) JSArray::cast(result)->SetContent(instances);
7903 JSObject* obj = JSObject::cast(heap_obj);
7941 FixedArray* instances = FixedArray::cast(object);
7950 if (!result->IsFailure()) JSArray::cast(result)->SetContent(instances);
8057 if (Script::cast(obj)->name()->IsString()) {
8058 if (String::cast(Script::cast(obj)->name())->Equals(*script_name)) {
8059 script = Handle<Script>(Script::cast(obj));
8101 JavaScriptFrame* frame = JavaScriptFrame::cast(raw_frame);
8142 JavaScriptFrame* frame = JavaScriptFrame::cast(raw_frame);
8148 FixedArray* elements = FixedArray::cast(result->elements());
8185 Smi::cast(args[1])->value());
8274 Failure* failure = Failure::cast(result);