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 4657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4668 | 4668 |
4669 | 4669 |
4670 bool Code::contains(byte* inner_pointer) { | 4670 bool Code::contains(byte* inner_pointer) { |
4671 return (address() <= inner_pointer) && (inner_pointer <= address() + Size()); | 4671 return (address() <= inner_pointer) && (inner_pointer <= address() + Size()); |
4672 } | 4672 } |
4673 | 4673 |
4674 | 4674 |
4675 ACCESSORS(JSArray, length, Object, kLengthOffset) | 4675 ACCESSORS(JSArray, length, Object, kLengthOffset) |
4676 | 4676 |
4677 | 4677 |
| 4678 PropertyIndex JSArray::ArrayLengthIndex() { |
| 4679 return PropertyIndex::NewHeaderIndex(kLengthOffset / kPointerSize); |
| 4680 } |
| 4681 |
| 4682 |
4678 ACCESSORS(JSRegExp, data, Object, kDataOffset) | 4683 ACCESSORS(JSRegExp, data, Object, kDataOffset) |
4679 | 4684 |
4680 | 4685 |
4681 JSRegExp::Type JSRegExp::TypeTag() { | 4686 JSRegExp::Type JSRegExp::TypeTag() { |
4682 Object* data = this->data(); | 4687 Object* data = this->data(); |
4683 if (data->IsUndefined()) return JSRegExp::NOT_COMPILED; | 4688 if (data->IsUndefined()) return JSRegExp::NOT_COMPILED; |
4684 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); | 4689 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); |
4685 return static_cast<JSRegExp::Type>(smi->value()); | 4690 return static_cast<JSRegExp::Type>(smi->value()); |
4686 } | 4691 } |
4687 | 4692 |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5549 #undef WRITE_UINT32_FIELD | 5554 #undef WRITE_UINT32_FIELD |
5550 #undef READ_SHORT_FIELD | 5555 #undef READ_SHORT_FIELD |
5551 #undef WRITE_SHORT_FIELD | 5556 #undef WRITE_SHORT_FIELD |
5552 #undef READ_BYTE_FIELD | 5557 #undef READ_BYTE_FIELD |
5553 #undef WRITE_BYTE_FIELD | 5558 #undef WRITE_BYTE_FIELD |
5554 | 5559 |
5555 | 5560 |
5556 } } // namespace v8::internal | 5561 } } // namespace v8::internal |
5557 | 5562 |
5558 #endif // V8_OBJECTS_INL_H_ | 5563 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |