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/full-codegen/full-codegen.h" | 5 #include "src/full-codegen/full-codegen.h" |
6 | 6 |
7 #include "src/ast/ast.h" | 7 #include "src/ast/ast.h" |
8 #include "src/ast/ast-numbering.h" | 8 #include "src/ast/ast-numbering.h" |
9 #include "src/ast/prettyprinter.h" | 9 #include "src/ast/prettyprinter.h" |
10 #include "src/ast/scopeinfo.h" | 10 #include "src/ast/scopeinfo.h" |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1418 } | 1418 } |
1419 | 1419 |
1420 | 1420 |
1421 void FullCodeGenerator::VisitCall(Call* expr) { | 1421 void FullCodeGenerator::VisitCall(Call* expr) { |
1422 #ifdef DEBUG | 1422 #ifdef DEBUG |
1423 // We want to verify that RecordJSReturnSite gets called on all paths | 1423 // We want to verify that RecordJSReturnSite gets called on all paths |
1424 // through this function. Avoid early returns. | 1424 // through this function. Avoid early returns. |
1425 expr->return_is_recorded_ = false; | 1425 expr->return_is_recorded_ = false; |
1426 #endif | 1426 #endif |
1427 | 1427 |
1428 Comment cmnt(masm_, "[ Call"); | 1428 Comment cmnt(masm_, (expr->tail_call_mode() == TailCallMode::kAllow) |
| 1429 ? "[ TailCall" |
| 1430 : "[ Call"); |
1429 Expression* callee = expr->expression(); | 1431 Expression* callee = expr->expression(); |
1430 Call::CallType call_type = expr->GetCallType(isolate()); | 1432 Call::CallType call_type = expr->GetCallType(isolate()); |
1431 | 1433 |
1432 switch (call_type) { | 1434 switch (call_type) { |
1433 case Call::POSSIBLY_EVAL_CALL: | 1435 case Call::POSSIBLY_EVAL_CALL: |
1434 EmitPossiblyEvalCall(expr); | 1436 EmitPossiblyEvalCall(expr); |
1435 break; | 1437 break; |
1436 case Call::GLOBAL_CALL: | 1438 case Call::GLOBAL_CALL: |
1437 EmitCallWithLoadIC(expr); | 1439 EmitCallWithLoadIC(expr); |
1438 break; | 1440 break; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1735 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1737 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
1736 var->initializer_position() >= proxy->position(); | 1738 var->initializer_position() >= proxy->position(); |
1737 } | 1739 } |
1738 | 1740 |
1739 | 1741 |
1740 #undef __ | 1742 #undef __ |
1741 | 1743 |
1742 | 1744 |
1743 } // namespace internal | 1745 } // namespace internal |
1744 } // namespace v8 | 1746 } // namespace v8 |
OLD | NEW |