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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 | 918 |
919 InlineCacheState GetICState() const override { return GENERIC; } | 919 InlineCacheState GetICState() const override { return GENERIC; } |
920 | 920 |
921 ExtraICState GetExtraICState() const final { | 921 ExtraICState GetExtraICState() const final { |
922 return static_cast<ExtraICState>(minor_key_); | 922 return static_cast<ExtraICState>(minor_key_); |
923 } | 923 } |
924 | 924 |
925 protected: | 925 protected: |
926 int arg_count() const { return state().argc(); } | 926 int arg_count() const { return state().argc(); } |
927 ConvertReceiverMode convert_mode() const { return state().convert_mode(); } | 927 ConvertReceiverMode convert_mode() const { return state().convert_mode(); } |
| 928 TailCallMode tail_call_mode() const { return state().tail_call_mode(); } |
928 | 929 |
929 CallICState state() const { | 930 CallICState state() const { |
930 return CallICState(static_cast<ExtraICState>(minor_key_)); | 931 return CallICState(static_cast<ExtraICState>(minor_key_)); |
931 } | 932 } |
932 | 933 |
933 // Code generation helpers. | 934 // Code generation helpers. |
934 void GenerateMiss(MacroAssembler* masm); | 935 void GenerateMiss(MacroAssembler* masm); |
935 void HandleArrayCase(MacroAssembler* masm, Label* miss); | 936 void HandleArrayCase(MacroAssembler* masm, Label* miss); |
936 | 937 |
937 private: | 938 private: |
(...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2984 #undef DEFINE_HYDROGEN_CODE_STUB | 2985 #undef DEFINE_HYDROGEN_CODE_STUB |
2985 #undef DEFINE_CODE_STUB | 2986 #undef DEFINE_CODE_STUB |
2986 #undef DEFINE_CODE_STUB_BASE | 2987 #undef DEFINE_CODE_STUB_BASE |
2987 | 2988 |
2988 extern Representation RepresentationFromType(Type* type); | 2989 extern Representation RepresentationFromType(Type* type); |
2989 | 2990 |
2990 } // namespace internal | 2991 } // namespace internal |
2991 } // namespace v8 | 2992 } // namespace v8 |
2992 | 2993 |
2993 #endif // V8_CODE_STUBS_H_ | 2994 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |