OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/ic/access-compiler.h" | 7 #include "src/ic/access-compiler.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 13 matching lines...) Expand all Loading... |
24 Register name = LoadDescriptor::NameRegister(); | 24 Register name = LoadDescriptor::NameRegister(); |
25 static Register registers[] = {receiver, name, rax, rbx, rdi, r8}; | 25 static Register registers[] = {receiver, name, rax, rbx, rdi, r8}; |
26 return registers; | 26 return registers; |
27 } | 27 } |
28 | 28 |
29 | 29 |
30 Register* PropertyAccessCompiler::store_calling_convention() { | 30 Register* PropertyAccessCompiler::store_calling_convention() { |
31 // receiver, name, scratch1, scratch2, scratch3. | 31 // receiver, name, scratch1, scratch2, scratch3. |
32 Register receiver = StoreDescriptor::ReceiverRegister(); | 32 Register receiver = StoreDescriptor::ReceiverRegister(); |
33 Register name = StoreDescriptor::NameRegister(); | 33 Register name = StoreDescriptor::NameRegister(); |
34 DCHECK(rbx.is(StoreTransitionDescriptor::MapRegister())); | 34 DCHECK(FLAG_vector_stores || |
| 35 rbx.is(StoreTransitionDescriptor::MapRegister())); |
35 static Register registers[] = {receiver, name, rbx, rdi, r8}; | 36 static Register registers[] = {receiver, name, rbx, rdi, r8}; |
36 return registers; | 37 return registers; |
37 } | 38 } |
38 | 39 |
39 | 40 |
40 #undef __ | 41 #undef __ |
41 } // namespace internal | 42 } // namespace internal |
42 } // namespace v8 | 43 } // namespace v8 |
43 | 44 |
44 #endif // V8_TARGET_ARCH_X64 | 45 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |