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 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 } | 1413 } |
1414 | 1414 |
1415 | 1415 |
1416 void FullCodeGenerator::VisitCall(Call* expr) { | 1416 void FullCodeGenerator::VisitCall(Call* expr) { |
1417 #ifdef DEBUG | 1417 #ifdef DEBUG |
1418 // We want to verify that RecordJSReturnSite gets called on all paths | 1418 // We want to verify that RecordJSReturnSite gets called on all paths |
1419 // through this function. Avoid early returns. | 1419 // through this function. Avoid early returns. |
1420 expr->return_is_recorded_ = false; | 1420 expr->return_is_recorded_ = false; |
1421 #endif | 1421 #endif |
1422 | 1422 |
1423 Comment cmnt(masm_, "[ Call"); | 1423 Comment cmnt(masm_, expr->is_tail() ? "[ TailCall" : "[ Call"); |
1424 Expression* callee = expr->expression(); | 1424 Expression* callee = expr->expression(); |
1425 Call::CallType call_type = expr->GetCallType(isolate()); | 1425 Call::CallType call_type = expr->GetCallType(isolate()); |
1426 | 1426 |
1427 switch (call_type) { | 1427 switch (call_type) { |
1428 case Call::POSSIBLY_EVAL_CALL: | 1428 case Call::POSSIBLY_EVAL_CALL: |
1429 EmitPossiblyEvalCall(expr); | 1429 EmitPossiblyEvalCall(expr); |
1430 break; | 1430 break; |
1431 case Call::GLOBAL_CALL: | 1431 case Call::GLOBAL_CALL: |
1432 EmitCallWithLoadIC(expr); | 1432 EmitCallWithLoadIC(expr); |
1433 break; | 1433 break; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1730 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1730 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
1731 var->initializer_position() >= proxy->position(); | 1731 var->initializer_position() >= proxy->position(); |
1732 } | 1732 } |
1733 | 1733 |
1734 | 1734 |
1735 #undef __ | 1735 #undef __ |
1736 | 1736 |
1737 | 1737 |
1738 } // namespace internal | 1738 } // namespace internal |
1739 } // namespace v8 | 1739 } // namespace v8 |
OLD | NEW |