OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3842 return unchecked_relocation_info()->length(); | 3842 return unchecked_relocation_info()->length(); |
3843 } | 3843 } |
3844 | 3844 |
3845 | 3845 |
3846 byte* Code::entry() { | 3846 byte* Code::entry() { |
3847 return instruction_start(); | 3847 return instruction_start(); |
3848 } | 3848 } |
3849 | 3849 |
3850 | 3850 |
3851 bool Code::contains(byte* pc) { | 3851 bool Code::contains(byte* pc) { |
3852 return (instruction_start() <= pc) && | 3852 return (address() <= pc) && (pc <= address() + Size()); |
3853 (pc <= instruction_start() + instruction_size()); | |
3854 } | 3853 } |
3855 | 3854 |
3856 | 3855 |
3857 ACCESSORS(JSArray, length, Object, kLengthOffset) | 3856 ACCESSORS(JSArray, length, Object, kLengthOffset) |
3858 | 3857 |
3859 | 3858 |
3860 ACCESSORS(JSRegExp, data, Object, kDataOffset) | 3859 ACCESSORS(JSRegExp, data, Object, kDataOffset) |
3861 | 3860 |
3862 | 3861 |
3863 JSRegExp::Type JSRegExp::TypeTag() { | 3862 JSRegExp::Type JSRegExp::TypeTag() { |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4521 #undef WRITE_INT_FIELD | 4520 #undef WRITE_INT_FIELD |
4522 #undef READ_SHORT_FIELD | 4521 #undef READ_SHORT_FIELD |
4523 #undef WRITE_SHORT_FIELD | 4522 #undef WRITE_SHORT_FIELD |
4524 #undef READ_BYTE_FIELD | 4523 #undef READ_BYTE_FIELD |
4525 #undef WRITE_BYTE_FIELD | 4524 #undef WRITE_BYTE_FIELD |
4526 | 4525 |
4527 | 4526 |
4528 } } // namespace v8::internal | 4527 } } // namespace v8::internal |
4529 | 4528 |
4530 #endif // V8_OBJECTS_INL_H_ | 4529 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |