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 #include "src/interpreter/bytecode-generator.h" | 5 #include "src/interpreter/bytecode-generator.h" |
6 | 6 |
| 7 #include "src/ast/compile-time-value.h" |
7 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
8 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
9 #include "src/compilation-info.h" | 10 #include "src/compilation-info.h" |
10 #include "src/compiler.h" | 11 #include "src/compiler.h" |
11 #include "src/interpreter/bytecode-flags.h" | 12 #include "src/interpreter/bytecode-flags.h" |
12 #include "src/interpreter/bytecode-label.h" | 13 #include "src/interpreter/bytecode-label.h" |
13 #include "src/interpreter/bytecode-register-allocator.h" | 14 #include "src/interpreter/bytecode-register-allocator.h" |
14 #include "src/interpreter/control-flow-builders.h" | 15 #include "src/interpreter/control-flow-builders.h" |
15 #include "src/objects.h" | 16 #include "src/objects.h" |
16 #include "src/parsing/parser.h" | |
17 #include "src/parsing/token.h" | 17 #include "src/parsing/token.h" |
18 | 18 |
19 namespace v8 { | 19 namespace v8 { |
20 namespace internal { | 20 namespace internal { |
21 namespace interpreter { | 21 namespace interpreter { |
22 | 22 |
23 // Scoped class tracking context objects created by the visitor. Represents | 23 // Scoped class tracking context objects created by the visitor. Represents |
24 // mutations of the context chain within the function body, allowing pushing and | 24 // mutations of the context chain within the function body, allowing pushing and |
25 // popping of the current {context_register} during visitation. | 25 // popping of the current {context_register} during visitation. |
26 class BytecodeGenerator::ContextScope BASE_EMBEDDED { | 26 class BytecodeGenerator::ContextScope BASE_EMBEDDED { |
(...skipping 3358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3385 return execution_context()->scope()->language_mode(); | 3385 return execution_context()->scope()->language_mode(); |
3386 } | 3386 } |
3387 | 3387 |
3388 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { | 3388 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { |
3389 return TypeFeedbackVector::GetIndex(slot); | 3389 return TypeFeedbackVector::GetIndex(slot); |
3390 } | 3390 } |
3391 | 3391 |
3392 } // namespace interpreter | 3392 } // namespace interpreter |
3393 } // namespace internal | 3393 } // namespace internal |
3394 } // namespace v8 | 3394 } // namespace v8 |
OLD | NEW |