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

Side by Side Diff: src/x64/codegen-x64.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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« src/compiler.h ('K') | « src/v8-counters.h ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698