| 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 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
| 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
| 10 #include "src/ast.h" | 10 #include "src/ast.h" |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 456 |
| 457 // Emit code to pop values from the stack associated with nested statements | 457 // Emit code to pop values from the stack associated with nested statements |
| 458 // like try/catch, try/finally, etc, running the finallies and unwinding the | 458 // like try/catch, try/finally, etc, running the finallies and unwinding the |
| 459 // handlers as needed. | 459 // handlers as needed. |
| 460 void EmitUnwindBeforeReturn(); | 460 void EmitUnwindBeforeReturn(); |
| 461 | 461 |
| 462 // Platform-specific return sequence | 462 // Platform-specific return sequence |
| 463 void EmitReturnSequence(); | 463 void EmitReturnSequence(); |
| 464 | 464 |
| 465 // Platform-specific code sequences for calls | 465 // Platform-specific code sequences for calls |
| 466 void EmitCall(Call* expr); | 466 void EmitCall(Call* expr, ConvertReceiverMode = ConvertReceiverMode::kAny); |
| 467 void EmitSuperConstructorCall(Call* expr); | 467 void EmitSuperConstructorCall(Call* expr); |
| 468 void EmitCallWithLoadIC(Call* expr); | 468 void EmitCallWithLoadIC(Call* expr); |
| 469 void EmitSuperCallWithLoadIC(Call* expr); | 469 void EmitSuperCallWithLoadIC(Call* expr); |
| 470 void EmitKeyedCallWithLoadIC(Call* expr, Expression* key); | 470 void EmitKeyedCallWithLoadIC(Call* expr, Expression* key); |
| 471 void EmitKeyedSuperCallWithLoadIC(Call* expr); | 471 void EmitKeyedSuperCallWithLoadIC(Call* expr); |
| 472 void EmitPossiblyEvalCall(Call* expr); | 472 void EmitPossiblyEvalCall(Call* expr); |
| 473 | 473 |
| 474 #define FOR_EACH_FULL_CODE_INTRINSIC(F) \ | 474 #define FOR_EACH_FULL_CODE_INTRINSIC(F) \ |
| 475 F(IsSmi) \ | 475 F(IsSmi) \ |
| 476 F(IsArray) \ | 476 F(IsArray) \ |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 Address start_; | 1045 Address start_; |
| 1046 Address instruction_start_; | 1046 Address instruction_start_; |
| 1047 uint32_t length_; | 1047 uint32_t length_; |
| 1048 }; | 1048 }; |
| 1049 | 1049 |
| 1050 | 1050 |
| 1051 } // namespace internal | 1051 } // namespace internal |
| 1052 } // namespace v8 | 1052 } // namespace v8 |
| 1053 | 1053 |
| 1054 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1054 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
| OLD | NEW |