| 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/compiler/bytecode-graph-builder.h" | 5 #include "src/compiler/bytecode-graph-builder.h" |
| 6 | 6 |
| 7 #include "src/compiler/linkage.h" | 7 #include "src/compiler/linkage.h" |
| 8 #include "src/compiler/operator-properties.h" | 8 #include "src/compiler/operator-properties.h" |
| 9 #include "src/interpreter/bytecode-array-iterator.h" | 9 #include "src/interpreter/bytecode-array-iterator.h" |
| 10 | 10 |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 BuildBinaryOp(javascript()->ShiftRight(language_mode()), iterator); | 451 BuildBinaryOp(javascript()->ShiftRight(language_mode()), iterator); |
| 452 } | 452 } |
| 453 | 453 |
| 454 | 454 |
| 455 void BytecodeGraphBuilder::VisitShiftRightLogical( | 455 void BytecodeGraphBuilder::VisitShiftRightLogical( |
| 456 const interpreter::BytecodeArrayIterator& iterator) { | 456 const interpreter::BytecodeArrayIterator& iterator) { |
| 457 BuildBinaryOp(javascript()->ShiftRightLogical(language_mode()), iterator); | 457 BuildBinaryOp(javascript()->ShiftRightLogical(language_mode()), iterator); |
| 458 } | 458 } |
| 459 | 459 |
| 460 | 460 |
| 461 void BytecodeGraphBuilder::VisitInc( |
| 462 const interpreter::BytecodeArrayIterator& iterator) { |
| 463 UNIMPLEMENTED(); |
| 464 } |
| 465 |
| 466 |
| 467 void BytecodeGraphBuilder::VisitDec( |
| 468 const interpreter::BytecodeArrayIterator& iterator) { |
| 469 UNIMPLEMENTED(); |
| 470 } |
| 471 |
| 472 |
| 461 void BytecodeGraphBuilder::VisitLogicalNot( | 473 void BytecodeGraphBuilder::VisitLogicalNot( |
| 462 const interpreter::BytecodeArrayIterator& iterator) { | 474 const interpreter::BytecodeArrayIterator& iterator) { |
| 463 UNIMPLEMENTED(); | 475 UNIMPLEMENTED(); |
| 464 } | 476 } |
| 465 | 477 |
| 466 | 478 |
| 467 void BytecodeGraphBuilder::VisitTypeOf( | 479 void BytecodeGraphBuilder::VisitTypeOf( |
| 468 const interpreter::BytecodeArrayIterator& iterator) { | 480 const interpreter::BytecodeArrayIterator& iterator) { |
| 469 UNIMPLEMENTED(); | 481 UNIMPLEMENTED(); |
| 470 } | 482 } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 UNIMPLEMENTED(); | 547 UNIMPLEMENTED(); |
| 536 } | 548 } |
| 537 | 549 |
| 538 | 550 |
| 539 void BytecodeGraphBuilder::VisitToName( | 551 void BytecodeGraphBuilder::VisitToName( |
| 540 const interpreter::BytecodeArrayIterator& iterator) { | 552 const interpreter::BytecodeArrayIterator& iterator) { |
| 541 UNIMPLEMENTED(); | 553 UNIMPLEMENTED(); |
| 542 } | 554 } |
| 543 | 555 |
| 544 | 556 |
| 557 void BytecodeGraphBuilder::VisitToNumber( |
| 558 const interpreter::BytecodeArrayIterator& iterator) { |
| 559 UNIMPLEMENTED(); |
| 560 } |
| 561 |
| 562 |
| 545 void BytecodeGraphBuilder::VisitJump( | 563 void BytecodeGraphBuilder::VisitJump( |
| 546 const interpreter::BytecodeArrayIterator& iterator) { | 564 const interpreter::BytecodeArrayIterator& iterator) { |
| 547 UNIMPLEMENTED(); | 565 UNIMPLEMENTED(); |
| 548 } | 566 } |
| 549 | 567 |
| 550 | 568 |
| 551 void BytecodeGraphBuilder::VisitJumpConstant( | 569 void BytecodeGraphBuilder::VisitJumpConstant( |
| 552 const interpreter::BytecodeArrayIterator& iterator) { | 570 const interpreter::BytecodeArrayIterator& iterator) { |
| 553 UNIMPLEMENTED(); | 571 UNIMPLEMENTED(); |
| 554 } | 572 } |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 | 724 |
| 707 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) { | 725 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) { |
| 708 if (environment()->IsMarkedAsUnreachable()) return; | 726 if (environment()->IsMarkedAsUnreachable()) return; |
| 709 environment()->MarkAsUnreachable(); | 727 environment()->MarkAsUnreachable(); |
| 710 exit_controls_.push_back(exit); | 728 exit_controls_.push_back(exit); |
| 711 } | 729 } |
| 712 | 730 |
| 713 } // namespace compiler | 731 } // namespace compiler |
| 714 } // namespace internal | 732 } // namespace internal |
| 715 } // namespace v8 | 733 } // namespace v8 |
| OLD | NEW |