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