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

Side by Side Diff: src/arm/codegen-arm.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
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | src/compiler.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 NON_MARKING_NOP = 0, 200 NON_MARKING_NOP = 0,
201 PROPERTY_ACCESS_INLINED 201 PROPERTY_ACCESS_INLINED
202 }; 202 };
203 203
204 204
205 // ------------------------------------------------------------------------- 205 // -------------------------------------------------------------------------
206 // CodeGenerator 206 // CodeGenerator
207 207
208 class CodeGenerator: public AstVisitor { 208 class CodeGenerator: public AstVisitor {
209 public: 209 public:
210 // Takes a function literal, generates code for it. This function should only 210 static bool MakeCode(CompilationInfo* info);
211 // be called by compiler.cc.
212 static Handle<Code> MakeCode(CompilationInfo* info);
213 211
214 // Printing of AST, etc. as requested by flags. 212 // Printing of AST, etc. as requested by flags.
215 static void MakeCodePrologue(CompilationInfo* info); 213 static void MakeCodePrologue(CompilationInfo* info);
216 214
217 // Allocate and install the code. 215 // Allocate and install the code.
218 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, 216 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm,
219 Code::Flags flags, 217 Code::Flags flags,
220 CompilationInfo* info); 218 CompilationInfo* info);
221 219
222 #ifdef ENABLE_LOGGING_AND_PROFILING 220 #ifdef ENABLE_LOGGING_AND_PROFILING
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 friend class FullCodeGenerator; 602 friend class FullCodeGenerator;
605 friend class FullCodeGenSyntaxChecker; 603 friend class FullCodeGenSyntaxChecker;
606 604
607 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 605 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
608 }; 606 };
609 607
610 608
611 } } // namespace v8::internal 609 } } // namespace v8::internal
612 610
613 #endif // V8_ARM_CODEGEN_ARM_H_ 611 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | src/compiler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698