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

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: properly rebase 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
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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 return LanguageModeBits::decode(sub_minor_key()); 1017 return LanguageModeBits::decode(sub_minor_key());
1018 } 1018 }
1019 1019
1020 FunctionKind kind() const { 1020 FunctionKind kind() const {
1021 return FunctionKindBits::decode(sub_minor_key()); 1021 return FunctionKindBits::decode(sub_minor_key());
1022 } 1022 }
1023 1023
1024 private: 1024 private:
1025 STATIC_ASSERT(LANGUAGE_END == 3); 1025 STATIC_ASSERT(LANGUAGE_END == 3);
1026 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {}; 1026 class LanguageModeBits : public BitField<LanguageMode, 0, 2> {};
1027 class FunctionKindBits : public BitField<FunctionKind, 2, 8> {}; 1027 class FunctionKindBits : public BitField<FunctionKind, 2, 9> {};
1028 1028
1029 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); 1029 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure);
1030 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub); 1030 DEFINE_HYDROGEN_CODE_STUB(FastNewClosure, HydrogenCodeStub);
1031 }; 1031 };
1032 1032
1033 1033
1034 class FastNewContextStub final : public HydrogenCodeStub { 1034 class FastNewContextStub final : public HydrogenCodeStub {
1035 public: 1035 public:
1036 static const int kMaximumSlots = 64; 1036 static const int kMaximumSlots = 64;
1037 1037
(...skipping 2194 matching lines...) Expand 10 before | Expand all | Expand 10 after
3232 #undef DEFINE_HYDROGEN_CODE_STUB 3232 #undef DEFINE_HYDROGEN_CODE_STUB
3233 #undef DEFINE_CODE_STUB 3233 #undef DEFINE_CODE_STUB
3234 #undef DEFINE_CODE_STUB_BASE 3234 #undef DEFINE_CODE_STUB_BASE
3235 3235
3236 extern Representation RepresentationFromType(Type* type); 3236 extern Representation RepresentationFromType(Type* type);
3237 3237
3238 } // namespace internal 3238 } // namespace internal
3239 } // namespace v8 3239 } // namespace v8
3240 3240
3241 #endif // V8_CODE_STUBS_H_ 3241 #endif // V8_CODE_STUBS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698