OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
11 #include "src/scopes.h" | 11 #include "src/scopes.h" |
12 #include "src/x64/assembler-x64.h" | 12 #include "src/x64/assembler-x64.h" |
13 #include "src/x64/macro-assembler-x64.h" | 13 #include "src/x64/macro-assembler-x64.h" |
14 | 14 |
15 namespace v8 { | 15 namespace v8 { |
16 namespace internal { | 16 namespace internal { |
17 namespace compiler { | 17 namespace compiler { |
18 | 18 |
| 19 #ifndef _WIN64 |
| 20 |
19 #define __ masm()-> | 21 #define __ masm()-> |
20 | 22 |
21 | 23 |
22 // TODO(turbofan): Cleanup these hacks. | 24 // TODO(turbofan): Cleanup these hacks. |
23 enum Immediate64Type { kImm64Value, kImm64Handle, kImm64Reference }; | 25 enum Immediate64Type { kImm64Value, kImm64Handle, kImm64Reference }; |
24 | 26 |
25 | 27 |
26 struct Immediate64 { | 28 struct Immediate64 { |
27 uint64_t value; | 29 uint64_t value; |
28 Handle<Object> handle; | 30 Handle<Object> handle; |
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 bool CodeGenerator::IsNopForSmiCodeInlining(Handle<Code> code, int start_pc, | 976 bool CodeGenerator::IsNopForSmiCodeInlining(Handle<Code> code, int start_pc, |
975 int end_pc) { | 977 int end_pc) { |
976 if (start_pc + 1 != end_pc) { | 978 if (start_pc + 1 != end_pc) { |
977 return false; | 979 return false; |
978 } | 980 } |
979 return *(code->instruction_start() + start_pc) == | 981 return *(code->instruction_start() + start_pc) == |
980 v8::internal::Assembler::kNopByte; | 982 v8::internal::Assembler::kNopByte; |
981 } | 983 } |
982 | 984 |
983 #endif | 985 #endif |
| 986 |
| 987 #endif |
984 } | 988 } |
985 } | 989 } |
986 } // namespace v8::internal::compiler | 990 } // namespace v8::internal::compiler |
OLD | NEW |