| 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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 }; | 840 }; |
| 841 | 841 |
| 842 | 842 |
| 843 class StoreICStub: public ICStub { | 843 class StoreICStub: public ICStub { |
| 844 public: | 844 public: |
| 845 StoreICStub(Code::Kind kind, StrictModeFlag strict_mode) | 845 StoreICStub(Code::Kind kind, StrictModeFlag strict_mode) |
| 846 : ICStub(kind), strict_mode_(strict_mode) { } | 846 : ICStub(kind), strict_mode_(strict_mode) { } |
| 847 | 847 |
| 848 protected: | 848 protected: |
| 849 virtual Code::ExtraICState GetExtraICState() { | 849 virtual Code::ExtraICState GetExtraICState() { |
| 850 return strict_mode_; | 850 return StoreIC::ComputeExtraICState(strict_mode_); |
| 851 } | 851 } |
| 852 | 852 |
| 853 private: | 853 private: |
| 854 STATIC_ASSERT(KindBits::kSize == 4); | 854 STATIC_ASSERT(KindBits::kSize == 4); |
| 855 class StrictModeBits: public BitField<bool, 4, 1> {}; | 855 class StrictModeBits: public BitField<bool, 4, 1> {}; |
| 856 virtual int MinorKey() { | 856 virtual int MinorKey() { |
| 857 return KindBits::encode(kind()) | StrictModeBits::encode(strict_mode_); | 857 return KindBits::encode(kind()) | StrictModeBits::encode(strict_mode_); |
| 858 } | 858 } |
| 859 | 859 |
| 860 StrictModeFlag strict_mode_; | 860 StrictModeFlag strict_mode_; |
| (...skipping 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2512 int MinorKey() { return 0; } | 2512 int MinorKey() { return 0; } |
| 2513 | 2513 |
| 2514 void Generate(MacroAssembler* masm); | 2514 void Generate(MacroAssembler* masm); |
| 2515 | 2515 |
| 2516 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 2516 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
| 2517 }; | 2517 }; |
| 2518 | 2518 |
| 2519 } } // namespace v8::internal | 2519 } } // namespace v8::internal |
| 2520 | 2520 |
| 2521 #endif // V8_CODE_STUBS_H_ | 2521 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |