| 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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 CodeStubInterfaceDescriptor* descriptor); | 1040 CodeStubInterfaceDescriptor* descriptor); |
| 1041 | 1041 |
| 1042 virtual Handle<Code> GenerateCode(Isolate* isolate); | 1042 virtual Handle<Code> GenerateCode(Isolate* isolate); |
| 1043 | 1043 |
| 1044 private: | 1044 private: |
| 1045 virtual int NotMissMinorKey() { | 1045 virtual int NotMissMinorKey() { |
| 1046 return GetExtraICState() | ArgcBits::encode(argc_); | 1046 return GetExtraICState() | ArgcBits::encode(argc_); |
| 1047 } | 1047 } |
| 1048 | 1048 |
| 1049 class ContextualBits: public BitField<bool, 0, 1> {}; | 1049 class ContextualBits: public BitField<bool, 0, 1> {}; |
| 1050 STATIC_ASSERT(CallICBase::Contextual::kShift == ContextualBits::kShift); | 1050 STATIC_ASSERT(IC::Contextual::kShift == ContextualBits::kShift); |
| 1051 STATIC_ASSERT(CallICBase::Contextual::kSize == ContextualBits::kSize); | 1051 STATIC_ASSERT(IC::Contextual::kSize == ContextualBits::kSize); |
| 1052 class HoleyBits: public BitField<bool, 1, 1> {}; | 1052 class HoleyBits: public BitField<bool, 1, 1> {}; |
| 1053 STATIC_ASSERT(Code::kArgumentsBits <= kStubMinorKeyBits - 2); | 1053 STATIC_ASSERT(Code::kArgumentsBits <= kStubMinorKeyBits - 2); |
| 1054 class ArgcBits: public BitField<int, 2, Code::kArgumentsBits> {}; | 1054 class ArgcBits: public BitField<int, 2, Code::kArgumentsBits> {}; |
| 1055 virtual CodeStub::Major MajorKey() { return KeyedArrayCall; } | 1055 virtual CodeStub::Major MajorKey() { return KeyedArrayCall; } |
| 1056 int bit_field_; | 1056 int bit_field_; |
| 1057 int argc_; | 1057 int argc_; |
| 1058 }; | 1058 }; |
| 1059 | 1059 |
| 1060 | 1060 |
| 1061 class BinaryOpICStub V8_FINAL : public HydrogenCodeStub { | 1061 class BinaryOpICStub V8_FINAL : public HydrogenCodeStub { |
| (...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2347 int MinorKey() { return 0; } | 2347 int MinorKey() { return 0; } |
| 2348 | 2348 |
| 2349 void Generate(MacroAssembler* masm); | 2349 void Generate(MacroAssembler* masm); |
| 2350 | 2350 |
| 2351 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 2351 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
| 2352 }; | 2352 }; |
| 2353 | 2353 |
| 2354 } } // namespace v8::internal | 2354 } } // namespace v8::internal |
| 2355 | 2355 |
| 2356 #endif // V8_CODE_STUBS_H_ | 2356 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |