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

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: Rebasing 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
« no previous file with comments | « src/code-factory.cc ('k') | src/compiler/ast-graph-builder.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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 918
919 InlineCacheState GetICState() const override { return GENERIC; } 919 InlineCacheState GetICState() const override { return GENERIC; }
920 920
921 ExtraICState GetExtraICState() const final { 921 ExtraICState GetExtraICState() const final {
922 return static_cast<ExtraICState>(minor_key_); 922 return static_cast<ExtraICState>(minor_key_);
923 } 923 }
924 924
925 protected: 925 protected:
926 int arg_count() const { return state().argc(); } 926 int arg_count() const { return state().argc(); }
927 ConvertReceiverMode convert_mode() const { return state().convert_mode(); } 927 ConvertReceiverMode convert_mode() const { return state().convert_mode(); }
928 TailCallMode tail_call_mode() const { return state().tail_call_mode(); }
928 929
929 CallICState state() const { 930 CallICState state() const {
930 return CallICState(static_cast<ExtraICState>(minor_key_)); 931 return CallICState(static_cast<ExtraICState>(minor_key_));
931 } 932 }
932 933
933 // Code generation helpers. 934 // Code generation helpers.
934 void GenerateMiss(MacroAssembler* masm); 935 void GenerateMiss(MacroAssembler* masm);
935 void HandleArrayCase(MacroAssembler* masm, Label* miss); 936 void HandleArrayCase(MacroAssembler* masm, Label* miss);
936 937
937 private: 938 private:
(...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2984 #undef DEFINE_HYDROGEN_CODE_STUB 2985 #undef DEFINE_HYDROGEN_CODE_STUB
2985 #undef DEFINE_CODE_STUB 2986 #undef DEFINE_CODE_STUB
2986 #undef DEFINE_CODE_STUB_BASE 2987 #undef DEFINE_CODE_STUB_BASE
2987 2988
2988 extern Representation RepresentationFromType(Type* type); 2989 extern Representation RepresentationFromType(Type* type);
2989 2990
2990 } // namespace internal 2991 } // namespace internal
2991 } // namespace v8 2992 } // namespace v8
2992 2993
2993 #endif // V8_CODE_STUBS_H_ 2994 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698