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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 // Emit code to pop values from the stack associated with nested statements | 473 // Emit code to pop values from the stack associated with nested statements |
474 // like try/catch, try/finally, etc, running the finallies and unwinding the | 474 // like try/catch, try/finally, etc, running the finallies and unwinding the |
475 // handlers as needed. | 475 // handlers as needed. |
476 void EmitUnwindBeforeReturn(); | 476 void EmitUnwindBeforeReturn(); |
477 | 477 |
478 // Platform-specific return sequence | 478 // Platform-specific return sequence |
479 void EmitReturnSequence(); | 479 void EmitReturnSequence(); |
480 | 480 |
481 // Platform-specific code sequences for calls | 481 // Platform-specific code sequences for calls |
482 void EmitCallWithStub(Call* expr); | 482 void EmitCallWithStub(Call* expr); |
483 void EmitCallWithIC(Call* expr, Handle<Object> name, ContextualMode mode); | 483 void EmitCallWithIC(Call* expr); |
484 void EmitKeyedCallWithIC(Call* expr, Expression* key); | 484 void EmitKeyedCallWithIC(Call* expr, Expression* key); |
485 | 485 |
486 // Platform-specific code for inline runtime calls. | 486 // Platform-specific code for inline runtime calls. |
487 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); | 487 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); |
488 | 488 |
489 void EmitInlineRuntimeCall(CallRuntime* expr); | 489 void EmitInlineRuntimeCall(CallRuntime* expr); |
490 | 490 |
491 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ | 491 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ |
492 void Emit##name(CallRuntime* expr); | 492 void Emit##name(CallRuntime* expr); |
493 INLINE_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) | 493 INLINE_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 | 963 |
964 Address start_; | 964 Address start_; |
965 Address instruction_start_; | 965 Address instruction_start_; |
966 uint32_t length_; | 966 uint32_t length_; |
967 }; | 967 }; |
968 | 968 |
969 | 969 |
970 } } // namespace v8::internal | 970 } } // namespace v8::internal |
971 | 971 |
972 #endif // V8_FULL_CODEGEN_H_ | 972 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |