OLD | NEW |
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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 | 1062 |
1063 static Types FullCompare() { | 1063 static Types FullCompare() { |
1064 Types set; | 1064 Types set; |
1065 set.Add(UNDEFINED); | 1065 set.Add(UNDEFINED); |
1066 set.Add(NULL_TYPE); | 1066 set.Add(NULL_TYPE); |
1067 set.Add(UNDETECTABLE); | 1067 set.Add(UNDETECTABLE); |
1068 return set; | 1068 return set; |
1069 } | 1069 } |
1070 | 1070 |
1071 void Print(StringStream* stream) const; | 1071 void Print(StringStream* stream) const; |
| 1072 void TraceTransition(Types to) const; |
1072 }; | 1073 }; |
1073 | 1074 |
1074 // At most 6 different types can be distinguished, because the Code object | 1075 // At most 6 different types can be distinguished, because the Code object |
1075 // only has room for a single byte to hold a set and there are two more | 1076 // only has room for a single byte to hold a set and there are two more |
1076 // boolean flags we need to store. :-P | 1077 // boolean flags we need to store. :-P |
1077 STATIC_ASSERT(NUMBER_OF_TYPES <= 6); | 1078 STATIC_ASSERT(NUMBER_OF_TYPES <= 6); |
1078 | 1079 |
1079 CompareNilICStub(EqualityKind kind, NilValue nil, Types types) | 1080 CompareNilICStub(EqualityKind kind, NilValue nil, Types types) |
1080 : HydrogenCodeStub(CODE_STUB_IS_NOT_MISS), types_(types) { | 1081 : HydrogenCodeStub(CODE_STUB_IS_NOT_MISS), types_(types) { |
1081 equality_kind_ = kind; | 1082 equality_kind_ = kind; |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 | 1991 |
1991 // The current function entry hook. | 1992 // The current function entry hook. |
1992 static FunctionEntryHook entry_hook_; | 1993 static FunctionEntryHook entry_hook_; |
1993 | 1994 |
1994 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 1995 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
1995 }; | 1996 }; |
1996 | 1997 |
1997 } } // namespace v8::internal | 1998 } } // namespace v8::internal |
1998 | 1999 |
1999 #endif // V8_CODE_STUBS_H_ | 2000 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |