| 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 5471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5482 bool JSObject::HasFastHoleyElements() { | 5482 bool JSObject::HasFastHoleyElements() { |
| 5483 return IsFastHoleyElementsKind(GetElementsKind()); | 5483 return IsFastHoleyElementsKind(GetElementsKind()); |
| 5484 } | 5484 } |
| 5485 | 5485 |
| 5486 | 5486 |
| 5487 bool JSObject::HasFastElements() { | 5487 bool JSObject::HasFastElements() { |
| 5488 return IsFastElementsKind(GetElementsKind()); | 5488 return IsFastElementsKind(GetElementsKind()); |
| 5489 } | 5489 } |
| 5490 | 5490 |
| 5491 | 5491 |
| 5492 bool JSObject::HasFastPackedElements() { |
| 5493 return IsFastPackedElementsKind(GetElementsKind()); |
| 5494 } |
| 5495 |
| 5496 |
| 5492 bool JSObject::HasDictionaryElements() { | 5497 bool JSObject::HasDictionaryElements() { |
| 5493 return GetElementsKind() == DICTIONARY_ELEMENTS; | 5498 return GetElementsKind() == DICTIONARY_ELEMENTS; |
| 5494 } | 5499 } |
| 5495 | 5500 |
| 5496 | 5501 |
| 5497 bool JSObject::HasNonStrictArgumentsElements() { | 5502 bool JSObject::HasNonStrictArgumentsElements() { |
| 5498 return GetElementsKind() == NON_STRICT_ARGUMENTS_ELEMENTS; | 5503 return GetElementsKind() == NON_STRICT_ARGUMENTS_ELEMENTS; |
| 5499 } | 5504 } |
| 5500 | 5505 |
| 5501 | 5506 |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6244 #undef WRITE_UINT32_FIELD | 6249 #undef WRITE_UINT32_FIELD |
| 6245 #undef READ_SHORT_FIELD | 6250 #undef READ_SHORT_FIELD |
| 6246 #undef WRITE_SHORT_FIELD | 6251 #undef WRITE_SHORT_FIELD |
| 6247 #undef READ_BYTE_FIELD | 6252 #undef READ_BYTE_FIELD |
| 6248 #undef WRITE_BYTE_FIELD | 6253 #undef WRITE_BYTE_FIELD |
| 6249 | 6254 |
| 6250 | 6255 |
| 6251 } } // namespace v8::internal | 6256 } } // namespace v8::internal |
| 6252 | 6257 |
| 6253 #endif // V8_OBJECTS_INL_H_ | 6258 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |