| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 virtual InlineCacheState GetICState() { | 182 virtual InlineCacheState GetICState() { |
| 183 return UNINITIALIZED; | 183 return UNINITIALIZED; |
| 184 } | 184 } |
| 185 virtual ExtraICState GetExtraICState() { | 185 virtual ExtraICState GetExtraICState() { |
| 186 return kNoExtraICState; | 186 return kNoExtraICState; |
| 187 } | 187 } |
| 188 virtual Code::StubType GetStubType() { | 188 virtual Code::StubType GetStubType() { |
| 189 return Code::NORMAL; | 189 return Code::NORMAL; |
| 190 } | 190 } |
| 191 virtual int GetStubFlags() { | 191 virtual Code::Kind GetHandlerKind() { |
| 192 return -1; | 192 return Code::STUB; |
| 193 } | 193 } |
| 194 | 194 |
| 195 virtual void PrintName(StringStream* stream); | 195 virtual void PrintName(StringStream* stream); |
| 196 | 196 |
| 197 // Returns a name for logging/debugging purposes. | 197 // Returns a name for logging/debugging purposes. |
| 198 SmartArrayPointer<const char> GetName(); | 198 SmartArrayPointer<const char> GetName(); |
| 199 | 199 |
| 200 protected: | 200 protected: |
| 201 static bool CanUseFPRegisters(); | 201 static bool CanUseFPRegisters(); |
| 202 | 202 |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 | 876 |
| 877 protected: | 877 protected: |
| 878 class KindBits: public BitField<Code::Kind, 0, 4> {}; | 878 class KindBits: public BitField<Code::Kind, 0, 4> {}; |
| 879 virtual Code::Kind kind() const = 0; | 879 virtual Code::Kind kind() const = 0; |
| 880 }; | 880 }; |
| 881 | 881 |
| 882 | 882 |
| 883 class HandlerStub: public HICStub { | 883 class HandlerStub: public HICStub { |
| 884 public: | 884 public: |
| 885 virtual Code::Kind GetCodeKind() const { return Code::HANDLER; } | 885 virtual Code::Kind GetCodeKind() const { return Code::HANDLER; } |
| 886 virtual int GetStubFlags() { return kind(); } | 886 virtual Code::Kind GetHandlerKind() { return kind(); } |
| 887 | 887 |
| 888 protected: | 888 protected: |
| 889 HandlerStub() : HICStub() { } | 889 HandlerStub() : HICStub() { } |
| 890 virtual int NotMissMinorKey() { return bit_field_; } | 890 virtual int NotMissMinorKey() { return bit_field_; } |
| 891 int bit_field_; | 891 int bit_field_; |
| 892 }; | 892 }; |
| 893 | 893 |
| 894 | 894 |
| 895 class LoadFieldStub: public HandlerStub { | 895 class LoadFieldStub: public HandlerStub { |
| 896 public: | 896 public: |
| (...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2476 | 2476 |
| 2477 | 2477 |
| 2478 class CallDescriptors { | 2478 class CallDescriptors { |
| 2479 public: | 2479 public: |
| 2480 static void InitializeForIsolate(Isolate* isolate); | 2480 static void InitializeForIsolate(Isolate* isolate); |
| 2481 }; | 2481 }; |
| 2482 | 2482 |
| 2483 } } // namespace v8::internal | 2483 } } // namespace v8::internal |
| 2484 | 2484 |
| 2485 #endif // V8_CODE_STUBS_H_ | 2485 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |