| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // Record the OSR AST id corresponding to a stack check in the code. | 388 // Record the OSR AST id corresponding to a stack check in the code. |
| 389 void RecordStackCheck(int osr_ast_id); | 389 void RecordStackCheck(int osr_ast_id); |
| 390 // Emit a table of stack check ids and pcs into the code stream. Return | 390 // Emit a table of stack check ids and pcs into the code stream. Return |
| 391 // the offset of the start of the table. | 391 // the offset of the start of the table. |
| 392 unsigned EmitStackCheckTable(); | 392 unsigned EmitStackCheckTable(); |
| 393 | 393 |
| 394 // Platform-specific return sequence | 394 // Platform-specific return sequence |
| 395 void EmitReturnSequence(); | 395 void EmitReturnSequence(); |
| 396 | 396 |
| 397 // Platform-specific code sequences for calls | 397 // Platform-specific code sequences for calls |
| 398 void EmitCallWithStub(Call* expr); | 398 void EmitCallWithStub(Call* expr, CallFunctionFlags flags); |
| 399 void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode); | 399 void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode); |
| 400 void EmitKeyedCallWithIC(Call* expr, Expression* key, RelocInfo::Mode mode); | 400 void EmitKeyedCallWithIC(Call* expr, Expression* key, RelocInfo::Mode mode); |
| 401 | 401 |
| 402 // Platform-specific code for inline runtime calls. | 402 // Platform-specific code for inline runtime calls. |
| 403 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); | 403 InlineFunctionGenerator FindInlineFunctionGenerator(Runtime::FunctionId id); |
| 404 | 404 |
| 405 void EmitInlineRuntimeCall(CallRuntime* expr); | 405 void EmitInlineRuntimeCall(CallRuntime* expr); |
| 406 | 406 |
| 407 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ | 407 #define EMIT_INLINE_RUNTIME_CALL(name, x, y) \ |
| 408 void Emit##name(ZoneList<Expression*>* arguments); | 408 void Emit##name(ZoneList<Expression*>* arguments); |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 | 749 |
| 750 friend class NestedStatement; | 750 friend class NestedStatement; |
| 751 | 751 |
| 752 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 752 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
| 753 }; | 753 }; |
| 754 | 754 |
| 755 | 755 |
| 756 } } // namespace v8::internal | 756 } } // namespace v8::internal |
| 757 | 757 |
| 758 #endif // V8_FULL_CODEGEN_H_ | 758 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |