| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 V(BinaryOpICWithAllocationSite) \ | 45 V(BinaryOpICWithAllocationSite) \ |
| 46 V(BinaryOpWithAllocationSite) \ | 46 V(BinaryOpWithAllocationSite) \ |
| 47 V(StringAdd) \ | 47 V(StringAdd) \ |
| 48 V(SubString) \ | 48 V(SubString) \ |
| 49 V(StringCompare) \ | 49 V(StringCompare) \ |
| 50 V(Compare) \ | 50 V(Compare) \ |
| 51 V(CompareIC) \ | 51 V(CompareIC) \ |
| 52 V(CompareNilIC) \ | 52 V(CompareNilIC) \ |
| 53 V(MathPow) \ | 53 V(MathPow) \ |
| 54 V(FunctionPrototype) \ | 54 V(FunctionPrototype) \ |
| 55 V(StoreArrayLength) \ | |
| 56 V(RecordWrite) \ | 55 V(RecordWrite) \ |
| 57 V(StoreBufferOverflow) \ | 56 V(StoreBufferOverflow) \ |
| 58 V(RegExpExec) \ | 57 V(RegExpExec) \ |
| 59 V(Instanceof) \ | 58 V(Instanceof) \ |
| 60 V(ConvertToDouble) \ | 59 V(ConvertToDouble) \ |
| 61 V(WriteInt32ToHeapNumber) \ | 60 V(WriteInt32ToHeapNumber) \ |
| 62 V(StackCheck) \ | 61 V(StackCheck) \ |
| 63 V(Interrupt) \ | 62 V(Interrupt) \ |
| 64 V(FastNewClosure) \ | 63 V(FastNewClosure) \ |
| 65 V(FastNewContext) \ | 64 V(FastNewContext) \ |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 STATIC_ASSERT(KindBits::kSize == 4); | 847 STATIC_ASSERT(KindBits::kSize == 4); |
| 849 class StrictModeBits: public BitField<bool, 4, 1> {}; | 848 class StrictModeBits: public BitField<bool, 4, 1> {}; |
| 850 virtual int MinorKey() { | 849 virtual int MinorKey() { |
| 851 return KindBits::encode(kind()) | StrictModeBits::encode(strict_mode_); | 850 return KindBits::encode(kind()) | StrictModeBits::encode(strict_mode_); |
| 852 } | 851 } |
| 853 | 852 |
| 854 StrictMode strict_mode_; | 853 StrictMode strict_mode_; |
| 855 }; | 854 }; |
| 856 | 855 |
| 857 | 856 |
| 858 class StoreArrayLengthStub: public StoreICStub { | |
| 859 public: | |
| 860 explicit StoreArrayLengthStub(Code::Kind kind, StrictMode strict_mode) | |
| 861 : StoreICStub(kind, strict_mode) { } | |
| 862 virtual void Generate(MacroAssembler* masm); | |
| 863 | |
| 864 private: | |
| 865 virtual CodeStub::Major MajorKey() { return StoreArrayLength; } | |
| 866 }; | |
| 867 | |
| 868 | |
| 869 class HICStub: public HydrogenCodeStub { | 857 class HICStub: public HydrogenCodeStub { |
| 870 public: | 858 public: |
| 871 virtual Code::Kind GetCodeKind() const { return kind(); } | 859 virtual Code::Kind GetCodeKind() const { return kind(); } |
| 872 virtual InlineCacheState GetICState() { return MONOMORPHIC; } | 860 virtual InlineCacheState GetICState() { return MONOMORPHIC; } |
| 873 | 861 |
| 874 protected: | 862 protected: |
| 875 class KindBits: public BitField<Code::Kind, 0, 4> {}; | 863 class KindBits: public BitField<Code::Kind, 0, 4> {}; |
| 876 virtual Code::Kind kind() const = 0; | 864 virtual Code::Kind kind() const = 0; |
| 877 }; | 865 }; |
| 878 | 866 |
| (...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2514 | 2502 |
| 2515 | 2503 |
| 2516 class CallDescriptors { | 2504 class CallDescriptors { |
| 2517 public: | 2505 public: |
| 2518 static void InitializeForIsolate(Isolate* isolate); | 2506 static void InitializeForIsolate(Isolate* isolate); |
| 2519 }; | 2507 }; |
| 2520 | 2508 |
| 2521 } } // namespace v8::internal | 2509 } } // namespace v8::internal |
| 2522 | 2510 |
| 2523 #endif // V8_CODE_STUBS_H_ | 2511 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |