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

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: majorly improve stack traces, get rid of self-spawning behaviour, create inner generator function Created 4 years, 8 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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 return LanguageModeBits::decode(sub_minor_key()); 992 return LanguageModeBits::decode(sub_minor_key());
993 } 993 }
994 994
995 FunctionKind kind() const { 995 FunctionKind kind() const {
996 return FunctionKindBits::decode(sub_minor_key()); 996 return FunctionKindBits::decode(sub_minor_key());
997 } 997 }
998 998
999 private: 999 private:
1000 STATIC_ASSERT(LANGUAGE_END == 3); 1000 STATIC_ASSERT(LANGUAGE_END == 3);
1001 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; 1001 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {};
1002 class FunctionKindBits : public BitField<FunctionKind, 2, 8> {}; 1002 class FunctionKindBits : public BitField<FunctionKind, 2, 14> {};
1003 1003
1004 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); 1004 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure);
1005 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); 1005 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub);
1006 }; 1006 };
1007 1007
1008 1008
1009 class FastNewContextStub final : public HydrogenCodeStub { 1009 class FastNewContextStub final : public HydrogenCodeStub {
1010 public: 1010 public:
1011 static const int kMaximumSlots = 64; 1011 static const int kMaximumSlots = 64;
1012 1012
(...skipping 2150 matching lines...) Expand 10 before | Expand all | Expand 10 after
3163 #undef DEFINE_HYDROGEN_CODE_STUB 3163 #undef DEFINE_HYDROGEN_CODE_STUB
3164 #undef DEFINE_CODE_STUB 3164 #undef DEFINE_CODE_STUB
3165 #undef DEFINE_CODE_STUB_BASE 3165 #undef DEFINE_CODE_STUB_BASE
3166 3166
3167 extern Representation RepresentationFromType(Type* type); 3167 extern Representation RepresentationFromType(Type* type);
3168 3168
3169 } // namespace internal 3169 } // namespace internal
3170 } // namespace v8 3170 } // namespace v8
3171 3171
3172 #endif // V8_CODE_STUBS_H_ 3172 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/contexts.h » ('j') | src/parsing/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698