OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 389 matching lines...) Loading... |
400 // Emit a table of stack check ids and pcs into the code stream. Return | 400 // Emit a table of stack check ids and pcs into the code stream. Return |
401 // the offset of the start of the table. | 401 // the offset of the start of the table. |
402 unsigned EmitStackCheckTable(); | 402 unsigned EmitStackCheckTable(); |
403 | 403 |
404 // Platform-specific return sequence | 404 // Platform-specific return sequence |
405 void EmitReturnSequence(); | 405 void EmitReturnSequence(); |
406 | 406 |
407 // Platform-specific code sequences for calls | 407 // Platform-specific code sequences for calls |
408 void EmitCallWithStub(Call* expr, CallFunctionFlags flags); | 408 void EmitCallWithStub(Call* expr, CallFunctionFlags flags); |
409 void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode); | 409 void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode); |
410 void EmitKeyedCallWithIC(Call* expr, Expression* key, RelocInfo::Mode mode); | 410 void EmitKeyedCallWithIC(Call* expr, Expression* key); |
411 | 411 |
412 // Platform-specific code for inline runtime calls. | 412 // Platform-specific code for inline runtime calls. |
413 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); | 413 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); |
414 | 414 |
415 void EmitInlineRuntimeCall(CallRuntime* expr); | 415 void EmitInlineRuntimeCall(CallRuntime* expr); |
416 | 416 |
417 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ | 417 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ |
418 void Emit##name(ZoneList<Expression*>* arguments); | 418 void Emit##name(ZoneList<Expression*>* arguments); |
419 INLINE_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) | 419 INLINE_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) |
420 INLINE_RUNTIME_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) | 420 INLINE_RUNTIME_FUNCTION_LIST(EMIT_INLINE_RUNTIME_CALL) |
(...skipping 341 matching lines...) Loading... |
762 | 762 |
763 friend class NestedStatement; | 763 friend class NestedStatement; |
764 | 764 |
765 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 765 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
766 }; | 766 }; |
767 | 767 |
768 | 768 |
769 } } // namespace v8::internal | 769 } } // namespace v8::internal |
770 | 770 |
771 #endif // V8_FULL_CODEGEN_H_ | 771 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |