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-numbering.h" | 7 #include "src/ast/ast-numbering.h" |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/ast/prettyprinter.h" | 9 #include "src/ast/prettyprinter.h" |
10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1557 #ifdef DEBUG | 1557 #ifdef DEBUG |
1558 // We want to verify that RecordJSReturnSite gets called on all paths | 1558 // We want to verify that RecordJSReturnSite gets called on all paths |
1559 // through this function. Avoid early returns. | 1559 // through this function. Avoid early returns. |
1560 expr->return_is_recorded_ = false; | 1560 expr->return_is_recorded_ = false; |
1561 #endif | 1561 #endif |
1562 | 1562 |
1563 Comment cmnt(masm_, (expr->tail_call_mode() == TailCallMode::kAllow) | 1563 Comment cmnt(masm_, (expr->tail_call_mode() == TailCallMode::kAllow) |
1564 ? "[ TailCall" | 1564 ? "[ TailCall" |
1565 : "[ Call"); | 1565 : "[ Call"); |
1566 Expression* callee = expr->expression(); | 1566 Expression* callee = expr->expression(); |
1567 Call::CallType call_type = expr->GetCallType(isolate()); | 1567 Call::CallType call_type = expr->GetCallType(); |
1568 | 1568 |
1569 switch (call_type) { | 1569 switch (call_type) { |
1570 case Call::POSSIBLY_EVAL_CALL: | 1570 case Call::POSSIBLY_EVAL_CALL: |
1571 EmitPossiblyEvalCall(expr); | 1571 EmitPossiblyEvalCall(expr); |
1572 break; | 1572 break; |
1573 case Call::GLOBAL_CALL: | 1573 case Call::GLOBAL_CALL: |
1574 EmitCallWithLoadIC(expr); | 1574 EmitCallWithLoadIC(expr); |
1575 break; | 1575 break; |
1576 case Call::LOOKUP_SLOT_CALL: | 1576 case Call::LOOKUP_SLOT_CALL: |
1577 // Call to a lookup slot (dynamically introduced variable). | 1577 // Call to a lookup slot (dynamically introduced variable). |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1938 return var->scope()->is_nonlinear() || | 1938 return var->scope()->is_nonlinear() || |
1939 var->initializer_position() >= proxy->position(); | 1939 var->initializer_position() >= proxy->position(); |
1940 } | 1940 } |
1941 | 1941 |
1942 | 1942 |
1943 #undef __ | 1943 #undef __ |
1944 | 1944 |
1945 | 1945 |
1946 } // namespace internal | 1946 } // namespace internal |
1947 } // namespace v8 | 1947 } // namespace v8 |
OLD | NEW |