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

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: Disable CrankShaft 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 UNIMPLEMENTED(); 507 UNIMPLEMENTED();
508 } 508 }
509 509
510 510
511 void BytecodeGenerator::VisitNativeFunctionLiteral( 511 void BytecodeGenerator::VisitNativeFunctionLiteral(
512 NativeFunctionLiteral* expr) { 512 NativeFunctionLiteral* expr) {
513 UNIMPLEMENTED(); 513 UNIMPLEMENTED();
514 } 514 }
515 515
516 516
517 void BytecodeGenerator::VisitDoExpression(DoExpression* expr) {
518 UNIMPLEMENTED();
519 }
520
521
517 void BytecodeGenerator::VisitConditional(Conditional* expr) { UNIMPLEMENTED(); } 522 void BytecodeGenerator::VisitConditional(Conditional* expr) { UNIMPLEMENTED(); }
518 523
519 524
520 void BytecodeGenerator::VisitLiteral(Literal* expr) { 525 void BytecodeGenerator::VisitLiteral(Literal* expr) {
521 Handle<Object> value = expr->value(); 526 Handle<Object> value = expr->value();
522 if (value->IsSmi()) { 527 if (value->IsSmi()) {
523 builder()->LoadLiteral(Smi::cast(*value)); 528 builder()->LoadLiteral(Smi::cast(*value));
524 } else if (value->IsUndefined()) { 529 } else if (value->IsUndefined()) {
525 builder()->LoadUndefined(); 530 builder()->LoadUndefined();
526 } else if (value->IsTrue()) { 531 } else if (value->IsTrue()) {
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 } 1430 }
1426 1431
1427 1432
1428 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { 1433 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const {
1429 return info()->feedback_vector()->GetIndex(slot); 1434 return info()->feedback_vector()->GetIndex(slot);
1430 } 1435 }
1431 1436
1432 } // namespace interpreter 1437 } // namespace interpreter
1433 } // namespace internal 1438 } // namespace internal
1434 } // namespace v8 1439 } // namespace v8
OLDNEW
« src/ast.h ('K') | « src/full-codegen/full-codegen.cc ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698