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

Side by Side Diff: src/typing.cc

Issue 1202173002: Remove --pretenuring-call-new (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix 64 bit release build break. Created 5 years, 3 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
« no previous file with comments | « src/type-info.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/type-info.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698