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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 | 875 |
876 protected: | 876 protected: |
877 class KindBits: public BitField<Code::Kind, 0, 4> {}; | 877 class KindBits: public BitField<Code::Kind, 0, 4> {}; |
878 virtual Code::Kind kind() const = 0; | 878 virtual Code::Kind kind() const = 0; |
879 }; | 879 }; |
880 | 880 |
881 | 881 |
882 class HandlerStub: public HICStub { | 882 class HandlerStub: public HICStub { |
883 public: | 883 public: |
884 virtual Code::Kind GetCodeKind() const { return Code::HANDLER; } | 884 virtual Code::Kind GetCodeKind() const { return Code::HANDLER; } |
885 virtual ExtraICState GetExtraICState() { | 885 virtual ExtraICState GetExtraICState() { return kind(); } |
886 return Code::HandlerKindField::encode(kind()); | |
887 } | |
888 | 886 |
889 protected: | 887 protected: |
890 HandlerStub() : HICStub() { } | 888 HandlerStub() : HICStub() { } |
891 virtual int NotMissMinorKey() { return bit_field_; } | 889 virtual int NotMissMinorKey() { return bit_field_; } |
892 int bit_field_; | 890 int bit_field_; |
893 }; | 891 }; |
894 | 892 |
895 | 893 |
896 class LoadFieldStub: public HandlerStub { | 894 class LoadFieldStub: public HandlerStub { |
897 public: | 895 public: |
(...skipping 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2471 | 2469 |
2472 | 2470 |
2473 class CallDescriptors { | 2471 class CallDescriptors { |
2474 public: | 2472 public: |
2475 static void InitializeForIsolate(Isolate* isolate); | 2473 static void InitializeForIsolate(Isolate* isolate); |
2476 }; | 2474 }; |
2477 | 2475 |
2478 } } // namespace v8::internal | 2476 } } // namespace v8::internal |
2479 | 2477 |
2480 #endif // V8_CODE_STUBS_H_ | 2478 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |