Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: src/code-stubs.h

Issue 2412453005: [stubs] Refactor the CallICStub to pass the number of arguments. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-factory.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698