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

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

Issue 1609893003: [es6] Tail calls support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 917
918 InlineCacheState GetICState() const override { return GENERIC; } 918 InlineCacheState GetICState() const override { return GENERIC; }
919 919
920 ExtraICState GetExtraICState() const final { 920 ExtraICState GetExtraICState() const final {
921 return static_cast<ExtraICState>(minor_key_); 921 return static_cast<ExtraICState>(minor_key_);
922 } 922 }
923 923
924 protected: 924 protected:
925 int arg_count() const { return state().argc(); } 925 int arg_count() const { return state().argc(); }
926 ConvertReceiverMode convert_mode() const { return state().convert_mode(); } 926 ConvertReceiverMode convert_mode() const { return state().convert_mode(); }
927 TailCallMode tail_call_mode() const { return state().tail_call_mode(); }
927 928
928 CallICState state() const { 929 CallICState state() const {
929 return CallICState(static_cast<ExtraICState>(minor_key_)); 930 return CallICState(static_cast<ExtraICState>(minor_key_));
930 } 931 }
931 932
932 // Code generation helpers. 933 // Code generation helpers.
933 void GenerateMiss(MacroAssembler* masm); 934 void GenerateMiss(MacroAssembler* masm);
934 void HandleArrayCase(MacroAssembler* masm, Label* miss); 935 void HandleArrayCase(MacroAssembler* masm, Label* miss);
935 936
936 private: 937 private:
(...skipping 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after
2974 #undef DEFINE_HYDROGEN_CODE_STUB 2975 #undef DEFINE_HYDROGEN_CODE_STUB
2975 #undef DEFINE_CODE_STUB 2976 #undef DEFINE_CODE_STUB
2976 #undef DEFINE_CODE_STUB_BASE 2977 #undef DEFINE_CODE_STUB_BASE
2977 2978
2978 extern Representation RepresentationFromType(Type* type); 2979 extern Representation RepresentationFromType(Type* type);
2979 2980
2980 } // namespace internal 2981 } // namespace internal
2981 } // namespace v8 2982 } // namespace v8
2982 2983
2983 #endif // V8_CODE_STUBS_H_ 2984 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/compiler/js-operator.h » ('j') | src/x64/builtins-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698