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 #include "src/ic/access-compiler.h" | 5 #include "src/ic/access-compiler.h" |
6 | 6 |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 } | 48 } |
49 DCHECK(kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC); | 49 DCHECK(kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC); |
50 return store_calling_convention(); | 50 return store_calling_convention(); |
51 } | 51 } |
52 | 52 |
53 | 53 |
54 Register PropertyAccessCompiler::slot() const { | 54 Register PropertyAccessCompiler::slot() const { |
55 if (kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC) { | 55 if (kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC) { |
56 return LoadDescriptor::SlotRegister(); | 56 return LoadDescriptor::SlotRegister(); |
57 } | 57 } |
58 DCHECK(FLAG_vector_stores && | 58 DCHECK(kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC); |
59 (kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC)); | |
60 return VectorStoreICDescriptor::SlotRegister(); | 59 return VectorStoreICDescriptor::SlotRegister(); |
61 } | 60 } |
62 | 61 |
63 | 62 |
64 Register PropertyAccessCompiler::vector() const { | 63 Register PropertyAccessCompiler::vector() const { |
65 if (kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC) { | 64 if (kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC) { |
66 return LoadWithVectorDescriptor::VectorRegister(); | 65 return LoadWithVectorDescriptor::VectorRegister(); |
67 } | 66 } |
68 DCHECK(FLAG_vector_stores && | 67 DCHECK(kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC); |
69 (kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC)); | |
70 return VectorStoreICDescriptor::VectorRegister(); | 68 return VectorStoreICDescriptor::VectorRegister(); |
71 } | 69 } |
72 } // namespace internal | 70 } // namespace internal |
73 } // namespace v8 | 71 } // namespace v8 |
OLD | NEW |