| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 if (sec()->IsSmi()) { | 494 if (sec()->IsSmi()) { |
| 495 int sec = Smi::cast(this->sec())->value(); | 495 int sec = Smi::cast(this->sec())->value(); |
| 496 CHECK(0 <= sec && sec <= 59); | 496 CHECK(0 <= sec && sec <= 59); |
| 497 } | 497 } |
| 498 if (weekday()->IsSmi()) { | 498 if (weekday()->IsSmi()) { |
| 499 int weekday = Smi::cast(this->weekday())->value(); | 499 int weekday = Smi::cast(this->weekday())->value(); |
| 500 CHECK(0 <= weekday && weekday <= 6); | 500 CHECK(0 <= weekday && weekday <= 6); |
| 501 } | 501 } |
| 502 if (cache_stamp()->IsSmi()) { | 502 if (cache_stamp()->IsSmi()) { |
| 503 CHECK(Smi::cast(cache_stamp())->value() <= | 503 CHECK(Smi::cast(cache_stamp())->value() <= |
| 504 Smi::cast(Isolate::Current()->date_cache()->stamp())->value()); | 504 Smi::cast(GetIsolate()->date_cache()->stamp())->value()); |
| 505 } | 505 } |
| 506 } | 506 } |
| 507 | 507 |
| 508 | 508 |
| 509 void JSMessageObject::JSMessageObjectVerify() { | 509 void JSMessageObject::JSMessageObjectVerify() { |
| 510 CHECK(IsJSMessageObject()); | 510 CHECK(IsJSMessageObject()); |
| 511 CHECK(type()->IsString()); | 511 CHECK(type()->IsString()); |
| 512 CHECK(arguments()->IsJSArray()); | 512 CHECK(arguments()->IsJSArray()); |
| 513 VerifyObjectField(kStartPositionOffset); | 513 VerifyObjectField(kStartPositionOffset); |
| 514 VerifyObjectField(kEndPositionOffset); | 514 VerifyObjectField(kEndPositionOffset); |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 void CallHandlerInfo::CallHandlerInfoVerify() { | 882 void CallHandlerInfo::CallHandlerInfoVerify() { |
| 883 CHECK(IsCallHandlerInfo()); | 883 CHECK(IsCallHandlerInfo()); |
| 884 VerifyPointer(callback()); | 884 VerifyPointer(callback()); |
| 885 VerifyPointer(data()); | 885 VerifyPointer(data()); |
| 886 } | 886 } |
| 887 | 887 |
| 888 | 888 |
| 889 void TemplateInfo::TemplateInfoVerify() { | 889 void TemplateInfo::TemplateInfoVerify() { |
| 890 VerifyPointer(tag()); | 890 VerifyPointer(tag()); |
| 891 VerifyPointer(property_list()); | 891 VerifyPointer(property_list()); |
| 892 VerifyPointer(property_accessors()); |
| 892 } | 893 } |
| 893 | 894 |
| 894 | 895 |
| 895 void FunctionTemplateInfo::FunctionTemplateInfoVerify() { | 896 void FunctionTemplateInfo::FunctionTemplateInfoVerify() { |
| 896 CHECK(IsFunctionTemplateInfo()); | 897 CHECK(IsFunctionTemplateInfo()); |
| 897 TemplateInfoVerify(); | 898 TemplateInfoVerify(); |
| 898 VerifyPointer(serial_number()); | 899 VerifyPointer(serial_number()); |
| 899 VerifyPointer(call_code()); | 900 VerifyPointer(call_code()); |
| 900 VerifyPointer(property_accessors()); | |
| 901 VerifyPointer(prototype_template()); | 901 VerifyPointer(prototype_template()); |
| 902 VerifyPointer(parent_template()); | 902 VerifyPointer(parent_template()); |
| 903 VerifyPointer(named_property_handler()); | 903 VerifyPointer(named_property_handler()); |
| 904 VerifyPointer(indexed_property_handler()); | 904 VerifyPointer(indexed_property_handler()); |
| 905 VerifyPointer(instance_template()); | 905 VerifyPointer(instance_template()); |
| 906 VerifyPointer(signature()); | 906 VerifyPointer(signature()); |
| 907 VerifyPointer(access_check_info()); | 907 VerifyPointer(access_check_info()); |
| 908 } | 908 } |
| 909 | 909 |
| 910 | 910 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 for (int i = 0; i < number_of_transitions(); ++i) { | 1169 for (int i = 0; i < number_of_transitions(); ++i) { |
| 1170 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1170 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
| 1171 } | 1171 } |
| 1172 return true; | 1172 return true; |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 | 1175 |
| 1176 #endif // DEBUG | 1176 #endif // DEBUG |
| 1177 | 1177 |
| 1178 } } // namespace v8::internal | 1178 } } // namespace v8::internal |
| OLD | NEW |