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 8888011: Ensure that non-optimized code objects are not flushed for inlined functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 3730 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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