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 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 Code::Kind GetCodeKind() const override { return Code::CALL_IC; } | 975 Code::Kind GetCodeKind() const override { return Code::CALL_IC; } |
976 | 976 |
977 InlineCacheState GetICState() const override { return GENERIC; } | 977 InlineCacheState GetICState() const override { return GENERIC; } |
978 | 978 |
979 ExtraICState GetExtraICState() const final { | 979 ExtraICState GetExtraICState() const final { |
980 return static_cast<ExtraICState>(minor_key_); | 980 return static_cast<ExtraICState>(minor_key_); |
981 } | 981 } |
982 | 982 |
983 protected: | 983 protected: |
984 int arg_count() const { return state().argc(); } | 984 int arg_count() const { return state().argc(); } |
| 985 ConvertReceiverMode convert_mode() const { return state().convert_mode(); } |
985 | 986 |
986 CallICState state() const { | 987 CallICState state() const { |
987 return CallICState(static_cast<ExtraICState>(minor_key_)); | 988 return CallICState(static_cast<ExtraICState>(minor_key_)); |
988 } | 989 } |
989 | 990 |
990 // Code generation helpers. | 991 // Code generation helpers. |
991 void GenerateMiss(MacroAssembler* masm); | 992 void GenerateMiss(MacroAssembler* masm); |
992 void HandleArrayCase(MacroAssembler* masm, Label* miss); | 993 void HandleArrayCase(MacroAssembler* masm, Label* miss); |
993 | 994 |
994 private: | 995 private: |
(...skipping 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3070 #undef DEFINE_HYDROGEN_CODE_STUB | 3071 #undef DEFINE_HYDROGEN_CODE_STUB |
3071 #undef DEFINE_CODE_STUB | 3072 #undef DEFINE_CODE_STUB |
3072 #undef DEFINE_CODE_STUB_BASE | 3073 #undef DEFINE_CODE_STUB_BASE |
3073 | 3074 |
3074 extern Representation RepresentationFromType(Type* type); | 3075 extern Representation RepresentationFromType(Type* type); |
3075 | 3076 |
3076 } // namespace internal | 3077 } // namespace internal |
3077 } // namespace v8 | 3078 } // namespace v8 |
3078 | 3079 |
3079 #endif // V8_CODE_STUBS_H_ | 3080 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |