OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 EAGER_ARGUMENTS_ALLOCATION, | 291 EAGER_ARGUMENTS_ALLOCATION, |
292 LAZY_ARGUMENTS_ALLOCATION | 292 LAZY_ARGUMENTS_ALLOCATION |
293 }; | 293 }; |
294 | 294 |
295 | 295 |
296 // ------------------------------------------------------------------------- | 296 // ------------------------------------------------------------------------- |
297 // CodeGenerator | 297 // CodeGenerator |
298 | 298 |
299 class CodeGenerator: public AstVisitor { | 299 class CodeGenerator: public AstVisitor { |
300 public: | 300 public: |
301 // Takes a function literal, generates code for it. This function should only | 301 static bool MakeCode(CompilationInfo* info); |
302 // be called by compiler.cc. | |
303 static Handle<Code> MakeCode(CompilationInfo* info); | |
304 | 302 |
305 // Printing of AST, etc. as requested by flags. | 303 // Printing of AST, etc. as requested by flags. |
306 static void MakeCodePrologue(CompilationInfo* info); | 304 static void MakeCodePrologue(CompilationInfo* info); |
307 | 305 |
308 // Allocate and install the code. | 306 // Allocate and install the code. |
309 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, | 307 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, |
310 Code::Flags flags, | 308 Code::Flags flags, |
311 CompilationInfo* info); | 309 CompilationInfo* info); |
312 | 310 |
313 #ifdef ENABLE_LOGGING_AND_PROFILING | 311 #ifdef ENABLE_LOGGING_AND_PROFILING |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 | 749 |
752 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc | 750 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc |
753 | 751 |
754 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 752 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
755 }; | 753 }; |
756 | 754 |
757 | 755 |
758 } } // namespace v8::internal | 756 } } // namespace v8::internal |
759 | 757 |
760 #endif // V8_X64_CODEGEN_X64_H_ | 758 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |