| 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 "code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "runtime.h" | 9 #include "src/runtime.h" |
| 10 | 10 |
| 11 // Include the declaration of the architecture defined class CodeGenerator. | 11 // Include the declaration of the architecture defined class CodeGenerator. |
| 12 // The contract to the shared code is that the the CodeGenerator is a subclass | 12 // The contract to the shared code is that the the CodeGenerator is a subclass |
| 13 // of Visitor and that the following methods are available publicly: | 13 // of Visitor and that the following methods are available publicly: |
| 14 // MakeCode | 14 // MakeCode |
| 15 // MakeCodePrologue | 15 // MakeCodePrologue |
| 16 // MakeCodeEpilogue | 16 // MakeCodeEpilogue |
| 17 // masm | 17 // masm |
| 18 // frame | 18 // frame |
| 19 // script | 19 // script |
| (...skipping 19 matching lines...) Expand all Loading... |
| 39 // AnalyzeCondition | 39 // AnalyzeCondition |
| 40 // CodeForFunctionPosition | 40 // CodeForFunctionPosition |
| 41 // CodeForReturnPosition | 41 // CodeForReturnPosition |
| 42 // CodeForStatementPosition | 42 // CodeForStatementPosition |
| 43 // CodeForDoWhileConditionPosition | 43 // CodeForDoWhileConditionPosition |
| 44 // CodeForSourcePosition | 44 // CodeForSourcePosition |
| 45 | 45 |
| 46 enum TypeofState { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; | 46 enum TypeofState { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF }; |
| 47 | 47 |
| 48 #if V8_TARGET_ARCH_IA32 | 48 #if V8_TARGET_ARCH_IA32 |
| 49 #include "ia32/codegen-ia32.h" | 49 #include "src/ia32/codegen-ia32.h" |
| 50 #elif V8_TARGET_ARCH_X64 | 50 #elif V8_TARGET_ARCH_X64 |
| 51 #include "x64/codegen-x64.h" | 51 #include "src/x64/codegen-x64.h" |
| 52 #elif V8_TARGET_ARCH_ARM64 | 52 #elif V8_TARGET_ARCH_ARM64 |
| 53 #include "arm64/codegen-arm64.h" | 53 #include "src/arm64/codegen-arm64.h" |
| 54 #elif V8_TARGET_ARCH_ARM | 54 #elif V8_TARGET_ARCH_ARM |
| 55 #include "arm/codegen-arm.h" | 55 #include "src/arm/codegen-arm.h" |
| 56 #elif V8_TARGET_ARCH_MIPS | 56 #elif V8_TARGET_ARCH_MIPS |
| 57 #include "mips/codegen-mips.h" | 57 #include "src/mips/codegen-mips.h" |
| 58 #elif V8_TARGET_ARCH_X87 | 58 #elif V8_TARGET_ARCH_X87 |
| 59 #include "x87/codegen-x87.h" | 59 #include "src/x87/codegen-x87.h" |
| 60 #else | 60 #else |
| 61 #error Unsupported target architecture. | 61 #error Unsupported target architecture. |
| 62 #endif | 62 #endif |
| 63 | 63 |
| 64 namespace v8 { | 64 namespace v8 { |
| 65 namespace internal { | 65 namespace internal { |
| 66 | 66 |
| 67 | 67 |
| 68 class CompilationInfo; | 68 class CompilationInfo; |
| 69 | 69 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 #ifdef DEBUG | 155 #ifdef DEBUG |
| 156 #ifdef V8_TARGET_ARCH_ARM64 | 156 #ifdef V8_TARGET_ARCH_ARM64 |
| 157 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; | 157 const EmbeddedVector<byte, kNoCodeAgeSequenceLength> old_sequence_; |
| 158 #endif | 158 #endif |
| 159 #endif | 159 #endif |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } } // namespace v8::internal | 162 } } // namespace v8::internal |
| 163 | 163 |
| 164 #endif // V8_CODEGEN_H_ | 164 #endif // V8_CODEGEN_H_ |
| OLD | NEW |