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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void SetFunctionPosition(FunctionLiteral* fun); | 71 void SetFunctionPosition(FunctionLiteral* fun); |
72 void SetReturnPosition(FunctionLiteral* fun); | 72 void SetReturnPosition(FunctionLiteral* fun); |
73 void SetStatementPosition(Statement* stmt); | 73 void SetStatementPosition(Statement* stmt); |
74 void SetSourcePosition(int pos); | 74 void SetSourcePosition(int pos); |
75 | 75 |
76 // AST node visit functions. | 76 // AST node visit functions. |
77 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 77 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
78 AST_NODE_LIST(DECLARE_VISIT) | 78 AST_NODE_LIST(DECLARE_VISIT) |
79 #undef DECLARE_VISIT | 79 #undef DECLARE_VISIT |
80 | 80 |
| 81 // Handles the shortcutted logical binary operations in VisitBinaryOperation. |
| 82 void EmitLogicalOperation(BinaryOperation* expr); |
| 83 |
81 MacroAssembler* masm_; | 84 MacroAssembler* masm_; |
82 FunctionLiteral* function_; | 85 FunctionLiteral* function_; |
83 Handle<Script> script_; | 86 Handle<Script> script_; |
84 bool is_eval_; | 87 bool is_eval_; |
85 | 88 |
86 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); | 89 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); |
87 }; | 90 }; |
88 | 91 |
89 | 92 |
90 } } // namespace v8::internal | 93 } } // namespace v8::internal |
91 | 94 |
92 #endif // V8_FAST_CODEGEN_H_ | 95 #endif // V8_FAST_CODEGEN_H_ |
OLD | NEW |