| 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_BUILDER_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| 7 | 7 |
| 8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/base/compiler-specific.h" |
| 10 #include "src/globals.h" |
| 9 #include "src/interpreter/bytecode-array-writer.h" | 11 #include "src/interpreter/bytecode-array-writer.h" |
| 10 #include "src/interpreter/bytecode-register-allocator.h" | 12 #include "src/interpreter/bytecode-register-allocator.h" |
| 11 #include "src/interpreter/bytecode-register.h" | 13 #include "src/interpreter/bytecode-register.h" |
| 12 #include "src/interpreter/bytecodes.h" | 14 #include "src/interpreter/bytecodes.h" |
| 13 #include "src/interpreter/constant-array-builder.h" | 15 #include "src/interpreter/constant-array-builder.h" |
| 14 #include "src/interpreter/handler-table-builder.h" | 16 #include "src/interpreter/handler-table-builder.h" |
| 15 #include "src/zone/zone-containers.h" | 17 #include "src/zone/zone-containers.h" |
| 16 | 18 |
| 17 namespace v8 { | 19 namespace v8 { |
| 18 namespace internal { | 20 namespace internal { |
| 19 | 21 |
| 20 class Isolate; | 22 class Isolate; |
| 21 | 23 |
| 22 namespace interpreter { | 24 namespace interpreter { |
| 23 | 25 |
| 24 class BytecodeLabel; | 26 class BytecodeLabel; |
| 25 class BytecodeNode; | 27 class BytecodeNode; |
| 26 class BytecodePipelineStage; | 28 class BytecodePipelineStage; |
| 27 class Register; | 29 class Register; |
| 28 | 30 |
| 29 class BytecodeArrayBuilder final : public ZoneObject { | 31 class V8_EXPORT_PRIVATE BytecodeArrayBuilder final |
| 32 : public NON_EXPORTED_BASE(ZoneObject) { |
| 30 public: | 33 public: |
| 31 BytecodeArrayBuilder( | 34 BytecodeArrayBuilder( |
| 32 Isolate* isolate, Zone* zone, int parameter_count, int context_count, | 35 Isolate* isolate, Zone* zone, int parameter_count, int context_count, |
| 33 int locals_count, FunctionLiteral* literal = nullptr, | 36 int locals_count, FunctionLiteral* literal = nullptr, |
| 34 SourcePositionTableBuilder::RecordingMode source_position_mode = | 37 SourcePositionTableBuilder::RecordingMode source_position_mode = |
| 35 SourcePositionTableBuilder::RECORD_SOURCE_POSITIONS); | 38 SourcePositionTableBuilder::RECORD_SOURCE_POSITIONS); |
| 36 | 39 |
| 37 Handle<BytecodeArray> ToBytecodeArray(Isolate* isolate); | 40 Handle<BytecodeArray> ToBytecodeArray(Isolate* isolate); |
| 38 | 41 |
| 39 // Get the number of parameters expected by function. | 42 // Get the number of parameters expected by function. |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 static int const kNoFeedbackSlot = 0; | 411 static int const kNoFeedbackSlot = 0; |
| 409 | 412 |
| 410 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 413 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
| 411 }; | 414 }; |
| 412 | 415 |
| 413 } // namespace interpreter | 416 } // namespace interpreter |
| 414 } // namespace internal | 417 } // namespace internal |
| 415 } // namespace v8 | 418 } // namespace v8 |
| 416 | 419 |
| 417 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 420 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |