Sha256: 9eda329347964956abbaaddc6b5a07943dba35c45c9f58ff64198cf6a21c2181

Contents?: true

Size: 1.03 KB

Versions: 10

Compression:

Stored size: 1.03 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_CRANKSHAFT_HYDROGEN_UINT32_ANALYSIS_H_
#define V8_CRANKSHAFT_HYDROGEN_UINT32_ANALYSIS_H_

#include "src/crankshaft/hydrogen.h"

namespace v8 {
namespace internal {


// Discover instructions that can be marked with kUint32 flag allowing
// them to produce full range uint32 values.
class HUint32AnalysisPhase : public HPhase {
 public:
  explicit HUint32AnalysisPhase(HGraph* graph)
      : HPhase("H_Compute safe UInt32 operations", graph), phis_(4, zone()) { }

  void Run();

 private:
  INLINE(bool IsSafeUint32Use(HValue* val, HValue* use));
  INLINE(bool Uint32UsesAreSafe(HValue* uint32val));
  INLINE(bool CheckPhiOperands(HPhi* phi));
  INLINE(void UnmarkPhi(HPhi* phi, ZoneList<HPhi*>* worklist));
  INLINE(void UnmarkUnsafePhis());

  ZoneList<HPhi*> phis_;
};


}  // namespace internal
}  // namespace v8

#endif  // V8_CRANKSHAFT_HYDROGEN_UINT32_ANALYSIS_H_

Version data entries

10 entries across 9 versions & 2 rubygems

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