Sha256: c698523f098957251eeb287da4c0fe22c6152360831c354663f9ada911c1507f

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

// Copyright 2014 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_GAP_RESOLVER_H_
#define V8_COMPILER_GAP_RESOLVER_H_

#include "src/compiler/instruction.h"

namespace v8 {
namespace internal {
namespace compiler {

class GapResolver final {
 public:
  // Interface used by the gap resolver to emit moves and swaps.
  class Assembler {
   public:
    virtual ~Assembler() {}

    // Assemble move.
    virtual void AssembleMove(InstructionOperand* source,
                              InstructionOperand* destination) = 0;
    // Assemble swap.
    virtual void AssembleSwap(InstructionOperand* source,
                              InstructionOperand* destination) = 0;
  };

  explicit GapResolver(Assembler* assembler) : assembler_(assembler) {}

  // Resolve a set of parallel moves, emitting assembler instructions.
  void Resolve(ParallelMove* parallel_move) const;

 private:
  // Perform the given move, possibly requiring other moves to satisfy
  // dependencies.
  void PerformMove(ParallelMove* moves, MoveOperands* move) const;

  // Assembler used to emit moves and save registers.
  Assembler* const assembler_;
};

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

#endif  // V8_COMPILER_GAP_RESOLVER_H_

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/deps/v8/src/compiler/gap-resolver.h
node-compiler-0.9.0 vendor/node-v7.2.1/deps/v8/src/compiler/gap-resolver.h
node-compiler-0.8.0 vendor/node-v7.2.0/deps/v8/src/compiler/gap-resolver.h
node-compiler-0.7.0 vendor/node-v6.9.1/deps/v8/src/compiler/gap-resolver.h
node-compiler-0.7.0 vendor/node-v7.1.0/deps/v8/src/compiler/gap-resolver.h