Home | History | Annotate | Download | only in src

Lines Matching full:args

72   RUNTIME_ASSERT(args[index]->Is##Type());                           \
73 Handle<Type> name = args.at<Type>(index);
228 CONVERT_CHECKED(JSObject, boilerplate, args[0]);
234 CONVERT_CHECKED(JSObject, boilerplate, args[0]);
481 ASSERT(args.length() == 3);
483 CONVERT_SMI_CHECKED(literals_index, args[1]);
498 ASSERT(args.length() == 4);
500 CONVERT_SMI_CHECKED(literals_index, args[1]);
502 CONVERT_SMI_CHECKED(flags, args[3]);
524 ASSERT(args.length() == 4);
526 CONVERT_SMI_CHECKED(literals_index, args[1]);
528 CONVERT_SMI_CHECKED(flags, args[3]);
550 ASSERT(args.length() == 3);
552 CONVERT_SMI_CHECKED(literals_index, args[1]);
569 ASSERT(args.length() == 3);
571 CONVERT_SMI_CHECKED(literals_index, args[1]);
591 ASSERT(args.length() == 2);
592 CONVERT_CHECKED(String, key, args[0]);
593 Object* value = args[1];
616 ASSERT(args.length() == 1);
617 Object* obj = args[0];
625 ASSERT(args.length() == 2);
627 Object* O = args[0];
628 Object* V = args[1];
641 ASSERT(args.length() == 2);
642 CONVERT_CHECKED(JSObject, jsobject, args[0]);
643 CONVERT_CHECKED(JSObject, proto, args[1]);
683 ASSERT(args.length() == 0);
803 // if args[1] is not a property on args[0]
805 // if args[1] is a data property on args[0]
807 // if args[1] is an accessor on args[0]
810 ASSERT(args.length() == 2);
947 ASSERT(args.length() == 1);
948 CONVERT_CHECKED(JSObject, obj, args[0]);
954 ASSERT(args.length() == 1);
955 CONVERT_CHECKED(JSObject, obj, args[0]);
969 ASSERT(args.length() == 3);
981 ASSERT(args.length() == 1);
988 ASSERT(args.length() == 1);
989 Object* arg = args[0];
996 ASSERT(args.length() == 2);
997 CONVERT_CHECKED(HeapObject, templ, args[0]);
998 CONVERT_CHECKED(Smi, field, args[1]);
1015 ASSERT(args.length() == 1);
1016 CONVERT_CHECKED(HeapObject, object, args[0]);
1035 ASSERT(args.length() == 1);
1036 CONVERT_CHECKED(HeapObject, object, args[0]);
1058 Handle<Object> args[2] = { type_handle, name };
1060 isolate->factory()->NewTypeError("redeclaration", HandleVector(args, 2));
1066 ASSERT(args.length() == 4);
1071 Handle<Context> context = args.at<Context>(0);
1073 bool is_eval = Smi::cast(args[2])->value() == 1;
1075 static_cast<StrictModeFlag>(Smi::cast(args[3])->value());
1210 ASSERT(args.length() == 4);
1213 Handle<String> name(String::cast(args[1]));
1215 static_cast<PropertyAttributes>(Smi::cast(args[2])->value());
1217 Handle<Object> initial_value(args[3], isolate);
1316 // args[0] == name
1317 // args[1] == strict_mode
1318 // args[2] == value (optional)
1322 RUNTIME_ASSERT(args.length() == 2 || args.length() == 3);
1323 bool assign = args.length() == 3;
1327 RUNTIME_ASSERT(args[1]->IsSmi());
1329 static_cast<StrictModeFlag>(Smi::cast(args[1])->value());
1386 Object* value = (assign) ? args[2] : isolate->heap()->undefined_value();
1403 return global->SetProperty(*name, args[2], attributes, strict_mode);
1413 RUNTIME_ASSERT(args.length() == 2);
1415 Handle<Object> value = args.at<Object>(1);
1501 ASSERT(args.length() == 3);
1503 Handle<Object> value(args[0], isolate);
1506 Handle<String> name(String::cast(args[2]));
1609 ASSERT(args.length() == 2);
1611 CONVERT_SMI_CHECKED(properties, args[1]);
1621 ASSERT(args.length() == 4);
1626 CONVERT_SMI_CHECKED(index, args[2]);
1642 ASSERT(args.length() == 3);
1643 CONVERT_SMI_CHECKED(elements_count, args[0]);
1668 array->InObjectPropertyAtPut(JSRegExpResult::kIndexIndex, args[1]);
1669 array->InObjectPropertyAtPut(JSRegExpResult::kInputIndex, args[2]);
1676 ASSERT(args.length() == 5);
1677 CONVERT_CHECKED(JSRegExp, regexp, args[0]);
1678 CONVERT_CHECKED(String, source, args[1]);
1680 Object* global = args[2];
1683 Object* ignoreCase = args[3];
1686 Object* multiline = args[4];
1742 ASSERT(args.length() == 1);
1771 ASSERT(args.length() == 1);
1796 ASSERT(args.length() == 4);
1798 int index = Smi::cast(args[1])->value();
1799 Handle<String> pattern = args.at<String>(2);
1800 Handle<String> flags = args.at<String>(3);
1826 ASSERT(args.length() == 1);
1828 CONVERT_CHECKED(JSFunction, f, args[0]);
1835 ASSERT(args.length() == 2);
1837 CONVERT_CHECKED(JSFunction, f, args[0]);
1838 CONVERT_CHECKED(String, name, args[1]);
1846 ASSERT(args.length() == 1);
1848 CONVERT_CHECKED(JSFunction, f, args[0]);
1858 ASSERT(args.length() == 1);
1860 CONVERT_CHECKED(JSFunction, fun, args[0]);
1870 ASSERT(args.length() == 1);
1872 CONVERT_CHECKED(JSFunction, f, args[0]);
1879 ASSERT(args.length() == 1);
1881 CONVERT_CHECKED(JSFunction, fun, args[0]);
1888 ASSERT(args.length() == 2);
1890 CONVERT_CHECKED(Code, code, args[0]);
1891 CONVERT_NUMBER_CHECKED(int, offset, Int32, args[1]);
1902 ASSERT(args.length() == 2);
1904 CONVERT_CHECKED(JSFunction, fun, args[0]);
1905 CONVERT_CHECKED(String, name, args[1]);
1913 ASSERT(args.length() == 2);
1915 CONVERT_CHECKED(JSFunction, fun, args[0]);
1916 CONVERT_CHECKED(Smi, length, args[1]);
1924 ASSERT(args.length() == 2);
1926 CONVERT_CHECKED(JSFunction, fun, args[0]);
1930 Accessors::FunctionSetPrototype(fun, args[1], NULL);
1933 return args[0]; // return TOS
1939 ASSERT(args.length() == 1);
1941 CONVERT_CHECKED(JSFunction, f, args[0]);
1949 ASSERT(args.length() == 1);
1951 CONVERT_CHECKED(JSFunction, f, args[0]);
1959 ASSERT(args.length() == 2);
1962 Handle<Object> code = args.at<Object>(1);
2022 ASSERT(args.length() == 2);
2024 CONVERT_SMI_CHECKED(num, args[1]);
2045 ASSERT(args.length() == 2);
2047 CONVERT_CHECKED(String, subject, args[0]);
2048 Object* index = args[1];
2081 ASSERT(args.length() == 1);
2082 return CharFromCode(isolate, args[0]);
2814 ASSERT(args.length() == 4);
2816 CONVERT_CHECKED(String, subject, args[0]);
2827 CONVERT_CHECKED(String, replacement, args[2]);
2838 CONVERT_CHECKED(JSRegExp, regexp, args[1]);
2839 CONVERT_CHECKED(JSArray, last_match_info, args[3]);
2917 ASSERT(args.length() == 3);
2922 Object* index = args[2];
2969 ASSERT(args.length() == 3);
2974 Object* index = args[2];
3026 ASSERT(args.length() == 2);
3028 CONVERT_CHECKED(String, str1, args[0]);
3029 CONVERT_CHECKED(String, str2, args[1]);
3074 ASSERT(args.length() == 3);
3076 CONVERT_CHECKED(String, value, args[0]);
3077 Object* from = args[1];
3078 Object* to = args[2];
3100 ASSERT_EQ(3, args.length());
3466 ASSERT(args.length() == 4);
3522 ASSERT(args.length() == 2);
3525 if (args[0]->IsSmi() && args[1]->IsSmi()) {
3526 int value = Smi::cast(args[0])->value();
3527 int radix = Smi::cast(args[1])->value();
3538 CONVERT_DOUBLE_CHECKED(value, args[0]);
3548 CONVERT_DOUBLE_CHECKED(radix_number, args[1]);
3561 ASSERT(args.length() == 2);
3563 CONVERT_DOUBLE_CHECKED(value, args[0]);
3573 CONVERT_DOUBLE_CHECKED(f_number, args[1]);
3586 ASSERT(args.length() == 2);
3588 CONVERT_DOUBLE_CHECKED(value, args[0]);
3598 CONVERT_DOUBLE_CHECKED(f_number, args[1]);
3611 ASSERT(args.length() == 2);
3613 CONVERT_DOUBLE_CHECKED(value, args[0]);
3623 CONVERT_DOUBLE_CHECKED(f_number, args[1]);
3683 Handle<Object> args[2] = { key, object };
3686 HandleVector(args, 2));
3721 ASSERT(args.length() == 2);
3723 Handle<Object> object = args.at<Object>(0);
3724 Handle<Object> key = args.at<Object>(1);
3733 ASSERT(args.length() == 2);
3746 if (args[0]->IsJSObject() &&
3747 !args[0]->IsJSGlobalProxy() &&
3748 !args[0]->IsAccessCheckNeeded() &&
3749 args[1]->IsString()) {
3750 JSObject* receiver = JSObject::cast(args[0]);
3751 String* key = String::cast(args[1]);
3782 } else if (args[0]->IsString() && args[1]->IsSmi()) {
3785 Handle<String> str = args.at<String>(0);
3786 int index = Smi::cast(args[1])->value();
3795 args.at<Object>(0),
3796 args.at<Object>(1));
3806 ASSERT(args.length() == 5);
3809 CONVERT_CHECKED(String, name, args[1]);
3810 CONVERT_CHECKED(Smi, flag_setter, args[2]);
3811 Object* fun = args[3];
3813 CONVERT_CHECKED(Smi, flag_attr, args[4]);
3843 ASSERT(args.length() == 4);
3847 Handle<Object> obj_value = args.at<Object>(2);
3849 CONVERT_CHECKED(Smi, flag, args[3]);
3933 Handle<Object> args[2] = { key, object };
3936 HandleVector(args, 2));
4080 RUNTIME_ASSERT(args.length() == 4 || args.length() == 5);
4082 Handle<Object> object = args.at<Object>(0);
4083 Handle<Object> key = args.at<Object>(1);
4084 Handle<Object> value = args.at<Object>(2);
4085 CONVERT_SMI_CHECKED(unchecked_attributes, args[3]);
4093 if (args.length() == 5) {
4094 CONVERT_SMI_CHECKED(strict_unchecked, args[4]);
4113 RUNTIME_ASSERT(args.length() == 3 || args.length() == 4);
4114 CONVERT_CHECKED(JSObject, object, args[0]);
4115 CONVERT_CHECKED(String, name, args[1]);
4118 if (args.length() == 4) {
4119 CONVERT_CHECKED(Smi, value_obj, args[3]);
4128 SetLocalPropertyIgnoreAttributes(name, args[2], attributes);
4134 ASSERT(args.length() == 3);
4136 CONVERT_CHECKED(JSObject, object, args[0]);
4137 CONVERT_CHECKED(String, key, args[1]);
4138 CONVERT_SMI_CHECKED(strict, args[2]);
4165 ASSERT(args.length() == 2);
4166 CONVERT_CHECKED(String, key, args[1]);
4168 Object* obj = args[0];
4195 ASSERT(args.length() == 2);
4198 if (args[0]->IsJSObject()) {
4199 JSObject* object = JSObject::cast(args[0]);
4200 CONVERT_CHECKED(String, key, args[1]);
4209 ASSERT(args.length() == 2);
4212 if (args[0]->IsJSObject()) {
4213 JSObject* object = JSObject::cast(args[0]);
4214 CONVERT_CHECKED(Smi, index_obj, args[1]);
4224 ASSERT(args.length() == 2);
4226 CONVERT_CHECKED(JSObject, object, args[0]);
4227 CONVERT_CHECKED(String, key, args[1]);
4241 ASSERT(args.length() == 1);
4253 ASSERT(args.length() == 1);
4255 CONVERT_CHECKED(JSObject, raw_object, args[0]);
4287 // args[0]: object
4290 ASSERT(args.length() == 1);
4291 if (!args[0]->IsJSObject()) {
4374 // args[0]: object
4377 ASSERT(args.length() == 1);
4378 if (!args[0]->IsJSObject()) {
4391 // args[0]: object
4394 ASSERT(args.length() == 1);
4395 if (!args[0]->IsJSObject()) {
4409 // args[0]: object
4412 ASSERT(args.length() == 1);
4424 // args[0]: object
4427 ASSERT(args.length() == 1);
4439 ASSERT_EQ(args.length(), 1);
4440 CONVERT_CHECKED(JSObject, raw_object, args[0]);
4485 ASSERT(args.length() == 1);
4498 if (args[0]->ToArrayIndex(&index) && index < n) {
4506 Execution::ToString(args.at<Object>(0), &exception);
4539 ASSERT(args.length() == 1);
4540 Handle<Object> object = args.at<Object>(0);
4555 ASSERT(args.length() == 1);
4556 Handle<Object> object = args.at<Object>(0);
4567 ASSERT(args.length() == 1);
4569 return args[0]->ToBoolean();
4578 Object* obj = args[0];
4636 ASSERT(args.length() == 1);
4637 CONVERT_CHECKED(String, subject, args[0]);
4691 ASSERT(args.length() == 1);
4693 CONVERT_CHECKED(JSArray, codes, args[0]);
4772 ASSERT(args.length() == 1);
4773 CONVERT_CHECKED(String, source, args[0]);
4890 ASSERT(args.length() == 1);
4891 CONVERT_CHECKED(String, source, args[0]);
5134 CONVERT_CHECKED(String, str, args[0]);
5156 CONVERT_CHECKED(String, str, args[0]);
5178 CONVERT_CHECKED(String, s, args[0]);
5179 CONVERT_SMI_CHECKED(radix, args[1]);
5191 CONVERT_CHECKED(String, str, args[0]);
5436 Arguments args,
5440 CONVERT_CHECKED(String, s, args[0]);
5483 args, isolate, isolate->runtime_state()->to_lower_mapping());
5489 args, isolate, isolate->runtime_state()->to_upper_mapping());
5500 ASSERT(args.length() == 3);
5502 CONVERT_CHECKED(String, s, args[0]);
5503 CONVERT_BOOLEAN_CHECKED(trimLeft, args[1]);
5504 CONVERT_BOOLEAN_CHECKED(trimRight, args[2]);
5549 ASSERT(args.length() == 3);
5553 CONVERT_NUMBER_CHECKED(uint32_t, limit, Uint32, args[2]);
5681 ASSERT(args.length() == 2);
5683 CONVERT_NUMBER_CHECKED(uint32_t, limit, Uint32, args[1]);
5729 ASSERT(args.length() == 1);
5730 CONVERT_CHECKED(String, value, args[0]);
5744 ASSERT(args.length() == 1);
5746 Object* number = args[0];
5755 ASSERT(args.length() == 1);
5757 Object* number = args[0];
5766 ASSERT(args.length() == 1);
5768 CONVERT_DOUBLE_CHECKED(number, args[0]);
5780 ASSERT(args.length() == 1);
5782 CONVERT_DOUBLE_CHECKED(number, args[0]);
5799 ASSERT(args.length() == 1);
5801 CONVERT_NUMBER_CHECKED(int32_t, number, Uint32, args[0]);
5808 ASSERT(args.length() == 1);
5810 CONVERT_DOUBLE_CHECKED(number, args[0]);
5824 ASSERT(args.length() == 1);
5826 Object* obj = args[0];
5843 ASSERT(args.length() == 0);
5850 ASSERT(args.length() == 2);
5852 CONVERT_DOUBLE_CHECKED(x, args[0]);
5853 CONVERT_DOUBLE_CHECKED(y, args[1]);
5860 ASSERT(args.length() == 2);
5862 CONVERT_DOUBLE_CHECKED(x, args[0]);
5863 CONVERT_DOUBLE_CHECKED(y, args[1]);
5870 ASSERT(args.length() == 2);
5872 CONVERT_DOUBLE_CHECKED(x, args[0]);
5873 CONVERT_DOUBLE_CHECKED(y, args[1]);
5880 ASSERT(args.length() == 1);
5882 CONVERT_DOUBLE_CHECKED(x, args[0]);
5889 ASSERT(args.length() == 0);
5897 ASSERT(args.length() == 2);
5899 CONVERT_DOUBLE_CHECKED(x, args[0]);
5900 CONVERT_DOUBLE_CHECKED(y, args[1]);
5907 ASSERT(args.length() == 2);
5909 CONVERT_DOUBLE_CHECKED(x, args[0]);
5910 CONVERT_DOUBLE_CHECKED(y, args[1]);
5920 ASSERT(args.length() == 2);
5921 CONVERT_CHECKED(String, str1, args[0]);
5922 CONVERT_CHECKED(String, str2, args[1]);
5969 ASSERT(args.length() == 3);
5970 CONVERT_CHECKED(JSArray, array, args[0]);
5971 if (!args[1]->IsSmi()) {
5975 int array_length = Smi::cast(args[1])->value();
5976 CONVERT_CHECKED(String, special, args[2]);
6082 ASSERT(args.length() == 3);
6083 CONVERT_CHECKED(JSArray, array, args[0]);
6084 if (!args[1]->IsSmi()) {
6088 int array_length = Smi::cast(args[1])->value();
6089 CONVERT_CHECKED(String, separator, args[2]);
6166 ASSERT(args.length() == 2);
6168 CONVERT_NUMBER_CHECKED(int32_t, x, Int32, args[0]);
6169 CONVERT_NUMBER_CHECKED(int32_t, y, Int32, args[1]);
6176 ASSERT(args.length() == 2);
6178 CONVERT_NUMBER_CHECKED(int32_t, x, Int32, args[0]);
6179 CONVERT_NUMBER_CHECKED(int32_t, y, Int32, args[1]);
6186 ASSERT(args.length() == 2);
6188 CONVERT_NUMBER_CHECKED(int32_t, x, Int32, args[0]);
6189 CONVERT_NUMBER_CHECKED(int32_t, y, Int32, args[1]);
6196 ASSERT(args.length() == 1);
6198 CONVERT_NUMBER_CHECKED(int32_t, x, Int32, args[0]);
6205 ASSERT(args.length() == 2);
6207 CONVERT_NUMBER_CHECKED(int32_t, x, Int32, args[0]);
6208 CONVERT_NUMBER_CHECKED(int32_t, y, Int32, args[1]);
6215 ASSERT(args.length() == 2);
6217 CONVERT_NUMBER_CHECKED(uint32_t, x, Uint32, args[0]);
6218 CONVERT_NUMBER_CHECKED(int32_t, y, Int32, args[1]);
6225 ASSERT(args.length() == 2);
6227 CONVERT_NUMBER_CHECKED(int32_t, x, Int32, args[0]);
6228 CONVERT_NUMBER_CHECKED(int32_t, y, Int32, args[1]);
6235 ASSERT(args.length() == 2);
6237 CONVERT_DOUBLE_CHECKED(x, args[0]);
6238 CONVERT_DOUBLE_CHECKED(y, args[1]);
6254 ASSERT(args.length() == 2);
6256 CONVERT_CHECKED(String, x, args[0]);
6257 CONVERT_CHECKED(String, y, args[1]);
6272 ASSERT(args.length() == 3);
6274 CONVERT_DOUBLE_CHECKED(x, args[0]);
6275 CONVERT_DOUBLE_CHECKED(y, args[1]);
6276 if (isnan(x) || isnan(y)) return args[2];
6287 ASSERT(args.length() == 2);
6290 CONVERT_CHECKED(Smi, x, args[0]);
6291 CONVERT_CHECKED(Smi, y, args[1]);
6410 ASSERT(args.length() == 2);
6412 CONVERT_CHECKED(String, x, args[0]);
6413 CONVERT_CHECKED(String, y, args[1]);
6445 ASSERT(args.length() == 1);
6448 CONVERT_DOUBLE_CHECKED(x, args[0]);
6455 ASSERT(args.length() == 1);
6458 CONVERT_DOUBLE_CHECKED(x, args[0]);
6465 ASSERT(args.length() == 1);
6468 CONVERT_DOUBLE_CHECKED(x, args[0]);
6478 ASSERT(args.length() == 2);
6481 CONVERT_DOUBLE_CHECKED(x, args[0]);
6482 CONVERT_DOUBLE_CHECKED(y, args[1]);
6501 ASSERT(args.length() == 1);
6504 CONVERT_DOUBLE_CHECKED(x, args[0]);
6511 ASSERT(args.length() == 1);
6514 CONVERT_DOUBLE_CHECKED(x, args[0]);
6521 ASSERT(args.length() == 1);
6524 CONVERT_DOUBLE_CHECKED(x, args[0]);
6531 ASSERT(args.length() == 1);
6534 CONVERT_DOUBLE_CHECKED(x, args[0]);
6541 ASSERT(args.length() == 1);
6544 CONVERT_DOUBLE_CHECKED(x, args[0]);
6551 ASSERT(args.length() == 2);
6554 CONVERT_DOUBLE_CHECKED(x, args[0]);
6558 if (args[1]->IsSmi()) {
6559 int y = Smi::cast(args[1])->value();
6563 CONVERT_DOUBLE_CHECKED(y, args[1]);
6571 ASSERT(args.length() == 2);
6572 CONVERT_DOUBLE_CHECKED(x, args[0]);
6573 CONVERT_DOUBLE_CHECKED(y, args[1]);
6586 ASSERT(args.length() == 1);
6589 if (!args[0]->IsHeapNumber()) {
6592 return args[0];
6595 HeapNumber* number = reinterpret_cast<HeapNumber*>(args[0]);
6622 ASSERT(args.length() == 1);
6625 CONVERT_DOUBLE_CHECKED(x, args[0]);
6632 ASSERT(args.length() == 1);
6635 CONVERT_DOUBLE_CHECKED(x, args[0]);
6642 ASSERT(args.length() == 1);
6645 CONVERT_DOUBLE_CHECKED(x, args[0]);
6697 ASSERT(args.length() == 3);
6699 CONVERT_SMI_CHECKED(year, args[0]);
6700 CONVERT_SMI_CHECKED(month, args[1]);
6701 CONVERT_SMI_CHECKED(date, args[2]);
6996 ASSERT(args.length() == 2);
6998 CONVERT_DOUBLE_CHECKED(t, args[0]);
6999 CONVERT_CHECKED(JSArray, res_array, args[1]);
7019 ASSERT(args.length() == 3);
7021 JSFunction* callee = JSFunction::cast(args[0]);
7022 Object** parameters = reinterpret_cast<Object**>(args[1]);
7023 const int length = Smi::cast(args[2])->value();
7055 ASSERT(args.length() == 3);
7058 CONVERT_BOOLEAN_CHECKED(pretenure, args[2]);
7114 ASSERT(args.length() == 2);
7121 if (!args[1]->IsNull()) {
7167 ASSERT(args.length() == 1);
7169 Handle<Object> constructor = args.at<Object>(0);
7247 ASSERT(args.length() == 1);
7259 ASSERT(args.length() == 1);
7261 Handle<JSFunction> function = args.at<JSFunction>(0);
7290 ASSERT(args.length() == 1);
7291 Handle<JSFunction> function = args.at<JSFunction>(0);
7321 ASSERT(args.length() == 1);
7322 RUNTIME_ASSERT(args[0]->IsSmi());
7324 static_cast<Deoptimizer::BailoutType>(Smi::cast(args[0])->value());
7401 ASSERT(args.length() == 1);
7413 ASSERT(args.length() == 1);
7423 ASSERT(args.length() == 1);
7537 ASSERT(args.length() == 1);
7538 RUNTIME_ASSERT(!args[0]->IsJSFunction());
7539 return *Execution::GetFunctionDelegate(args.at<Object>(0));
7545 ASSERT(args.length() == 1);
7546 RUNTIME_ASSERT(!args[0]->IsJSFunction());
7547 return *Execution::GetConstructorDelegate(args.at<Object>(0));
7553 ASSERT(args.length() == 1);
7555 CONVERT_CHECKED(JSFunction, function, args[0]);
7604 ASSERT(args.length() == 1);
7605 return PushContextHelper(isolate, args[0], false);
7611 ASSERT(args.length() == 1);
7612 return PushContextHelper(isolate, args[0], true);
7618 ASSERT(args.length() == 2);
7712 static ObjectPair LoadContextSlotHelper(Arguments args,
7716 ASSERT_EQ(2, args.length());
7718 if (!args[0]->IsContext() || !args[1]->IsString()) {
7721 Handle<Context> context = args.at<Context>(0);
7722 Handle<String> name = args.at<String>(1);
7777 return LoadContextSlotHelper(args, isolate, true);
7782 return LoadContextSlotHelper(args, isolate, false);
7788 ASSERT(args.length() == 4);
7790 Handle<Object> value(args[0], isolate);
7793 CONVERT_SMI_CHECKED(strict_unchecked, args[3]);
7871 ASSERT(args.length() == 1);
7873 return isolate->Throw(args[0]);
7879 ASSERT(args.length() == 1);
7881 return isolate->ReThrow(args[0]);
7886 ASSERT_EQ(0, args.length());
7893 ASSERT(args.length() == 1);
7895 Handle<Object> name(args[0], isolate);
7904 ASSERT(args.length() == 0);
8003 ASSERT(args.length() == 0);
8012 PrintTransition(args[0]);
8013 return args[0]; // return TOS
8019 ASSERT(args.length() == 1);
8022 if (args[0]->IsString()) {
8032 args[0]->Print();
8033 if (args[0]->IsHeapObject()) {
8035 HeapObject::cast(args[0])->map()->Print();
8039 args[0]->ShortPrint();
8044 return args[0]; // return TOS
8049 ASSERT(args.length() == 0);
8058 ASSERT(args.length() == 0);
8071 ASSERT(args.length() == 2);
8105 ASSERT(args.length() == 1);
8107 CONVERT_DOUBLE_CHECKED(x, args[0]);
8115 ASSERT(args.length() == 0);
8123 ASSERT(args.length() == 1);
8125 CONVERT_DOUBLE_CHECKED(x, args[0]);
8131 ASSERT(args.length() == 1);
8132 Object* global = args[0];
8140 ASSERT_EQ(1, args.length());
8155 ASSERT_EQ(1, args.length());
8193 ASSERT(args.length() == 4);
8196 Handle<Object> callee = args.at<Object>(0);
8254 !args[1]->IsString()) {
8259 ASSERT(args[3]->IsSmi());
8261 args.at<String>(1),
8262 args.at<Object>(2),
8264 Smi::cast(args[3])->value()));
8269 ASSERT(args.length() == 4);
8272 Handle<Object> callee = args.at<Object>(0);
8277 !args[1]->IsString()) {
8282 ASSERT(args[3]->IsSmi());
8284 args.at<String>(1),
8285 args.at<Object>(2),
8287 Smi::cast(args[3])->value()));
8297 ASSERT(args.length() == 1);
8315 ASSERT(args.length() == 1);
8337 ASSERT(args.length() == 2);
8338 CONVERT_CHECKED(JSArray, array, args[0]);
8339 CONVERT_CHECKED(JSObject, element, args[1]);
8786 ASSERT(args.length() == 1);
8875 ASSERT(args.length() == 1);
8877 CONVERT_CHECKED(String, string, args[0]);
8892 ASSERT(args.length() == 2);
8893 CONVERT_CHECKED(JSObject, object, args[0]);
8894 CONVERT_NUMBER_CHECKED(uint32_t, limit, Uint32, args[1]);
8901 ASSERT(args.length() == 2);
8902 CONVERT_CHECKED(JSArray, from, args[0]);
8903 CONVERT_CHECKED(JSArray, to, args[1]);
8928 ASSERT(args.length() == 1);
8929 CONVERT_CHECKED(JSObject, object, args[0]);
8944 ASSERT_EQ(3, args.length());
8947 Handle<Object> key1 = args.at<Object>(1);
8948 Handle<Object> key2 = args.at<Object>(2);
8977 ASSERT(args.length() == 2);
8980 CONVERT_NUMBER_CHECKED(uint32_t, length, Uint32, args[1]);
9017 RUNTIME_ASSERT(args.length() == 4 || args.length() == 5);
9020 if (args.length() == 5) {
9021 CONVERT_CHECKED(Smi, attrs, args[4]);
9028 CONVERT_CHECKED(JSObject, obj, args[0]);
9029 CONVERT_CHECKED(String, name, args[1]);
9030 CONVERT_CHECKED(Smi, flag, args[2]);
9031 CONVERT_CHECKED(JSFunction, fun, args[3]);
9037 ASSERT(args.length() == 3);
9038 CONVERT_CHECKED(JSObject, obj, args[0]);
9039 CONVERT_CHECKED(String, name, args[1]);
9040 CONVERT_CHECKED(Smi, flag, args[2]);
9047 ASSERT(args.length() == 0);
9065 // args[0]: debug event listener function to set or null or undefined for
9067 // args[1]: object supplied during callback
9069 ASSERT(args.length() == 2);
9070 RUNTIME_ASSERT(args[0]->IsJSFunction() ||
9071 args[0]->IsUndefined() ||
9072 args[0]->IsNull());
9073 Handle<Object> callback = args.at<Object>(0);
9074 Handle<Object> data = args.at<Object>(1);
9082 ASSERT(args.length() == 0);
9146 // args[0]: object holding property
9147 // args[1]: name of the property
9160 ASSERT(args.length() == 2);
9260 ASSERT(args.length() == 2);
9275 // args[0]: smi with property details.
9277 ASSERT(args.length() == 1);
9278 CONVERT_CHECKED(Smi, details, args[0]);
9285 // args[0]: smi with property details.
9287 ASSERT(args.length() == 1);
9288 CONVERT_CHECKED(Smi, details, args[0]);
9295 // args[0]: smi with property details.
9297 ASSERT(args.length() == 1);
9298 CONVERT_CHECKED(Smi, details, args[0]);
9305 // args[0]: object
9306 // args[1]: property name
9309 ASSERT(args.length() == 2);
9320 // args[0]: object
9321 // args[1]: index
9324 ASSERT(args.length() == 2);
9327 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]);
9334 ASSERT(args.length() >= 1);
9335 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]);
9349 ASSERT(args.length() == 1);
9354 RUNTIME_ARGUMENTS(isolate, args));
9382 // args[0]: number: break id
9383 // args[1]: number: frame index
9400 ASSERT(args.length() == 2);
9405 RUNTIME_ARGUMENTS(isolate, args));
9408 CONVERT_NUMBER_CHECKED(int, index, Int32, args[1]);
10028 ASSERT(args.length() == 2);
10033 RUNTIME_ARGUMENTS(isolate, args));
10036 CONVERT_CHECKED(Smi, wrapped_id, args[1]);
10058 // args[0]: number: break id
10059 // args[1]: number: frame index
10060 // args[2]: number: scope index
10067 ASSERT(args.length() == 3);
10072 RUNTIME_ARGUMENTS(isolate, args));
10075 CONVERT_CHECKED(Smi, wrapped_id, args[1]);
10076 CONVERT_NUMBER_CHECKED(int, index, Int32, args[2]);
10109 ASSERT(args.length() == 0);
10125 ASSERT(args.length() == 1);
10130 RUNTIME_ARGUMENTS(isolate, args));
10153 // args[0]: number: break id
10154 // args[1]: number: thread index
10161 ASSERT(args.length() == 2);
10166 RUNTIME_ARGUMENTS(isolate, args));
10169 CONVERT_NUMBER_CHECKED(int, index, Int32, args[1]);
10208 // args[0]: disable break state
10211 ASSERT(args.length() == 1);
10212 CONVERT_BOOLEAN_CHECKED(disable_break, args[0]);
10220 ASSERT(args.length() == 1);
10234 // args[0]: function
10235 // args[1]: number: break source position (within the function source)
10236 // args[2]: number: break point object
10239 ASSERT(args.length() == 3);
10242 CONVERT_NUMBER_CHECKED(int32_t, source_position, Int32, args[1]);
10244 Handle<Object> break_point_object_arg = args.at<Object>(2);
10335 // args[0]: script to set break point in
10336 // args[1]: number: break source position (within the script source)
10337 // args[2]: number: break point object
10340 ASSERT(args.length() == 3);
10342 CONVERT_NUMBER_CHECKED(int32_t, source_position, Int32, args[1]);
10344 Handle<Object> break_point_object_arg = args.at<Object>(2);
10371 // args[0]: number: break point object
10374 ASSERT(args.length() == 1);
10375 Handle<Object> break_point_object_arg = args.at<Object>(0);
10385 // args[0]: Enum value indicating whether to affect caught/uncaught exceptions.
10386 // args[1]: Boolean indicating on/off.
10389 ASSERT(args.length() == 2);
10390 RUNTIME_ASSERT(args[0]->IsNumber());
10391 CONVERT_BOOLEAN_CHECKED(enable, args[1]);
10396 static_cast<ExceptionBreakType>(NumberToUint32(args[0]));
10404 // args[0]: boolean indicating uncaught exceptions
10407 ASSERT(args.length() == 1);
10408 RUNTIME_ASSERT(args[0]->IsNumber());
10411 static_cast<ExceptionBreakType>(NumberToUint32(args[0]));
10418 // args[0]: break id for checking execution state
10419 // args[1]: step action from the enumeration StepAction
10420 // args[2]: number of times to perform the step, for step out it is the number
10424 ASSERT(args.length() == 3);
10428 RUNTIME_ARGUMENTS(isolate, args));
10431 if (!args[1]->IsNumber() || !args[2]->IsNumber()) {
10436 StepAction step_action = static_cast<StepAction>(NumberToInt32(args[1]));
10446 int step_count = NumberToInt32(args[2]);
10464 ASSERT(args.length() == 0);
10550 ASSERT(args.length() == 5);
10553 RUNTIME_ARGUMENTS(isolate, args));
10558 CONVERT_CHECKED(Smi, wrapped_id, args[1]);
10560 CONVERT_BOOLEAN_CHECKED(disable_break, args[3]);
10561 Handle<Object> additional_context(args[4]);
10677 ASSERT(args.length() == 4);
10680 RUNTIME_ARGUMENTS(isolate, args));
10686 CONVERT_BOOLEAN_CHECKED(disable_break, args[2]);
10687 Handle<Object> additional_context(args[3]);
10745 ASSERT(args.length() == 0);
10841 // args[0]: the object to find references to
10842 // args[1]: constructor function for instances to exclude (Mirror)
10843 // args[2]: the the maximum number of objects to return
10845 ASSERT(args.length() == 3);
10851 CONVERT_CHECKED(JSObject, target, args[0]);
10852 Object* instance_filter = args[1];
10855 CONVERT_NUMBER_CHECKED(int32_t, max_references, Int32, args[2]);
10922 // args[0]: the constructor to find instances of
10923 // args[1]: the the maximum number of objects to return
10925 ASSERT(args.length() == 2);
10931 CONVERT_CHECKED(JSFunction, constructor, args[0]);
10932 CONVERT_NUMBER_CHECKED(int32_t, max_references, Int32, args[1]);
10961 // args[0]: the object to find the prototype for.
10963 ASSERT(args.length() == 1);
10965 CONVERT_CHECKED(JSObject, obj, args[0]);
10973 ASSERT(args.length() == 0);
10982 ASSERT(args.length() == 1);
10998 ASSERT(args.length() == 1);
11013 ASSERT(args.length() == 1);
11015 CONVERT_CHECKED(JSFunction, f, args[0]);
11049 ASSERT(args.length() == 1);
11051 CONVERT_CHECKED(JSValue, script_value, args[0]);
11081 ASSERT(args.length() == 2);
11083 CONVERT_CHECKED(JSValue, script, args[0]);
11100 ASSERT(args.length() == 3);
11102 CONVERT_CHECKED(JSValue, original_script_value, args[0]);
11104 Handle<Object> old_script_name(args[2], isolate);
11124 ASSERT(args.length() == 1);
11133 ASSERT(args.length() == 2);
11143 ASSERT(args.length() == 2);
11145 Handle<Object> function_object(args[0], isolate);
11146 Handle<Object> script_object(args[1], isolate);
11168 ASSERT(args.length() == 3);
11188 ASSERT(args.length() == 2);
11202 ASSERT(args.length() == 2);
11205 CONVERT_BOOLEAN_CHECKED(do_drop, args[1]);
11214 ASSERT(args.length() == 2);
11226 ASSERT(args.length() == 2);
11229 CONVERT_NUMBER_CHECKED(int32_t, source_position, Int32, args[1]);
11263 ASSERT(args.length() == 2);
11266 CONVERT_BOOLEAN_CHECKED(without_debugger, args[1]);
11290 CONVERT_CHECKED(String, arg, args[0]);
11339 CONVERT_SMI_CHECKED(id, args[0]);
11357 CONVERT_SMI_CHECKED(id1, args[0]);
11358 CONVERT_SMI_CHECKED(id2, args[1]);
11359 CONVERT_SMI_CHECKED(start, args[2]);
11360 CONVERT_SMI_CHECKED(count, args[3]);
11374 CONVERT_SMI_CHECKED(obj_id, args[0]);
11401 CONVERT_SMI_CHECKED(obj_id, args[0]);
11402 RUNTIME_ASSERT(args[1]->IsUndefined() || args[1]->IsJSObject());
11403 RUNTIME_ASSERT(args[2]->IsUndefined() || args[2]->IsBoolean());
11404 RUNTIME_ASSERT(args[3]->IsUndefined() || args[3]->IsSmi());
11405 RUNTIME_ASSERT(args[4]->IsUndefined() || args[4]->IsSmi());
11409 if (args[1]->IsJSObject()) {
11410 instance_filter = args.at<JSObject>(1);
11413 if (args[2]->IsBoolean()) {
11414 verbose = args[2]->IsTrue();
11417 if (args[3]->IsSmi()) {
11418 start = Smi::cast(args[3])->value();
11421 if (args[4]->IsSmi()) {
11422 limit = Smi::cast(args[4])->value();
11441 CONVERT_SMI_CHECKED(obj_id1, args[0]);
11442 CONVERT_SMI_CHECKED(obj_id2, args[1]);
11443 RUNTIME_ASSERT(args[2]->IsUndefined() || args[2]->IsJSObject());
11446 if (args[2]->IsJSObject()) {
11447 instance_filter = args.at<JSObject>(2);
11463 CONVERT_SMI_CHECKED(start, args[0]);
11464 CONVERT_SMI_CHECKED(count, args[1]);
11477 CONVERT_SMI_CHECKED(obj_id, args[0]);
11505 CONVERT_SMI_CHECKED(id1, args[0]);
11506 CONVERT_SMI_CHECKED(id2, args[1]);
11522 ASSERT(args.length() == 2);
11524 CONVERT_CHECKED(Smi, smi_modules, args[0]);
11525 CONVERT_CHECKED(Smi, smi_tag, args[1]);
11533 ASSERT(args.length() == 2);
11535 CONVERT_CHECKED(Smi, smi_modules, args[0]);
11536 CONVERT_CHECKED(Smi, smi_tag, args[1]);
11577 // args[0]: script data for the script to find the source for
11581 ASSERT(args.length() == 1);
11583 CONVERT_CHECKED(String, script_name, args[0]);
11624 ASSERT_EQ(args.length(), 2);
11625 Handle<Object> caller = args.at<Object>(0);
11626 CONVERT_NUMBER_CHECKED(int32_t, limit, Int32, args[1]);
11683 ASSERT_EQ(args.length(), 0);
11695 ASSERT(args.length() == 2);
11696 OS::PrintError("abort: %s\n", reinterpret_cast<char*>(args[0]) +
11697 Smi::cast(args[1])->value());
11707 CONVERT_CHECKED(JSFunctionResultCache, cache, args[0]);
11708 Object* key = args[1];
11813 CONVERT_CHECKED(JSMessageObject, message, args[0]);
11819 CONVERT_CHECKED(JSMessageObject, message, args[0]);
11825 CONVERT_CHECKED(JSMessageObject, message, args[0]);
11831 CONVERT_CHECKED(JSMessageObject, message, args[0]);
11840 ASSERT(args.length() == 0);
11884 ASSERT(args.length() == 2);
11885 CONVERT_CHECKED(String, format, args[0]);
11886 CONVERT_CHECKED(JSArray, elms, args[1]);