| 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 654 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 |