Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 7d8dae78aa910de0c9561c08786abef380f1f9fc..898e0a28ac3172350db3c27b86f753f201516dc3 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -440,7 +440,8 @@ const int kVariableSizeSentinel = 0; |
| V(SCRIPT, Script, script) \ |
| V(CODE_CACHE, CodeCache, code_cache) \ |
| V(POLYMORPHIC_CODE_CACHE, PolymorphicCodeCache, polymorphic_code_cache) \ |
| - V(TYPE_FEEDBACK_INFO, TypeFeedbackInfo, type_feedback_info) |
| + V(TYPE_FEEDBACK_INFO, TypeFeedbackInfo, type_feedback_info) \ |
| + V(ALIASED_ARGUMENTS_ENTRY, AliasedArgumentsEntry, aliased_arguments_entry) |
| #ifdef ENABLE_DEBUGGER_SUPPORT |
| #define STRUCT_LIST_DEBUGGER(V) \ |
| @@ -596,6 +597,7 @@ enum InstanceType { |
| CODE_CACHE_TYPE, |
| POLYMORPHIC_CODE_CACHE_TYPE, |
| TYPE_FEEDBACK_INFO_TYPE, |
| + ALIASED_ARGUMENTS_ENTRY_TYPE, |
| // The following two instance types are only used when ENABLE_DEBUGGER_SUPPORT |
| // is defined. However as include/v8.h contain some of the instance type |
| // constants always having them avoids them getting different numbers |
| @@ -6435,6 +6437,31 @@ class TypeFeedbackInfo: public Struct { |
| }; |
| +class AliasedArgumentsEntry: public Struct { |
|
rossberg
2012/02/24 13:51:05
Maybe add a comment explaining the role of this ty
Michael Starzinger
2012/02/24 14:36:41
Done.
|
| + public: |
| + inline int aliased_context_slot(); |
| + inline void set_aliased_context_slot(int count); |
| + |
| + static inline AliasedArgumentsEntry* cast(Object* obj); |
| + |
| +#ifdef OBJECT_PRINT |
| + inline void AliasedArgumentsEntryPrint() { |
| + AliasedArgumentsEntryPrint(stdout); |
| + } |
| + void AliasedArgumentsEntryPrint(FILE* out); |
| +#endif |
| +#ifdef DEBUG |
| + void AliasedArgumentsEntryVerify(); |
| +#endif |
| + |
| + static const int kAliasedContextSlot = HeapObject::kHeaderSize; |
| + static const int kSize = kAliasedContextSlot + kPointerSize; |
| + |
| + private: |
| + DISALLOW_IMPLICIT_CONSTRUCTORS(AliasedArgumentsEntry); |
| +}; |
| + |
| + |
| enum AllowNullsFlag {ALLOW_NULLS, DISALLOW_NULLS}; |
| enum RobustnessFlag {ROBUST_STRING_TRAVERSAL, FAST_STRING_TRAVERSAL}; |