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