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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 | 468 |
469 // Emit code to pop values from the stack associated with nested statements | 469 // Emit code to pop values from the stack associated with nested statements |
470 // like try/catch, try/finally, etc, running the finallies and unwinding the | 470 // like try/catch, try/finally, etc, running the finallies and unwinding the |
471 // handlers as needed. | 471 // handlers as needed. |
472 void EmitUnwindBeforeReturn(); | 472 void EmitUnwindBeforeReturn(); |
473 | 473 |
474 // Platform-specific return sequence | 474 // Platform-specific return sequence |
475 void EmitReturnSequence(); | 475 void EmitReturnSequence(); |
476 | 476 |
477 // Platform-specific code sequences for calls | 477 // Platform-specific code sequences for calls |
478 void EmitCall(Call* expr, CallIC::CallType = CallIC::FUNCTION); | 478 void EmitCall(Call* expr, CallICState::CallType = CallICState::FUNCTION); |
479 void EmitCallWithLoadIC(Call* expr); | 479 void EmitCallWithLoadIC(Call* expr); |
480 void EmitKeyedCallWithLoadIC(Call* expr, Expression* key); | 480 void EmitKeyedCallWithLoadIC(Call* expr, Expression* key); |
481 | 481 |
482 // Platform-specific code for inline runtime calls. | 482 // Platform-specific code for inline runtime calls. |
483 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); | 483 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); |
484 | 484 |
485 void EmitInlineRuntimeCall(CallRuntime* expr); | 485 void EmitInlineRuntimeCall(CallRuntime* expr); |
486 | 486 |
487 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ | 487 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ |
488 void Emit##name(CallRuntime* expr); | 488 void Emit##name(CallRuntime* expr); |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 | 942 |
943 Address start_; | 943 Address start_; |
944 Address instruction_start_; | 944 Address instruction_start_; |
945 uint32_t length_; | 945 uint32_t length_; |
946 }; | 946 }; |
947 | 947 |
948 | 948 |
949 } } // namespace v8::internal | 949 } } // namespace v8::internal |
950 | 950 |
951 #endif // V8_FULL_CODEGEN_H_ | 951 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |