| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // CodeGenerator | 137 // CodeGenerator |
| 138 | 138 |
| 139 class CodeGenerator: public AstVisitor { | 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 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 147 static bool ShouldGenerateLog(Expression* type); | 148 static bool ShouldGenerateLog(Expression* type); |
| 149 #endif |
| 148 | 150 |
| 149 static void SetFunctionInfo(Handle<JSFunction> fun, | 151 static void SetFunctionInfo(Handle<JSFunction> fun, |
| 150 int length, | 152 int length, |
| 151 int function_token_position, | 153 int function_token_position, |
| 152 int start_position, | 154 int start_position, |
| 153 int end_position, | 155 int end_position, |
| 154 bool is_expression, | 156 bool is_expression, |
| 155 bool is_toplevel, | 157 bool is_toplevel, |
| 156 Handle<Script> script); | 158 Handle<Script> script); |
| 157 | 159 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 friend class VirtualFrame; | 377 friend class VirtualFrame; |
| 376 friend class JumpTarget; | 378 friend class JumpTarget; |
| 377 friend class Reference; | 379 friend class Reference; |
| 378 | 380 |
| 379 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 381 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 380 }; | 382 }; |
| 381 | 383 |
| 382 } } // namespace v8::internal | 384 } } // namespace v8::internal |
| 383 | 385 |
| 384 #endif // V8_CODEGEN_ARM_H_ | 386 #endif // V8_CODEGEN_ARM_H_ |
| OLD | NEW |