| 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 3720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3731 void Set##name(type* value) { \ | 3731 void Set##name(type* value) { \ |
| 3732 set(k##name##Index, value); \ | 3732 set(k##name##Index, value); \ |
| 3733 } | 3733 } |
| 3734 | 3734 |
| 3735 DEFINE_ELEMENT_ACCESSORS(TranslationByteArray, ByteArray) | 3735 DEFINE_ELEMENT_ACCESSORS(TranslationByteArray, ByteArray) |
| 3736 DEFINE_ELEMENT_ACCESSORS(InlinedFunctionCount, Smi) | 3736 DEFINE_ELEMENT_ACCESSORS(InlinedFunctionCount, Smi) |
| 3737 DEFINE_ELEMENT_ACCESSORS(LiteralArray, FixedArray) | 3737 DEFINE_ELEMENT_ACCESSORS(LiteralArray, FixedArray) |
| 3738 DEFINE_ELEMENT_ACCESSORS(OsrAstId, Smi) | 3738 DEFINE_ELEMENT_ACCESSORS(OsrAstId, Smi) |
| 3739 DEFINE_ELEMENT_ACCESSORS(OsrPcOffset, Smi) | 3739 DEFINE_ELEMENT_ACCESSORS(OsrPcOffset, Smi) |
| 3740 | 3740 |
| 3741 // Unchecked accessor to be used during GC. | |
| 3742 FixedArray* UncheckedLiteralArray() { | |
| 3743 return reinterpret_cast<FixedArray*>(get(kLiteralArrayIndex)); | |
| 3744 } | |
| 3745 | |
| 3746 #undef DEFINE_ELEMENT_ACCESSORS | 3741 #undef DEFINE_ELEMENT_ACCESSORS |
| 3747 | 3742 |
| 3748 // Accessors for elements of the ith deoptimization entry. | 3743 // Accessors for elements of the ith deoptimization entry. |
| 3749 #define DEFINE_ENTRY_ACCESSORS(name, type) \ | 3744 #define DEFINE_ENTRY_ACCESSORS(name, type) \ |
| 3750 type* name(int i) { \ | 3745 type* name(int i) { \ |
| 3751 return type::cast(get(IndexForEntry(i) + k##name##Offset)); \ | 3746 return type::cast(get(IndexForEntry(i) + k##name##Offset)); \ |
| 3752 } \ | 3747 } \ |
| 3753 void Set##name(int i, type* value) { \ | 3748 void Set##name(int i, type* value) { \ |
| 3754 set(IndexForEntry(i) + k##name##Offset, value); \ | 3749 set(IndexForEntry(i) + k##name##Offset, value); \ |
| 3755 } | 3750 } |
| (...skipping 4202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7958 } else { | 7953 } else { |
| 7959 value &= ~(1 << bit_position); | 7954 value &= ~(1 << bit_position); |
| 7960 } | 7955 } |
| 7961 return value; | 7956 return value; |
| 7962 } | 7957 } |
| 7963 }; | 7958 }; |
| 7964 | 7959 |
| 7965 } } // namespace v8::internal | 7960 } } // namespace v8::internal |
| 7966 | 7961 |
| 7967 #endif // V8_OBJECTS_H_ | 7962 #endif // V8_OBJECTS_H_ |
| OLD | NEW |