| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 24 matching lines...) Expand all Loading... |
| 35 namespace internal { | 35 namespace internal { |
| 36 | 36 |
| 37 // Forward declarations | 37 // Forward declarations |
| 38 class CompilationInfo; | 38 class CompilationInfo; |
| 39 | 39 |
| 40 // ------------------------------------------------------------------------- | 40 // ------------------------------------------------------------------------- |
| 41 // CodeGenerator | 41 // CodeGenerator |
| 42 | 42 |
| 43 class CodeGenerator: public AstVisitor { | 43 class CodeGenerator: public AstVisitor { |
| 44 public: | 44 public: |
| 45 explicit CodeGenerator(Isolate* isolate) { | 45 explicit CodeGenerator(Zone* zone) { |
| 46 InitializeAstVisitor(isolate); | 46 InitializeAstVisitor(zone); |
| 47 } | 47 } |
| 48 | 48 |
| 49 static bool MakeCode(CompilationInfo* info); | 49 static bool MakeCode(CompilationInfo* info); |
| 50 | 50 |
| 51 // Printing of AST, etc. as requested by flags. | 51 // Printing of AST, etc. as requested by flags. |
| 52 static void MakeCodePrologue(CompilationInfo* info, const char* kind); | 52 static void MakeCodePrologue(CompilationInfo* info, const char* kind); |
| 53 | 53 |
| 54 // Allocate and install the code. | 54 // Allocate and install the code. |
| 55 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, | 55 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, |
| 56 Code::Flags flags, | 56 Code::Flags flags, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 Register temp2, | 104 Register temp2, |
| 105 Register temp3); | 105 Register temp3); |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); | 108 DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } } // namespace v8::internal | 111 } } // namespace v8::internal |
| 112 | 112 |
| 113 #endif // V8_A64_CODEGEN_A64_H_ | 113 #endif // V8_A64_CODEGEN_A64_H_ |
| OLD | NEW |