Sha256: c3fda255f9ef12a7aa70f52c060a4d3fce40f338a424651834bb8978326b56a6

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

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

#ifndef V8_CRANKSHAFT_COMPILATION_PHASE_H_
#define V8_CRANKSHAFT_COMPILATION_PHASE_H_

#include "src/allocation.h"
#include "src/base/platform/elapsed-timer.h"
#include "src/compilation-info.h"
#include "src/zone/zone.h"

namespace v8 {
namespace internal {

class CompilationPhase BASE_EMBEDDED {
 public:
  CompilationPhase(const char* name, CompilationInfo* info);
  ~CompilationPhase();

 protected:
  bool ShouldProduceTraceOutput() const;

  const char* name() const { return name_; }
  CompilationInfo* info() const { return info_; }
  Isolate* isolate() const { return info()->isolate(); }
  Zone* zone() { return &zone_; }

 private:
  const char* name_;
  CompilationInfo* info_;
  Zone zone_;
  size_t info_zone_start_allocation_size_;
  base::ElapsedTimer timer_;

  DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
};

}  // namespace internal
}  // namespace v8

#endif  // V8_CRANKSHAFT_COMPILATION_PHASE_H_

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/crankshaft/compilation-phase.h
libv8-6.0.286.54.0 vendor/v8/src/crankshaft/compilation-phase.h
libv8-6.0.286.54.0beta2 vendor/v8/src/crankshaft/compilation-phase.h
libv8-6.0.286.54.0beta1 vendor/v8/src/crankshaft/compilation-phase.h
libv8-6.0.286.44.0beta1 vendor/v8/src/crankshaft/compilation-phase.h