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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Code::Flags flags, | 81 Code::Flags flags, |
82 CompilationInfo* info); | 82 CompilationInfo* info); |
83 | 83 |
84 // Print the code after compiling it. | 84 // Print the code after compiling it. |
85 static void PrintCode(Handle<Code> code, CompilationInfo* info); | 85 static void PrintCode(Handle<Code> code, CompilationInfo* info); |
86 | 86 |
87 static bool RecordPositions(MacroAssembler* masm, | |
88 int pos, | |
89 bool right_here = false); | |
90 | |
91 private: | 87 private: |
92 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 88 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
93 }; | 89 }; |
94 | 90 |
95 | 91 |
96 // Results of the library implementation of transcendental functions may differ | 92 // Results of the library implementation of transcendental functions may differ |
97 // from the one we use in our generated code. Therefore we use the same | 93 // from the one we use in our generated code. Therefore we use the same |
98 // generated code both in runtime and compiled code. | 94 // generated code both in runtime and compiled code. |
99 typedef double (*UnaryMathFunction)(double x); | 95 typedef double (*UnaryMathFunction)(double x); |
100 | 96 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 #ifdef DEBUG | 169 #ifdef DEBUG |
174 #ifdef V8_TARGET_ARCH_ARM64 | 170 #ifdef V8_TARGET_ARCH_ARM64 |
175 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; | 171 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; |
176 #endif | 172 #endif |
177 #endif | 173 #endif |
178 }; | 174 }; |
179 | 175 |
180 } } // namespace v8::internal | 176 } } // namespace v8::internal |
181 | 177 |
182 #endif // V8_CODEGEN_H_ | 178 #endif // V8_CODEGEN_H_ |
OLD | NEW |