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

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

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: Try new strategy (Option C) Created 4 years, 7 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/builtins.cc ('k') | src/contexts.h » ('j') | src/factory.cc » ('J')
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 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 return LanguageModeBits::decode(sub_minor_key()); 990 return LanguageModeBits::decode(sub_minor_key());
991 } 991 }
992 992
993 FunctionKind kind() const { 993 FunctionKind kind() const {
994 return FunctionKindBits::decode(sub_minor_key()); 994 return FunctionKindBits::decode(sub_minor_key());
995 } 995 }
996 996
997 private: 997 private:
998 STATIC_ASSERT(LANGUAGE_END == 3); 998 STATIC_ASSERT(LANGUAGE_END == 3);
999 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; 999 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {};
1000 class FunctionKindBits : public BitField<FunctionKind, 2, 8> {}; 1000 class FunctionKindBits : public BitField<FunctionKind, 2, 14> {};
1001 1001
1002 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); 1002 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure);
1003 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); 1003 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub);
1004 }; 1004 };
1005 1005
1006 1006
1007 class FastNewContextStub final : public HydrogenCodeStub { 1007 class FastNewContextStub final : public HydrogenCodeStub {
1008 public: 1008 public:
1009 static const int kMaximumSlots = 64; 1009 static const int kMaximumSlots = 64;
1010 1010
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after
3160 #undef DEFINE_HYDROGEN_CODE_STUB 3160 #undef DEFINE_HYDROGEN_CODE_STUB
3161 #undef DEFINE_CODE_STUB 3161 #undef DEFINE_CODE_STUB
3162 #undef DEFINE_CODE_STUB_BASE 3162 #undef DEFINE_CODE_STUB_BASE
3163 3163
3164 extern Representation RepresentationFromType(Type* type); 3164 extern Representation RepresentationFromType(Type* type);
3165 3165
3166 } // namespace internal 3166 } // namespace internal
3167 } // namespace v8 3167 } // namespace v8
3168 3168
3169 #endif // V8_CODE_STUBS_H_ 3169 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/contexts.h » ('j') | src/factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698