OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 void Move(Expression::Context destination, Literal* source); | 56 void Move(Expression::Context destination, Literal* source); |
57 | 57 |
58 // Drop the TOS, and store source to destination. | 58 // Drop the TOS, and store source to destination. |
59 // If destination is TOS, just overwrite TOS with source. | 59 // If destination is TOS, just overwrite TOS with source. |
60 void DropAndMove(Expression::Context destination, Register source); | 60 void DropAndMove(Expression::Context destination, Register source); |
61 | 61 |
62 void VisitDeclarations(ZoneList<Declaration*>* declarations); | 62 void VisitDeclarations(ZoneList<Declaration*>* declarations); |
63 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun); | 63 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun); |
64 void DeclareGlobals(Handle<FixedArray> pairs); | 64 void DeclareGlobals(Handle<FixedArray> pairs); |
65 | 65 |
| 66 void EmitCallWithStub(Call* expr); |
| 67 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info); |
| 68 |
66 void SetFunctionPosition(FunctionLiteral* fun); | 69 void SetFunctionPosition(FunctionLiteral* fun); |
67 void SetReturnPosition(FunctionLiteral* fun); | 70 void SetReturnPosition(FunctionLiteral* fun); |
68 void SetStatementPosition(Statement* stmt); | 71 void SetStatementPosition(Statement* stmt); |
69 void SetSourcePosition(int pos); | 72 void SetSourcePosition(int pos); |
70 | 73 |
71 // AST node visit functions. | 74 // AST node visit functions. |
72 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 75 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
73 AST_NODE_LIST(DECLARE_VISIT) | 76 AST_NODE_LIST(DECLARE_VISIT) |
74 #undef DECLARE_VISIT | 77 #undef DECLARE_VISIT |
75 | 78 |
76 // Handles the shortcutted logical binary operations in VisitBinaryOperation. | 79 // Handles the shortcutted logical binary operations in VisitBinaryOperation. |
77 void EmitLogicalOperation(BinaryOperation* expr); | 80 void EmitLogicalOperation(BinaryOperation* expr); |
78 | 81 |
79 MacroAssembler* masm_; | 82 MacroAssembler* masm_; |
80 FunctionLiteral* function_; | 83 FunctionLiteral* function_; |
81 Handle<Script> script_; | 84 Handle<Script> script_; |
82 bool is_eval_; | 85 bool is_eval_; |
| 86 Label return_label_; |
83 | 87 |
84 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); | 88 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); |
85 }; | 89 }; |
86 | 90 |
87 | 91 |
88 } } // namespace v8::internal | 92 } } // namespace v8::internal |
89 | 93 |
90 #endif // V8_FAST_CODEGEN_H_ | 94 #endif // V8_FAST_CODEGEN_H_ |
OLD | NEW |