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_H_ | 5 #ifndef V8_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 // Emit code to pop values from the stack associated with nested statements | 489 // Emit code to pop values from the stack associated with nested statements |
490 // like try/catch, try/finally, etc, running the finallies and unwinding the | 490 // like try/catch, try/finally, etc, running the finallies and unwinding the |
491 // handlers as needed. | 491 // handlers as needed. |
492 void EmitUnwindBeforeReturn(); | 492 void EmitUnwindBeforeReturn(); |
493 | 493 |
494 // Platform-specific return sequence | 494 // Platform-specific return sequence |
495 void EmitReturnSequence(); | 495 void EmitReturnSequence(); |
496 | 496 |
497 // Platform-specific code sequences for calls | 497 // Platform-specific code sequences for calls |
498 void EmitCall(Call* expr, CallICState::CallType = CallICState::FUNCTION); | 498 void EmitCall(Call* expr, CallICState::CallType = CallICState::FUNCTION); |
| 499 void EmitSuperConstructorCall(Call* expr); |
499 void EmitCallWithLoadIC(Call* expr); | 500 void EmitCallWithLoadIC(Call* expr); |
500 void EmitSuperCallWithLoadIC(Call* expr); | 501 void EmitSuperCallWithLoadIC(Call* expr); |
501 void EmitKeyedCallWithLoadIC(Call* expr, Expression* key); | 502 void EmitKeyedCallWithLoadIC(Call* expr, Expression* key); |
502 void EmitKeyedSuperCallWithLoadIC(Call* expr); | 503 void EmitKeyedSuperCallWithLoadIC(Call* expr); |
503 | 504 |
504 // Platform-specific code for inline runtime calls. | 505 // Platform-specific code for inline runtime calls. |
505 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); | 506 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); |
506 | 507 |
507 void EmitInlineRuntimeCall(CallRuntime* expr); | 508 void EmitInlineRuntimeCall(CallRuntime* expr); |
508 | 509 |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 | 1049 |
1049 Address start_; | 1050 Address start_; |
1050 Address instruction_start_; | 1051 Address instruction_start_; |
1051 uint32_t length_; | 1052 uint32_t length_; |
1052 }; | 1053 }; |
1053 | 1054 |
1054 | 1055 |
1055 } } // namespace v8::internal | 1056 } } // namespace v8::internal |
1056 | 1057 |
1057 #endif // V8_FULL_CODEGEN_H_ | 1058 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |