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

Side by Side Diff: src/objects.h

Issue 8052029: Pregenerate a RecordWrite stub that we need in the new CallFunctionStub (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/isolate.cc ('k') | src/objects-inl.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 3639 matching lines...) Expand 10 before | Expand all | Expand 10 after
3650 inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; } 3650 inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; }
3651 inline bool is_unary_op_stub() { return kind() == UNARY_OP_IC; } 3651 inline bool is_unary_op_stub() { return kind() == UNARY_OP_IC; }
3652 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; } 3652 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; }
3653 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; } 3653 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; }
3654 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } 3654 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; }
3655 3655
3656 // [major_key]: For kind STUB or BINARY_OP_IC, the major key. 3656 // [major_key]: For kind STUB or BINARY_OP_IC, the major key.
3657 inline int major_key(); 3657 inline int major_key();
3658 inline void set_major_key(int value); 3658 inline void set_major_key(int value);
3659 3659
3660 // For stubs, tells whether they should always exist, so that they can be
3661 // called from other stubs.
3662 inline bool is_pregenerated();
3663 inline void set_is_pregenerated(bool value);
3664
3660 // [optimizable]: For FUNCTION kind, tells if it is optimizable. 3665 // [optimizable]: For FUNCTION kind, tells if it is optimizable.
3661 inline bool optimizable(); 3666 inline bool optimizable();
3662 inline void set_optimizable(bool value); 3667 inline void set_optimizable(bool value);
3663 3668
3664 // [has_deoptimization_support]: For FUNCTION kind, tells if it has 3669 // [has_deoptimization_support]: For FUNCTION kind, tells if it has
3665 // deoptimization support. 3670 // deoptimization support.
3666 inline bool has_deoptimization_support(); 3671 inline bool has_deoptimization_support();
3667 inline void set_has_deoptimization_support(bool value); 3672 inline void set_has_deoptimization_support(bool value);
3668 3673
3669 // [has_debug_break_slots]: For FUNCTION kind, tells if it has 3674 // [has_debug_break_slots]: For FUNCTION kind, tells if it has
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
3873 3878
3874 static const int kSafepointTableOffsetOffset = kStackSlotsOffset + kIntSize; 3879 static const int kSafepointTableOffsetOffset = kStackSlotsOffset + kIntSize;
3875 static const int kStackCheckTableOffsetOffset = kStackSlotsOffset + kIntSize; 3880 static const int kStackCheckTableOffsetOffset = kStackSlotsOffset + kIntSize;
3876 3881
3877 // Flags layout. BitField<type, shift, size>. 3882 // Flags layout. BitField<type, shift, size>.
3878 class ICStateField: public BitField<InlineCacheState, 0, 3> {}; 3883 class ICStateField: public BitField<InlineCacheState, 0, 3> {};
3879 class TypeField: public BitField<PropertyType, 3, 4> {}; 3884 class TypeField: public BitField<PropertyType, 3, 4> {};
3880 class KindField: public BitField<Kind, 7, 4> {}; 3885 class KindField: public BitField<Kind, 7, 4> {};
3881 class CacheHolderField: public BitField<InlineCacheHolderFlag, 11, 1> {}; 3886 class CacheHolderField: public BitField<InlineCacheHolderFlag, 11, 1> {};
3882 class ExtraICStateField: public BitField<ExtraICState, 12, 2> {}; 3887 class ExtraICStateField: public BitField<ExtraICState, 12, 2> {};
3888 class IsPregeneratedField: public BitField<bool, 14, 1> {};
3883 3889
3884 // Signed field cannot be encoded using the BitField class. 3890 // Signed field cannot be encoded using the BitField class.
3885 static const int kArgumentsCountShift = 14; 3891 static const int kArgumentsCountShift = 14;
3886 static const int kArgumentsCountMask = ~((1 << kArgumentsCountShift) - 1); 3892 static const int kArgumentsCountMask = ~((1 << kArgumentsCountShift) - 1);
3887 3893
3888 static const int kFlagsNotUsedInLookup = 3894 static const int kFlagsNotUsedInLookup =
3889 TypeField::kMask | CacheHolderField::kMask; 3895 TypeField::kMask | CacheHolderField::kMask;
3890 3896
3891 private: 3897 private:
3892 DISALLOW_IMPLICIT_CONSTRUCTORS(Code); 3898 DISALLOW_IMPLICIT_CONSTRUCTORS(Code);
(...skipping 3656 matching lines...) Expand 10 before | Expand all | Expand 10 after
7549 } else { 7555 } else {
7550 value &= ~(1 << bit_position); 7556 value &= ~(1 << bit_position);
7551 } 7557 }
7552 return value; 7558 return value;
7553 } 7559 }
7554 }; 7560 };
7555 7561
7556 } } // namespace v8::internal 7562 } } // namespace v8::internal
7557 7563
7558 #endif // V8_OBJECTS_H_ 7564 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698