| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_CODEGEN_H_ | 5 #ifndef V8_CODEGEN_H_ |
| 6 #define V8_CODEGEN_H_ | 6 #define V8_CODEGEN_H_ |
| 7 | 7 |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/runtime/runtime.h" | 9 #include "src/runtime/runtime.h" |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #include "src/x87/codegen-x87.h" // NOLINT | 62 #include "src/x87/codegen-x87.h" // NOLINT |
| 63 #else | 63 #else |
| 64 #error Unsupported target architecture. | 64 #error Unsupported target architecture. |
| 65 #endif | 65 #endif |
| 66 | 66 |
| 67 namespace v8 { | 67 namespace v8 { |
| 68 namespace internal { | 68 namespace internal { |
| 69 | 69 |
| 70 | 70 |
| 71 class CompilationInfo; | 71 class CompilationInfo; |
| 72 class EhFrameWriter; | 72 |
| 73 | 73 |
| 74 class CodeGenerator { | 74 class CodeGenerator { |
| 75 public: | 75 public: |
| 76 // Printing of AST, etc. as requested by flags. | 76 // Printing of AST, etc. as requested by flags. |
| 77 static void MakeCodePrologue(CompilationInfo* info, const char* kind); | 77 static void MakeCodePrologue(CompilationInfo* info, const char* kind); |
| 78 | 78 |
| 79 // Allocate and install the code. | 79 // Allocate and install the code. |
| 80 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, | 80 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, |
| 81 EhFrameWriter* unwinding, | |
| 82 CompilationInfo* info); | 81 CompilationInfo* info); |
| 83 | 82 |
| 84 // Print the code after compiling it. | 83 // Print the code after compiling it. |
| 85 static void PrintCode(Handle<Code> code, CompilationInfo* info); | 84 static void PrintCode(Handle<Code> code, CompilationInfo* info); |
| 86 | 85 |
| 87 private: | 86 private: |
| 88 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 87 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 89 }; | 88 }; |
| 90 | 89 |
| 91 | 90 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 #ifdef V8_TARGET_ARCH_ARM64 | 163 #ifdef V8_TARGET_ARCH_ARM64 |
| 165 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; | 164 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; |
| 166 #endif | 165 #endif |
| 167 #endif | 166 #endif |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 } // namespace internal | 169 } // namespace internal |
| 171 } // namespace v8 | 170 } // namespace v8 |
| 172 | 171 |
| 173 #endif // V8_CODEGEN_H_ | 172 #endif // V8_CODEGEN_H_ |
| OLD | NEW |