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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 class CompilationInfo; | 69 class CompilationInfo; |
70 | 70 |
71 | 71 |
72 class CodeGenerator { | 72 class CodeGenerator { |
73 public: | 73 public: |
74 // Printing of AST, etc. as requested by flags. | 74 // Printing of AST, etc. as requested by flags. |
75 static void MakeCodePrologue(CompilationInfo* info, const char* kind); | 75 static void MakeCodePrologue(CompilationInfo* info, const char* kind); |
76 | 76 |
77 // Allocate and install the code. | 77 // Allocate and install the code. |
78 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, | 78 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, |
79 Code::Flags flags, | |
80 CompilationInfo* info); | 79 CompilationInfo* info); |
81 | 80 |
82 // Print the code after compiling it. | 81 // Print the code after compiling it. |
83 static void PrintCode(Handle<Code> code, CompilationInfo* info); | 82 static void PrintCode(Handle<Code> code, CompilationInfo* info); |
84 | 83 |
85 private: | 84 private: |
86 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 85 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
87 }; | 86 }; |
88 | 87 |
89 | 88 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 #ifdef DEBUG | 166 #ifdef DEBUG |
168 #ifdef V8_TARGET_ARCH_ARM64 | 167 #ifdef V8_TARGET_ARCH_ARM64 |
169 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; | 168 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; |
170 #endif | 169 #endif |
171 #endif | 170 #endif |
172 }; | 171 }; |
173 | 172 |
174 } } // namespace v8::internal | 173 } } // namespace v8::internal |
175 | 174 |
176 #endif // V8_CODEGEN_H_ | 175 #endif // V8_CODEGEN_H_ |
OLD | NEW |