| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 void VisitDeclarations(ZoneList<Declaration*>* declarations); | 71 void VisitDeclarations(ZoneList<Declaration*>* declarations); |
| 72 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun); | 72 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun); |
| 73 void DeclareGlobals(Handle<FixedArray> pairs); | 73 void DeclareGlobals(Handle<FixedArray> pairs); |
| 74 | 74 |
| 75 void EmitCallWithStub(Call* expr); | 75 void EmitCallWithStub(Call* expr); |
| 76 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info); | 76 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info); |
| 77 | 77 |
| 78 // Platform-specific support for compiling assignments. | 78 // Platform-specific support for compiling assignments. |
| 79 | 79 |
| 80 // Complete a variable assignment. The right-hand-side value are expected | 80 // Complete a variable assignment. The right-hand-side value is expected |
| 81 // on top of the stack. | 81 // on top of the stack. |
| 82 void EmitVariableAssignment(Expression::Context context, Variable* var); | 82 void EmitVariableAssignment(Assignment* expr); |
| 83 | 83 |
| 84 // Complete a named property assignment. The receiver and right-hand-side | 84 // Complete a named property assignment. The receiver and right-hand-side |
| 85 // value are expected on top of the stack. | 85 // value are expected on top of the stack. |
| 86 void EmitNamedPropertyAssignment(Expression::Context context, | 86 void EmitNamedPropertyAssignment(Assignment* expr); |
| 87 Handle<Object> name); | |
| 88 | 87 |
| 89 // Complete a keyed property assignment. The reciever, key, and | 88 // Complete a keyed property assignment. The reciever, key, and |
| 90 // right-hand-side value are expected on top of the stack. | 89 // right-hand-side value are expected on top of the stack. |
| 91 void EmitKeyedPropertyAssignment(Expression::Context context); | 90 void EmitKeyedPropertyAssignment(Assignment* expr); |
| 92 | 91 |
| 93 void SetFunctionPosition(FunctionLiteral* fun); | 92 void SetFunctionPosition(FunctionLiteral* fun); |
| 94 void SetReturnPosition(FunctionLiteral* fun); | 93 void SetReturnPosition(FunctionLiteral* fun); |
| 95 void SetStatementPosition(Statement* stmt); | 94 void SetStatementPosition(Statement* stmt); |
| 96 void SetSourcePosition(int pos); | 95 void SetSourcePosition(int pos); |
| 97 | 96 |
| 98 // AST node visit functions. | 97 // AST node visit functions. |
| 99 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 98 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
| 100 AST_NODE_LIST(DECLARE_VISIT) | 99 AST_NODE_LIST(DECLARE_VISIT) |
| 101 #undef DECLARE_VISIT | 100 #undef DECLARE_VISIT |
| (...skipping 10 matching lines...) Expand all Loading... |
| 112 Label* true_label_; | 111 Label* true_label_; |
| 113 Label* false_label_; | 112 Label* false_label_; |
| 114 | 113 |
| 115 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); | 114 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); |
| 116 }; | 115 }; |
| 117 | 116 |
| 118 | 117 |
| 119 } } // namespace v8::internal | 118 } } // namespace v8::internal |
| 120 | 119 |
| 121 #endif // V8_FAST_CODEGEN_H_ | 120 #endif // V8_FAST_CODEGEN_H_ |
| OLD | NEW |