OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/ast/ast-numbering.h" | 5 #include "src/ast/ast-numbering.h" |
6 | 6 |
7 #include "src/ast/ast.h" | 7 #include "src/ast/ast.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
525 node->set_base_id(ReserveIdRange(node->num_ids())); | 525 node->set_base_id(ReserveIdRange(node->num_ids())); |
526 for (int i = 0; i < node->values()->length(); i++) { | 526 for (int i = 0; i < node->values()->length(); i++) { |
527 Visit(node->values()->at(i)); | 527 Visit(node->values()->at(i)); |
528 } | 528 } |
529 node->BuildConstantElements(isolate_); | 529 node->BuildConstantElements(isolate_); |
530 ReserveFeedbackSlots(node); | 530 ReserveFeedbackSlots(node); |
531 } | 531 } |
532 | 532 |
533 | 533 |
534 void AstNumberingVisitor::VisitCall(Call* node) { | 534 void AstNumberingVisitor::VisitCall(Call* node) { |
535 if (node->is_possibly_eval()) { | |
536 DisableFullCodegenAndCrankshaft(kFunctionCallsEval); | |
Michael Starzinger
2016/11/23 10:15:48
Just out of curiosity, are there cases where this
rmcilroy
2016/11/23 13:48:50
Yeah this didn't work without it. If I remember co
Michael Starzinger
2016/11/23 14:11:05
I briefly talked with Toon about this and he agree
| |
537 } | |
535 IncrementNodeCount(); | 538 IncrementNodeCount(); |
536 ReserveFeedbackSlots(node); | 539 ReserveFeedbackSlots(node); |
537 node->set_base_id(ReserveIdRange(Call::num_ids())); | 540 node->set_base_id(ReserveIdRange(Call::num_ids())); |
538 Visit(node->expression()); | 541 Visit(node->expression()); |
539 VisitArguments(node->arguments()); | 542 VisitArguments(node->arguments()); |
540 } | 543 } |
541 | 544 |
542 | 545 |
543 void AstNumberingVisitor::VisitCallNew(CallNew* node) { | 546 void AstNumberingVisitor::VisitCallNew(CallNew* node) { |
544 IncrementNodeCount(); | 547 IncrementNodeCount(); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
614 } | 617 } |
615 | 618 |
616 | 619 |
617 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, | 620 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, |
618 FunctionLiteral* function) { | 621 FunctionLiteral* function) { |
619 AstNumberingVisitor visitor(isolate, zone); | 622 AstNumberingVisitor visitor(isolate, zone); |
620 return visitor.Renumber(function); | 623 return visitor.Renumber(function); |
621 } | 624 } |
622 } // namespace internal | 625 } // namespace internal |
623 } // namespace v8 | 626 } // namespace v8 |
OLD | NEW |