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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |