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

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: Improve type clarity 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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::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
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
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698