OLD | NEW |
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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // BinaryOpStub needs to override this. | 195 // BinaryOpStub needs to override this. |
196 virtual int GetCodeKind(); | 196 virtual int GetCodeKind(); |
197 | 197 |
198 // BinaryOpStub needs to override this. | 198 // BinaryOpStub needs to override this. |
199 virtual InlineCacheState GetICState() { | 199 virtual InlineCacheState GetICState() { |
200 return UNINITIALIZED; | 200 return UNINITIALIZED; |
201 } | 201 } |
202 | 202 |
203 // Returns a name for logging/debugging purposes. | 203 // Returns a name for logging/debugging purposes. |
204 SmartArrayPointer<const char> GetName(); | 204 SmartArrayPointer<const char> GetName(); |
205 virtual void PrintName(StringStream* stream) { | 205 virtual void PrintName(StringStream* stream); |
206 stream->Add("%s", MajorName(MajorKey(), false)); | |
207 } | |
208 | 206 |
209 // Returns whether the code generated for this stub needs to be allocated as | 207 // Returns whether the code generated for this stub needs to be allocated as |
210 // a fixed (non-moveable) code object. | 208 // a fixed (non-moveable) code object. |
211 virtual bool NeedsImmovableCode() { return false; } | 209 virtual bool NeedsImmovableCode() { return false; } |
212 | 210 |
213 // Computes the key based on major and minor. | 211 // Computes the key based on major and minor. |
214 uint32_t GetKey() { | 212 uint32_t GetKey() { |
215 ASSERT(static_cast<int>(MajorKey()) < NUMBER_OF_IDS); | 213 ASSERT(static_cast<int>(MajorKey()) < NUMBER_OF_IDS); |
216 return MinorKeyBits::encode(MinorKey()) | | 214 return MinorKeyBits::encode(MinorKey()) | |
217 MajorKeyBits::encode(MajorKey()); | 215 MajorKeyBits::encode(MajorKey()); |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 bool result); | 1002 bool result); |
1005 void GenerateTypeTransition(MacroAssembler* masm); | 1003 void GenerateTypeTransition(MacroAssembler* masm); |
1006 | 1004 |
1007 Register tos_; | 1005 Register tos_; |
1008 Types types_; | 1006 Types types_; |
1009 }; | 1007 }; |
1010 | 1008 |
1011 } } // namespace v8::internal | 1009 } } // namespace v8::internal |
1012 | 1010 |
1013 #endif // V8_CODE_STUBS_H_ | 1011 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |