summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/bytecode-analysis.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/bytecode-analysis.h')
-rw-r--r--deps/v8/src/compiler/bytecode-analysis.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/deps/v8/src/compiler/bytecode-analysis.h b/deps/v8/src/compiler/bytecode-analysis.h
index bc788943d7..53f86ca306 100644
--- a/deps/v8/src/compiler/bytecode-analysis.h
+++ b/deps/v8/src/compiler/bytecode-analysis.h
@@ -6,11 +6,11 @@
#define V8_COMPILER_BYTECODE_ANALYSIS_H_
#include "src/base/hashmap.h"
-#include "src/bit-vector.h"
#include "src/compiler/bytecode-liveness-map.h"
-#include "src/handles.h"
+#include "src/handles/handles.h"
#include "src/interpreter/bytecode-register.h"
-#include "src/utils.h"
+#include "src/utils/bit-vector.h"
+#include "src/utils/utils.h"
#include "src/zone/zone-containers.h"
namespace v8 {
@@ -35,8 +35,8 @@ class V8_EXPORT_PRIVATE BytecodeLoopAssignments {
int local_count() const { return bit_vector_->length() - parameter_count_; }
private:
- int parameter_count_;
- BitVector* bit_vector_;
+ int const parameter_count_;
+ BitVector* const bit_vector_;
};
// Jump targets for resuming a suspended generator.
@@ -129,8 +129,6 @@ class V8_EXPORT_PRIVATE BytecodeAnalysis {
// Gets the out-liveness for the bytecode at {offset}.
const BytecodeLivenessState* GetOutLivenessFor(int offset) const;
- std::ostream& PrintLivenessTo(std::ostream& os) const;
-
private:
struct LoopStackEntry {
int header_offset;
@@ -152,10 +150,11 @@ class V8_EXPORT_PRIVATE BytecodeAnalysis {
Zone* zone() const { return zone_; }
Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; }
- private:
- Handle<BytecodeArray> bytecode_array_;
- bool do_liveness_analysis_;
- Zone* zone_;
+ std::ostream& PrintLivenessTo(std::ostream& os) const;
+
+ Handle<BytecodeArray> const bytecode_array_;
+ bool const do_liveness_analysis_;
+ Zone* const zone_;
ZoneStack<LoopStackEntry> loop_stack_;
ZoneVector<int> loop_end_index_queue_;