Sha256: 73a4b4cf520ce4c31f52578a19c6d62444f3e47bff440b64b11a28cf4e1faef6

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

Contents

// Copyright 2013 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.

#ifndef V8_COMPILER_OPERATOR_PROPERTIES_H_
#define V8_COMPILER_OPERATOR_PROPERTIES_H_

#include "src/base/macros.h"
#include "src/globals.h"

namespace v8 {
namespace internal {
namespace compiler {

// Forward declarations.
class Operator;

class V8_EXPORT_PRIVATE OperatorProperties final {
 public:
  static bool HasContextInput(const Operator* op);
  static int GetContextInputCount(const Operator* op) {
    return HasContextInput(op) ? 1 : 0;
  }

  static bool HasFrameStateInput(const Operator* op);
  static int GetFrameStateInputCount(const Operator* op) {
    return HasFrameStateInput(op) ? 1 : 0;
  }

  static int GetTotalInputCount(const Operator* op);

  static bool IsBasicBlockBegin(const Operator* op);

 private:
  DISALLOW_COPY_AND_ASSIGN(OperatorProperties);
};

}  // namespace compiler
}  // namespace internal
}  // namespace v8

#endif  // V8_COMPILER_OPERATOR_PROPERTIES_H_

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/compiler/operator-properties.h
libv8-6.0.286.54.0 vendor/v8/src/compiler/operator-properties.h
libv8-6.0.286.54.0beta2 vendor/v8/src/compiler/operator-properties.h
libv8-6.0.286.54.0beta1 vendor/v8/src/compiler/operator-properties.h
libv8-6.0.286.44.0beta1 vendor/v8/src/compiler/operator-properties.h