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

Side by Side Diff: src/objects.h

Issue 211393007: Backport https://code.google.com/p/v8/source/detail?r=19360 to 3.24.35 (Closed) Base URL: https://github.com/v8/v8.git@3.24
Patch Set: Created 6 years, 9 months 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
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/version.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4933 matching lines...) Expand 10 before | Expand all | Expand 10 after
4944 // 4944 //
4945 // It can be empty. 4945 // It can be empty.
4946 class DeoptimizationInputData: public FixedArray { 4946 class DeoptimizationInputData: public FixedArray {
4947 public: 4947 public:
4948 // Layout description. Indices in the array. 4948 // Layout description. Indices in the array.
4949 static const int kTranslationByteArrayIndex = 0; 4949 static const int kTranslationByteArrayIndex = 0;
4950 static const int kInlinedFunctionCountIndex = 1; 4950 static const int kInlinedFunctionCountIndex = 1;
4951 static const int kLiteralArrayIndex = 2; 4951 static const int kLiteralArrayIndex = 2;
4952 static const int kOsrAstIdIndex = 3; 4952 static const int kOsrAstIdIndex = 3;
4953 static const int kOsrPcOffsetIndex = 4; 4953 static const int kOsrPcOffsetIndex = 4;
4954 static const int kFirstDeoptEntryIndex = 5; 4954 static const int kOptimizationIdIndex = 5;
4955 static const int kFirstDeoptEntryIndex = 6;
4955 4956
4956 // Offsets of deopt entry elements relative to the start of the entry. 4957 // Offsets of deopt entry elements relative to the start of the entry.
4957 static const int kAstIdRawOffset = 0; 4958 static const int kAstIdRawOffset = 0;
4958 static const int kTranslationIndexOffset = 1; 4959 static const int kTranslationIndexOffset = 1;
4959 static const int kArgumentsStackHeightOffset = 2; 4960 static const int kArgumentsStackHeightOffset = 2;
4960 static const int kPcOffset = 3; 4961 static const int kPcOffset = 3;
4961 static const int kDeoptEntrySize = 4; 4962 static const int kDeoptEntrySize = 4;
4962 4963
4963 // Simple element accessors. 4964 // Simple element accessors.
4964 #define DEFINE_ELEMENT_ACCESSORS(name, type) \ 4965 #define DEFINE_ELEMENT_ACCESSORS(name, type) \
4965 type* name() { \ 4966 type* name() { \
4966 return type::cast(get(k##name##Index)); \ 4967 return type::cast(get(k##name##Index)); \
4967 } \ 4968 } \
4968 void Set##name(type* value) { \ 4969 void Set##name(type* value) { \
4969 set(k##name##Index, value); \ 4970 set(k##name##Index, value); \
4970 } 4971 }
4971 4972
4972 DEFINE_ELEMENT_ACCESSORS(TranslationByteArray, ByteArray) 4973 DEFINE_ELEMENT_ACCESSORS(TranslationByteArray, ByteArray)
4973 DEFINE_ELEMENT_ACCESSORS(InlinedFunctionCount, Smi) 4974 DEFINE_ELEMENT_ACCESSORS(InlinedFunctionCount, Smi)
4974 DEFINE_ELEMENT_ACCESSORS(LiteralArray, FixedArray) 4975 DEFINE_ELEMENT_ACCESSORS(LiteralArray, FixedArray)
4975 DEFINE_ELEMENT_ACCESSORS(OsrAstId, Smi) 4976 DEFINE_ELEMENT_ACCESSORS(OsrAstId, Smi)
4976 DEFINE_ELEMENT_ACCESSORS(OsrPcOffset, Smi) 4977 DEFINE_ELEMENT_ACCESSORS(OsrPcOffset, Smi)
4978 DEFINE_ELEMENT_ACCESSORS(OptimizationId, Smi)
4977 4979
4978 #undef DEFINE_ELEMENT_ACCESSORS 4980 #undef DEFINE_ELEMENT_ACCESSORS
4979 4981
4980 // Accessors for elements of the ith deoptimization entry. 4982 // Accessors for elements of the ith deoptimization entry.
4981 #define DEFINE_ENTRY_ACCESSORS(name, type) \ 4983 #define DEFINE_ENTRY_ACCESSORS(name, type) \
4982 type* name(int i) { \ 4984 type* name(int i) { \
4983 return type::cast(get(IndexForEntry(i) + k##name##Offset)); \ 4985 return type::cast(get(IndexForEntry(i) + k##name##Offset)); \
4984 } \ 4986 } \
4985 void Set##name(int i, type* value) { \ 4987 void Set##name(int i, type* value) { \
4986 set(IndexForEntry(i) + k##name##Offset, value); \ 4988 set(IndexForEntry(i) + k##name##Offset, value); \
(...skipping 5776 matching lines...) Expand 10 before | Expand all | Expand 10 after
10763 } else { 10765 } else {
10764 value &= ~(1 << bit_position); 10766 value &= ~(1 << bit_position);
10765 } 10767 }
10766 return value; 10768 return value;
10767 } 10769 }
10768 }; 10770 };
10769 10771
10770 } } // namespace v8::internal 10772 } } // namespace v8::internal
10771 10773
10772 #endif // V8_OBJECTS_H_ 10774 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698