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 3730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3741 void Set##name(type* value) { \ | 3741 void Set##name(type* value) { \ |
3742 set(k##name##Index, value); \ | 3742 set(k##name##Index, value); \ |
3743 } | 3743 } |
3744 | 3744 |
3745 DEFINE_ELEMENT_ACCESSORS(TranslationByteArray, ByteArray) | 3745 DEFINE_ELEMENT_ACCESSORS(TranslationByteArray, ByteArray) |
3746 DEFINE_ELEMENT_ACCESSORS(InlinedFunctionCount, Smi) | 3746 DEFINE_ELEMENT_ACCESSORS(InlinedFunctionCount, Smi) |
3747 DEFINE_ELEMENT_ACCESSORS(LiteralArray, FixedArray) | 3747 DEFINE_ELEMENT_ACCESSORS(LiteralArray, FixedArray) |
3748 DEFINE_ELEMENT_ACCESSORS(OsrAstId, Smi) | 3748 DEFINE_ELEMENT_ACCESSORS(OsrAstId, Smi) |
3749 DEFINE_ELEMENT_ACCESSORS(OsrPcOffset, Smi) | 3749 DEFINE_ELEMENT_ACCESSORS(OsrPcOffset, Smi) |
3750 | 3750 |
3751 // Unchecked accessor to be used during GC. | |
3752 FixedArray* UncheckedLiteralArray() { | |
3753 return reinterpret_cast<FixedArray*>(get(kLiteralArrayIndex)); | |
3754 } | |
3755 | |
3756 #undef DEFINE_ELEMENT_ACCESSORS | 3751 #undef DEFINE_ELEMENT_ACCESSORS |
3757 | 3752 |
3758 // Accessors for elements of the ith deoptimization entry. | 3753 // Accessors for elements of the ith deoptimization entry. |
3759 #define DEFINE_ENTRY_ACCESSORS(name, type) \ | 3754 #define DEFINE_ENTRY_ACCESSORS(name, type) \ |
3760 type* name(int i) { \ | 3755 type* name(int i) { \ |
3761 return type::cast(get(IndexForEntry(i) + k##name##Offset)); \ | 3756 return type::cast(get(IndexForEntry(i) + k##name##Offset)); \ |
3762 } \ | 3757 } \ |
3763 void Set##name(int i, type* value) { \ | 3758 void Set##name(int i, type* value) { \ |
3764 set(IndexForEntry(i) + k##name##Offset, value); \ | 3759 set(IndexForEntry(i) + k##name##Offset, value); \ |
3765 } | 3760 } |
(...skipping 4227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7993 } else { | 7988 } else { |
7994 value &= ~(1 << bit_position); | 7989 value &= ~(1 << bit_position); |
7995 } | 7990 } |
7996 return value; | 7991 return value; |
7997 } | 7992 } |
7998 }; | 7993 }; |
7999 | 7994 |
8000 } } // namespace v8::internal | 7995 } } // namespace v8::internal |
8001 | 7996 |
8002 #endif // V8_OBJECTS_H_ | 7997 #endif // V8_OBJECTS_H_ |
OLD | NEW |