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

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

Issue 1399893002: [es7] implement |do| expressions proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Less code duplication in Rewriter Created 5 years, 2 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/interpreter/control-flow-builders.h" 10 #include "src/interpreter/control-flow-builders.h"
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 UNIMPLEMENTED(); 462 UNIMPLEMENTED();
463 } 463 }
464 464
465 465
466 void BytecodeGenerator::VisitNativeFunctionLiteral( 466 void BytecodeGenerator::VisitNativeFunctionLiteral(
467 NativeFunctionLiteral* expr) { 467 NativeFunctionLiteral* expr) {
468 UNIMPLEMENTED(); 468 UNIMPLEMENTED();
469 } 469 }
470 470
471 471
472 void BytecodeGenerator::VisitDoExpression(DoExpression* expr) {
473 UNIMPLEMENTED();
474 }
475
476
472 void BytecodeGenerator::VisitConditional(Conditional* expr) { UNIMPLEMENTED(); } 477 void BytecodeGenerator::VisitConditional(Conditional* expr) { UNIMPLEMENTED(); }
473 478
474 479
475 void BytecodeGenerator::VisitLiteral(Literal* expr) { 480 void BytecodeGenerator::VisitLiteral(Literal* expr) {
476 Handle<Object> value = expr->value(); 481 Handle<Object> value = expr->value();
477 if (value->IsSmi()) { 482 if (value->IsSmi()) {
478 builder()->LoadLiteral(Smi::cast(*value)); 483 builder()->LoadLiteral(Smi::cast(*value));
479 } else if (value->IsUndefined()) { 484 } else if (value->IsUndefined()) {
480 builder()->LoadUndefined(); 485 builder()->LoadUndefined();
481 } else if (value->IsTrue()) { 486 } else if (value->IsTrue()) {
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 } 1207 }
1203 1208
1204 1209
1205 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { 1210 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const {
1206 return info()->feedback_vector()->GetIndex(slot); 1211 return info()->feedback_vector()->GetIndex(slot);
1207 } 1212 }
1208 1213
1209 } // namespace interpreter 1214 } // namespace interpreter
1210 } // namespace internal 1215 } // namespace internal
1211 } // namespace v8 1216 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698