Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: src/ia32/codegen-ia32.h

Issue 3561012: More refactoring of class Compiler's interface. (Closed)
Patch Set: Reindent some code, change some copyright dates. Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 EAGER_ARGUMENTS_ALLOCATION, 293 EAGER_ARGUMENTS_ALLOCATION,
294 LAZY_ARGUMENTS_ALLOCATION 294 LAZY_ARGUMENTS_ALLOCATION
295 }; 295 };
296 296
297 297
298 // ------------------------------------------------------------------------- 298 // -------------------------------------------------------------------------
299 // CodeGenerator 299 // CodeGenerator
300 300
301 class CodeGenerator: public AstVisitor { 301 class CodeGenerator: public AstVisitor {
302 public: 302 public:
303 // Takes a function literal, generates code for it. This function should only 303 static bool MakeCode(CompilationInfo* info);
304 // be called by compiler.cc.
305 static Handle<Code> MakeCode(CompilationInfo* info);
306 304
307 // Printing of AST, etc. as requested by flags. 305 // Printing of AST, etc. as requested by flags.
308 static void MakeCodePrologue(CompilationInfo* info); 306 static void MakeCodePrologue(CompilationInfo* info);
309 307
310 // Allocate and install the code. 308 // Allocate and install the code.
311 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, 309 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm,
312 Code::Flags flags, 310 Code::Flags flags,
313 CompilationInfo* info); 311 CompilationInfo* info);
314 312
315 #ifdef ENABLE_LOGGING_AND_PROFILING 313 #ifdef ENABLE_LOGGING_AND_PROFILING
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 798
801 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc 799 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc
802 800
803 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 801 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
804 }; 802 };
805 803
806 804
807 } } // namespace v8::internal 805 } } // namespace v8::internal
808 806
809 #endif // V8_IA32_CODEGEN_IA32_H_ 807 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« src/compiler.h ('K') | « src/full-codegen.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698