Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(995)

Side by Side Diff: src/interpreter/bytecode-generator.cc

Issue 1332873003: Implement sloppy-mode block-defined functions (Annex B 3.3) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: An extra test and comment fix Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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::VisitDelegateStatement(DelegateStatement* stmt) {
125 Visit(stmt->statement());
126 }
127
128
124 void BytecodeGenerator::VisitContinueStatement(ContinueStatement* stmt) { 129 void BytecodeGenerator::VisitContinueStatement(ContinueStatement* stmt) {
125 UNIMPLEMENTED(); 130 UNIMPLEMENTED();
126 } 131 }
127 132
128 133
129 void BytecodeGenerator::VisitBreakStatement(BreakStatement* stmt) { 134 void BytecodeGenerator::VisitBreakStatement(BreakStatement* stmt) {
130 UNIMPLEMENTED(); 135 UNIMPLEMENTED();
131 } 136 }
132 137
133 138
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } 461 }
457 462
458 463
459 int BytecodeGenerator::feedback_index(FeedbackVectorICSlot slot) const { 464 int BytecodeGenerator::feedback_index(FeedbackVectorICSlot slot) const {
460 return info()->feedback_vector()->GetIndex(slot); 465 return info()->feedback_vector()->GetIndex(slot);
461 } 466 }
462 467
463 } // namespace interpreter 468 } // namespace interpreter
464 } // namespace internal 469 } // namespace internal
465 } // namespace v8 470 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698