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

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

Issue 1470803002: [stubs] Change CallICStub to utilize the ConvertReceiverMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/arm64/code-stubs-arm64.cc ('k') | src/ia32/code-stubs-ia32.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/codegen.h" 10 #include "src/codegen.h"
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698