| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 TypeofState typeof_state_; | 129 TypeofState typeof_state_; |
| 130 JumpTarget* true_target_; | 130 JumpTarget* true_target_; |
| 131 JumpTarget* false_target_; | 131 JumpTarget* false_target_; |
| 132 CodeGenState* previous_; | 132 CodeGenState* previous_; |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 | 135 |
| 136 // ------------------------------------------------------------------------- | 136 // ------------------------------------------------------------------------- |
| 137 // CodeGenerator | 137 // CodeGenerator |
| 138 | 138 |
| 139 class CodeGenerator: public Visitor { | 139 class CodeGenerator: public AstVisitor { |
| 140 public: | 140 public: |
| 141 // Takes a function literal, generates code for it. This function should only | 141 // Takes a function literal, generates code for it. This function should only |
| 142 // be called by compiler.cc. | 142 // be called by compiler.cc. |
| 143 static Handle<Code> MakeCode(FunctionLiteral* fun, | 143 static Handle<Code> MakeCode(FunctionLiteral* fun, |
| 144 Handle<Script> script, | 144 Handle<Script> script, |
| 145 bool is_eval); | 145 bool is_eval); |
| 146 | 146 |
| 147 static void SetFunctionInfo(Handle<JSFunction> fun, | 147 static void SetFunctionInfo(Handle<JSFunction> fun, |
| 148 int length, | 148 int length, |
| 149 int function_token_position, | 149 int function_token_position, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 friend class VirtualFrame; | 370 friend class VirtualFrame; |
| 371 friend class JumpTarget; | 371 friend class JumpTarget; |
| 372 friend class Reference; | 372 friend class Reference; |
| 373 | 373 |
| 374 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 374 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 375 }; | 375 }; |
| 376 | 376 |
| 377 } } // namespace v8::internal | 377 } } // namespace v8::internal |
| 378 | 378 |
| 379 #endif // V8_CODEGEN_ARM_H_ | 379 #endif // V8_CODEGEN_ARM_H_ |
| OLD | NEW |