Sha256: f57080b85160cd9afbbadffad1ed6611bdcdef5f9c5968f40db8bd81fb3be1f2

Contents?: true

Size: 1.12 KB

Versions: 10

Compression:

Stored size: 1.12 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_JUMP_THREADING_H_
#define V8_COMPILER_JUMP_THREADING_H_

#include "src/compiler/instruction.h"

namespace v8 {
namespace internal {
namespace compiler {

// Forwards jumps to empty basic blocks that end with a second jump to the
// destination of the second jump, transitively.
class JumpThreading {
 public:
  // Compute the forwarding map of basic blocks to their ultimate destination.
  // Returns {true} if there is at least one block that is forwarded.
  static bool ComputeForwarding(Zone* local_zone, ZoneVector<RpoNumber>& result,
                                InstructionSequence* code, bool frame_at_start);

  // Rewrite the instructions to forward jumps and branches.
  // May also negate some branches.
  static void ApplyForwarding(ZoneVector<RpoNumber>& forwarding,
                              InstructionSequence* code);
};

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

#endif  // V8_COMPILER_JUMP_THREADING_H

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/compiler/jump-threading.h
libv8-6.0.286.54.0 vendor/v8/src/compiler/jump-threading.h
libv8-6.0.286.54.0beta2 vendor/v8/src/compiler/jump-threading.h
libv8-6.0.286.54.0beta1 vendor/v8/src/compiler/jump-threading.h
libv8-6.0.286.44.0beta1 vendor/v8/src/compiler/jump-threading.h
node-compiler-0.9.1 vendor/node/deps/v8/src/compiler/jump-threading.h
node-compiler-0.9.0 vendor/node-v7.2.1/deps/v8/src/compiler/jump-threading.h
node-compiler-0.8.0 vendor/node-v7.2.0/deps/v8/src/compiler/jump-threading.h
node-compiler-0.7.0 vendor/node-v7.1.0/deps/v8/src/compiler/jump-threading.h
node-compiler-0.7.0 vendor/node-v6.9.1/deps/v8/src/compiler/jump-threading.h