| 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 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2109 if (index >= static_cast<uint32_t>(str->length())) return false; | 2109 if (index >= static_cast<uint32_t>(str->length())) return false; |
| 2110 | 2110 |
| 2111 return true; | 2111 return true; |
| 2112 } | 2112 } |
| 2113 | 2113 |
| 2114 | 2114 |
| 2115 void Object::VerifyApiCallResultType() { | 2115 void Object::VerifyApiCallResultType() { |
| 2116 #if ENABLE_EXTRA_CHECKS | 2116 #if ENABLE_EXTRA_CHECKS |
| 2117 if (!(IsSmi() || | 2117 if (!(IsSmi() || |
| 2118 IsString() || | 2118 IsString() || |
| 2119 IsSymbol() || |
| 2119 IsSpecObject() || | 2120 IsSpecObject() || |
| 2120 IsHeapNumber() || | 2121 IsHeapNumber() || |
| 2121 IsUndefined() || | 2122 IsUndefined() || |
| 2122 IsTrue() || | 2123 IsTrue() || |
| 2123 IsFalse() || | 2124 IsFalse() || |
| 2124 IsNull())) { | 2125 IsNull())) { |
| 2125 FATAL("API call returned invalid object"); | 2126 FATAL("API call returned invalid object"); |
| 2126 } | 2127 } |
| 2127 #endif // ENABLE_EXTRA_CHECKS | 2128 #endif // ENABLE_EXTRA_CHECKS |
| 2128 } | 2129 } |
| (...skipping 4680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6809 #undef READ_UINT32_FIELD | 6810 #undef READ_UINT32_FIELD |
| 6810 #undef WRITE_UINT32_FIELD | 6811 #undef WRITE_UINT32_FIELD |
| 6811 #undef READ_SHORT_FIELD | 6812 #undef READ_SHORT_FIELD |
| 6812 #undef WRITE_SHORT_FIELD | 6813 #undef WRITE_SHORT_FIELD |
| 6813 #undef READ_BYTE_FIELD | 6814 #undef READ_BYTE_FIELD |
| 6814 #undef WRITE_BYTE_FIELD | 6815 #undef WRITE_BYTE_FIELD |
| 6815 | 6816 |
| 6816 } } // namespace v8::internal | 6817 } } // namespace v8::internal |
| 6817 | 6818 |
| 6818 #endif // V8_OBJECTS_INL_H_ | 6819 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |