| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 480 |
| 481 // Emit code to pop values from the stack associated with nested statements | 481 // Emit code to pop values from the stack associated with nested statements |
| 482 // like try/catch, try/finally, etc, running the finallies and unwinding the | 482 // like try/catch, try/finally, etc, running the finallies and unwinding the |
| 483 // handlers as needed. | 483 // handlers as needed. |
| 484 void EmitUnwindBeforeReturn(); | 484 void EmitUnwindBeforeReturn(); |
| 485 | 485 |
| 486 // Platform-specific return sequence | 486 // Platform-specific return sequence |
| 487 void EmitReturnSequence(); | 487 void EmitReturnSequence(); |
| 488 | 488 |
| 489 // Platform-specific code sequences for calls | 489 // Platform-specific code sequences for calls |
| 490 void EmitCallWithStub(Call* expr); | 490 void EmitCall(Call* expr, CallIC::CallType = CallIC::FUNCTION); |
| 491 void EmitCallWithIC(Call* expr); | 491 void EmitCallWithLoadIC(Call* expr); |
| 492 void EmitKeyedCallWithIC(Call* expr, Expression* key); | 492 void EmitKeyedCallWithLoadIC(Call* expr, Expression* key); |
| 493 | 493 |
| 494 // Platform-specific code for inline runtime calls. | 494 // Platform-specific code for inline runtime calls. |
| 495 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); | 495 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); |
| 496 | 496 |
| 497 void EmitInlineRuntimeCall(CallRuntime* expr); | 497 void EmitInlineRuntimeCall(CallRuntime* expr); |
| 498 | 498 |
| 499 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ | 499 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ |
| 500 void Emit##name(CallRuntime* expr); | 500 void Emit##name(CallRuntime* expr); |
| 501 INLINE_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) | 501 INLINE_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) |
| 502 #undef EMIT_INLINE_RUNTIME_CALL | 502 #undef EMIT_INLINE_RUNTIME_CALL |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 | 961 |
| 962 Address start_; | 962 Address start_; |
| 963 Address instruction_start_; | 963 Address instruction_start_; |
| 964 uint32_t length_; | 964 uint32_t length_; |
| 965 }; | 965 }; |
| 966 | 966 |
| 967 | 967 |
| 968 } } // namespace v8::internal | 968 } } // namespace v8::internal |
| 969 | 969 |
| 970 #endif // V8_FULL_CODEGEN_H_ | 970 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |