builtins-promise-gen.h 844 Bytes
Newer Older
1 2 3 4
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5 6
#ifndef V8_BUILTINS_BUILTINS_PROMISE_GEN_H_
#define V8_BUILTINS_BUILTINS_PROMISE_GEN_H_
7

8
#include "src/codegen/code-stub-assembler.h"
9
#include "src/objects/promise.h"
10 11 12 13

namespace v8 {
namespace internal {

14
using CodeAssemblerState = compiler::CodeAssemblerState;
15

16
class V8_EXPORT_PRIVATE PromiseBuiltinsAssembler : public CodeStubAssembler {
17
 public:
18
  explicit PromiseBuiltinsAssembler(compiler::CodeAssemblerState* state)
19
      : CodeStubAssembler(state) {}
20
  void ZeroOutEmbedderOffsets(TNode<JSPromise> promise);
gsathya's avatar
gsathya committed
21

22
  TNode<HeapObject> AllocateJSPromise(TNode<Context> context);
23 24 25 26
};

}  // namespace internal
}  // namespace v8
27

28
#endif  // V8_BUILTINS_BUILTINS_PROMISE_GEN_H_