Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/objects.h

Issue 8888040: Merge r10215 from the bleeding_edge to the 3.7 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.7/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mark-compact.cc ('k') | src/v8threads.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/v8threads.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698