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

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

Issue 1436493002: [builtins] Introduce specialized Call/CallFunction builtins. (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/code-factory.cc ('k') | src/compiler/js-generic-lowering.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 975
976 Code::Kind GetCodeKind() const override { return Code::CALL_IC; } 976 Code::Kind GetCodeKind() const override { return Code::CALL_IC; }
977 977
978 InlineCacheState GetICState() const override { return GENERIC; } 978 InlineCacheState GetICState() const override { return GENERIC; }
979 979
980 ExtraICState GetExtraICState() const final { 980 ExtraICState GetExtraICState() const final {
981 return static_cast<ExtraICState>(minor_key_); 981 return static_cast<ExtraICState>(minor_key_);
982 } 982 }
983 983
984 protected: 984 protected:
985 int arg_count() const { return state().arg_count(); } 985 int arg_count() const { return state().argc(); }
986 986
987 CallICState state() const { 987 CallICState state() const {
988 return CallICState(static_cast<ExtraICState>(minor_key_)); 988 return CallICState(static_cast<ExtraICState>(minor_key_));
989 } 989 }
990 990
991 // Code generation helpers. 991 // Code generation helpers.
992 void GenerateMiss(MacroAssembler* masm); 992 void GenerateMiss(MacroAssembler* masm);
993 void HandleArrayCase(MacroAssembler* masm, Label* miss); 993 void HandleArrayCase(MacroAssembler* masm, Label* miss);
994 994
995 private: 995 private:
(...skipping 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after
3094 #undef DEFINE_HYDROGEN_CODE_STUB 3094 #undef DEFINE_HYDROGEN_CODE_STUB
3095 #undef DEFINE_CODE_STUB 3095 #undef DEFINE_CODE_STUB
3096 #undef DEFINE_CODE_STUB_BASE 3096 #undef DEFINE_CODE_STUB_BASE
3097 3097
3098 extern Representation RepresentationFromType(Type* type); 3098 extern Representation RepresentationFromType(Type* type);
3099 3099
3100 } // namespace internal 3100 } // namespace internal
3101 } // namespace v8 3101 } // namespace v8
3102 3102
3103 #endif // V8_CODE_STUBS_H_ 3103 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698