OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_CODE_STUBS_H_ | 5 #ifndef V8_CODE_STUBS_H_ |
6 #define V8_CODE_STUBS_H_ | 6 #define V8_CODE_STUBS_H_ |
7 | 7 |
8 #include "allocation.h" | 8 #include "allocation.h" |
9 #include "assembler.h" | 9 #include "assembler.h" |
10 #include "codegen.h" | 10 #include "codegen.h" |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 | 817 |
818 protected: | 818 protected: |
819 virtual int MinorKey() { return GetExtraICState(); } | 819 virtual int MinorKey() { return GetExtraICState(); } |
820 virtual void PrintState(StringStream* stream) V8_FINAL V8_OVERRIDE; | 820 virtual void PrintState(StringStream* stream) V8_FINAL V8_OVERRIDE; |
821 | 821 |
822 private: | 822 private: |
823 virtual CodeStub::Major MajorKey() { return CallIC; } | 823 virtual CodeStub::Major MajorKey() { return CallIC; } |
824 | 824 |
825 // Code generation helpers. | 825 // Code generation helpers. |
826 void GenerateMiss(MacroAssembler* masm); | 826 void GenerateMiss(MacroAssembler* masm); |
| 827 void Generate_CustomFeedbackCall(MacroAssembler* masm); |
| 828 void Generate_MonomorphicArray(MacroAssembler* masm, Label* miss); |
827 | 829 |
828 CallIC::State state_; | 830 CallIC::State state_; |
829 }; | 831 }; |
830 | 832 |
831 | 833 |
832 class FunctionPrototypeStub: public ICStub { | 834 class FunctionPrototypeStub: public ICStub { |
833 public: | 835 public: |
834 FunctionPrototypeStub(Isolate* isolate, Code::Kind kind) | 836 FunctionPrototypeStub(Isolate* isolate, Code::Kind kind) |
835 : ICStub(isolate, kind) { } | 837 : ICStub(isolate, kind) { } |
836 virtual void Generate(MacroAssembler* masm); | 838 virtual void Generate(MacroAssembler* masm); |
(...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2507 | 2509 |
2508 | 2510 |
2509 class CallDescriptors { | 2511 class CallDescriptors { |
2510 public: | 2512 public: |
2511 static void InitializeForIsolate(Isolate* isolate); | 2513 static void InitializeForIsolate(Isolate* isolate); |
2512 }; | 2514 }; |
2513 | 2515 |
2514 } } // namespace v8::internal | 2516 } } // namespace v8::internal |
2515 | 2517 |
2516 #endif // V8_CODE_STUBS_H_ | 2518 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |