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 <stack> | 7 #include <stack> |
8 | 8 |
9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 | 115 |
116 void BytecodeGenerator::VisitEmptyStatement(EmptyStatement* stmt) { | 116 void BytecodeGenerator::VisitEmptyStatement(EmptyStatement* stmt) { |
117 UNIMPLEMENTED(); | 117 UNIMPLEMENTED(); |
118 } | 118 } |
119 | 119 |
120 | 120 |
121 void BytecodeGenerator::VisitIfStatement(IfStatement* stmt) { UNIMPLEMENTED(); } | 121 void BytecodeGenerator::VisitIfStatement(IfStatement* stmt) { UNIMPLEMENTED(); } |
122 | 122 |
123 | 123 |
| 124 void BytecodeGenerator::VisitSloppyBlockFunctionStatement( |
| 125 SloppyBlockFunctionStatement* stmt) { |
| 126 Visit(stmt->statement()); |
| 127 } |
| 128 |
| 129 |
124 void BytecodeGenerator::VisitContinueStatement(ContinueStatement* stmt) { | 130 void BytecodeGenerator::VisitContinueStatement(ContinueStatement* stmt) { |
125 UNIMPLEMENTED(); | 131 UNIMPLEMENTED(); |
126 } | 132 } |
127 | 133 |
128 | 134 |
129 void BytecodeGenerator::VisitBreakStatement(BreakStatement* stmt) { | 135 void BytecodeGenerator::VisitBreakStatement(BreakStatement* stmt) { |
130 UNIMPLEMENTED(); | 136 UNIMPLEMENTED(); |
131 } | 137 } |
132 | 138 |
133 | 139 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 } | 462 } |
457 | 463 |
458 | 464 |
459 int BytecodeGenerator::feedback_index(FeedbackVectorICSlot slot) const { | 465 int BytecodeGenerator::feedback_index(FeedbackVectorICSlot slot) const { |
460 return info()->feedback_vector()->GetIndex(slot); | 466 return info()->feedback_vector()->GetIndex(slot); |
461 } | 467 } |
462 | 468 |
463 } // namespace interpreter | 469 } // namespace interpreter |
464 } // namespace internal | 470 } // namespace internal |
465 } // namespace v8 | 471 } // namespace v8 |
OLD | NEW |