OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/typing.h" | 5 #include "src/typing.h" |
6 | 6 |
7 #include "src/frames.h" | 7 #include "src/frames.h" |
8 #include "src/frames-inl.h" | 8 #include "src/frames-inl.h" |
9 #include "src/ostreams.h" | 9 #include "src/ostreams.h" |
10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move | 10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 store_.Forget(); // Eval could do whatever to local variables. | 548 store_.Forget(); // Eval could do whatever to local variables. |
549 } | 549 } |
550 | 550 |
551 // We don't know anything about the result type. | 551 // We don't know anything about the result type. |
552 } | 552 } |
553 | 553 |
554 | 554 |
555 void AstTyper::VisitCallNew(CallNew* expr) { | 555 void AstTyper::VisitCallNew(CallNew* expr) { |
556 // Collect type feedback. | 556 // Collect type feedback. |
557 FeedbackVectorSlot allocation_site_feedback_slot = | 557 FeedbackVectorSlot allocation_site_feedback_slot = |
558 FLAG_pretenuring_call_new ? expr->AllocationSiteFeedbackSlot() | 558 expr->CallNewFeedbackSlot(); |
559 : expr->CallNewFeedbackSlot(); | |
560 expr->set_allocation_site( | 559 expr->set_allocation_site( |
561 oracle()->GetCallNewAllocationSite(allocation_site_feedback_slot)); | 560 oracle()->GetCallNewAllocationSite(allocation_site_feedback_slot)); |
562 bool monomorphic = | 561 bool monomorphic = |
563 oracle()->CallNewIsMonomorphic(expr->CallNewFeedbackSlot()); | 562 oracle()->CallNewIsMonomorphic(expr->CallNewFeedbackSlot()); |
564 expr->set_is_monomorphic(monomorphic); | 563 expr->set_is_monomorphic(monomorphic); |
565 if (monomorphic) { | 564 if (monomorphic) { |
566 expr->set_target(oracle()->GetCallNewTarget(expr->CallNewFeedbackSlot())); | 565 expr->set_target(oracle()->GetCallNewTarget(expr->CallNewFeedbackSlot())); |
567 } | 566 } |
568 | 567 |
569 RECURSE(Visit(expr->expression())); | 568 RECURSE(Visit(expr->expression())); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { | 799 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { |
801 } | 800 } |
802 | 801 |
803 | 802 |
804 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { | 803 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { |
805 } | 804 } |
806 | 805 |
807 | 806 |
808 } // namespace internal | 807 } // namespace internal |
809 } // namespace v8 | 808 } // namespace v8 |
OLD | NEW |