| 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 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1043 CodeStubInterfaceDescriptor* descriptor); | 1043 CodeStubInterfaceDescriptor* descriptor); |
| 1044 | 1044 |
| 1045 virtual Handle<Code> GenerateCode(Isolate* isolate); | 1045 virtual Handle<Code> GenerateCode(Isolate* isolate); |
| 1046 | 1046 |
| 1047 private: | 1047 private: |
| 1048 virtual int NotMissMinorKey() { | 1048 virtual int NotMissMinorKey() { |
| 1049 return GetExtraICState() | ArgcBits::encode(argc_); | 1049 return GetExtraICState() | ArgcBits::encode(argc_); |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 class ContextualBits: public BitField<bool, 0, 1> {}; | 1052 class ContextualBits: public BitField<bool, 0, 1> {}; |
| 1053 STATIC_ASSERT(CallICBase::Contextual::kShift == ContextualBits::kShift); | 1053 STATIC_ASSERT(IC::Contextual::kShift == ContextualBits::kShift); |
| 1054 STATIC_ASSERT(CallICBase::Contextual::kSize == ContextualBits::kSize); | 1054 STATIC_ASSERT(IC::Contextual::kSize == ContextualBits::kSize); |
| 1055 class HoleyBits: public BitField<bool, 1, 1> {}; | 1055 class HoleyBits: public BitField<bool, 1, 1> {}; |
| 1056 STATIC_ASSERT(Code::kArgumentsBits <= kStubMinorKeyBits - 2); | 1056 STATIC_ASSERT(Code::kArgumentsBits <= kStubMinorKeyBits - 2); |
| 1057 class ArgcBits: public BitField<int, 2, Code::kArgumentsBits> {}; | 1057 class ArgcBits: public BitField<int, 2, Code::kArgumentsBits> {}; |
| 1058 virtual CodeStub::Major MajorKey() { return KeyedArrayCall; } | 1058 virtual CodeStub::Major MajorKey() { return KeyedArrayCall; } |
| 1059 int bit_field_; | 1059 int bit_field_; |
| 1060 int argc_; | 1060 int argc_; |
| 1061 }; | 1061 }; |
| 1062 | 1062 |
| 1063 | 1063 |
| 1064 class BinaryOpStub: public HydrogenCodeStub { | 1064 class BinaryOpStub: public HydrogenCodeStub { |
| (...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2471 int MinorKey() { return 0; } | 2471 int MinorKey() { return 0; } |
| 2472 | 2472 |
| 2473 void Generate(MacroAssembler* masm); | 2473 void Generate(MacroAssembler* masm); |
| 2474 | 2474 |
| 2475 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 2475 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
| 2476 }; | 2476 }; |
| 2477 | 2477 |
| 2478 } } // namespace v8::internal | 2478 } } // namespace v8::internal |
| 2479 | 2479 |
| 2480 #endif // V8_CODE_STUBS_H_ | 2480 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |