OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 2918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2929 } | 2929 } |
2930 | 2930 |
2931 | 2931 |
2932 byte* Code::entry() { | 2932 byte* Code::entry() { |
2933 return instruction_start(); | 2933 return instruction_start(); |
2934 } | 2934 } |
2935 | 2935 |
2936 | 2936 |
2937 bool Code::contains(byte* pc) { | 2937 bool Code::contains(byte* pc) { |
2938 return (instruction_start() <= pc) && | 2938 return (instruction_start() <= pc) && |
2939 (pc < instruction_start() + instruction_size()); | 2939 (pc <= instruction_start() + instruction_size()); |
2940 } | 2940 } |
2941 | 2941 |
2942 | 2942 |
2943 ACCESSORS(JSArray, length, Object, kLengthOffset) | 2943 ACCESSORS(JSArray, length, Object, kLengthOffset) |
2944 | 2944 |
2945 | 2945 |
2946 ACCESSORS(JSRegExp, data, Object, kDataOffset) | 2946 ACCESSORS(JSRegExp, data, Object, kDataOffset) |
2947 | 2947 |
2948 | 2948 |
2949 JSRegExp::Type JSRegExp::TypeTag() { | 2949 JSRegExp::Type JSRegExp::TypeTag() { |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3466 #undef WRITE_INT_FIELD | 3466 #undef WRITE_INT_FIELD |
3467 #undef READ_SHORT_FIELD | 3467 #undef READ_SHORT_FIELD |
3468 #undef WRITE_SHORT_FIELD | 3468 #undef WRITE_SHORT_FIELD |
3469 #undef READ_BYTE_FIELD | 3469 #undef READ_BYTE_FIELD |
3470 #undef WRITE_BYTE_FIELD | 3470 #undef WRITE_BYTE_FIELD |
3471 | 3471 |
3472 | 3472 |
3473 } } // namespace v8::internal | 3473 } } // namespace v8::internal |
3474 | 3474 |
3475 #endif // V8_OBJECTS_INL_H_ | 3475 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |