| 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/code-stub-assembler.h" | 10 #include "src/code-stub-assembler.h" |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 minor_key_ = state.GetExtraICState(); | 1153 minor_key_ = state.GetExtraICState(); |
| 1154 } | 1154 } |
| 1155 | 1155 |
| 1156 Code::Kind GetCodeKind() const override { return Code::CALL_IC; } | 1156 Code::Kind GetCodeKind() const override { return Code::CALL_IC; } |
| 1157 | 1157 |
| 1158 ExtraICState GetExtraICState() const final { | 1158 ExtraICState GetExtraICState() const final { |
| 1159 return static_cast<ExtraICState>(minor_key_); | 1159 return static_cast<ExtraICState>(minor_key_); |
| 1160 } | 1160 } |
| 1161 | 1161 |
| 1162 protected: | 1162 protected: |
| 1163 int arg_count() const { return state().argc(); } | |
| 1164 ConvertReceiverMode convert_mode() const { return state().convert_mode(); } | 1163 ConvertReceiverMode convert_mode() const { return state().convert_mode(); } |
| 1165 TailCallMode tail_call_mode() const { return state().tail_call_mode(); } | 1164 TailCallMode tail_call_mode() const { return state().tail_call_mode(); } |
| 1166 | 1165 |
| 1167 CallICState state() const { return CallICState(GetExtraICState()); } | 1166 CallICState state() const { return CallICState(GetExtraICState()); } |
| 1168 | 1167 |
| 1169 // Code generation helpers. | 1168 // Code generation helpers. |
| 1170 void GenerateMiss(MacroAssembler* masm); | 1169 void GenerateMiss(MacroAssembler* masm); |
| 1171 void HandleArrayCase(MacroAssembler* masm, Label* miss); | 1170 void HandleArrayCase(MacroAssembler* masm, Label* miss); |
| 1172 | 1171 |
| 1173 private: | 1172 private: |
| (...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2880 #undef DEFINE_HYDROGEN_CODE_STUB | 2879 #undef DEFINE_HYDROGEN_CODE_STUB |
| 2881 #undef DEFINE_CODE_STUB | 2880 #undef DEFINE_CODE_STUB |
| 2882 #undef DEFINE_CODE_STUB_BASE | 2881 #undef DEFINE_CODE_STUB_BASE |
| 2883 | 2882 |
| 2884 extern Representation RepresentationFromMachineType(MachineType type); | 2883 extern Representation RepresentationFromMachineType(MachineType type); |
| 2885 | 2884 |
| 2886 } // namespace internal | 2885 } // namespace internal |
| 2887 } // namespace v8 | 2886 } // namespace v8 |
| 2888 | 2887 |
| 2889 #endif // V8_CODE_STUBS_H_ | 2888 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |