| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_WRITER_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_WRITER_H_ |
| 6 #define V8_INTERPRETER_BYTECODE_ARRAY_WRITER_H_ | 6 #define V8_INTERPRETER_BYTECODE_ARRAY_WRITER_H_ |
| 7 | 7 |
| 8 #include "src/interpreter/bytecode-pipeline.h" | 8 #include "src/interpreter/bytecode-pipeline.h" |
| 9 #include "src/interpreter/source-position-table.h" | 9 #include "src/source-position-table.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 |
| 14 class SourcePositionTableBuilder; |
| 15 |
| 13 namespace interpreter { | 16 namespace interpreter { |
| 14 | 17 |
| 15 class BytecodeLabel; | 18 class BytecodeLabel; |
| 16 class SourcePositionTableBuilder; | |
| 17 class ConstantArrayBuilder; | 19 class ConstantArrayBuilder; |
| 18 | 20 |
| 19 // Class for emitting bytecode as the final stage of the bytecode | 21 // Class for emitting bytecode as the final stage of the bytecode |
| 20 // generation pipeline. | 22 // generation pipeline. |
| 21 class BytecodeArrayWriter final : public BytecodePipelineStage { | 23 class BytecodeArrayWriter final : public BytecodePipelineStage { |
| 22 public: | 24 public: |
| 23 BytecodeArrayWriter(Isolate* isolate, Zone* zone, | 25 BytecodeArrayWriter(Isolate* isolate, Zone* zone, |
| 24 ConstantArrayBuilder* constant_array_builder); | 26 ConstantArrayBuilder* constant_array_builder); |
| 25 virtual ~BytecodeArrayWriter(); | 27 virtual ~BytecodeArrayWriter(); |
| 26 | 28 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 73 |
| 72 friend class BytecodeArrayWriterUnittest; | 74 friend class BytecodeArrayWriterUnittest; |
| 73 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayWriter); | 75 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayWriter); |
| 74 }; | 76 }; |
| 75 | 77 |
| 76 } // namespace interpreter | 78 } // namespace interpreter |
| 77 } // namespace internal | 79 } // namespace internal |
| 78 } // namespace v8 | 80 } // namespace v8 |
| 79 | 81 |
| 80 #endif // V8_INTERPRETER_BYTECODE_ARRAY_WRITER_H_ | 82 #endif // V8_INTERPRETER_BYTECODE_ARRAY_WRITER_H_ |
| OLD | NEW |