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 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
9 #include "src/ic/stub-cache.h" | 9 #include "src/ic/stub-cache.h" |
10 #include "src/interface-descriptors.h" | 10 #include "src/interface-descriptors.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 Code::Flags flags, Register receiver, | 90 Code::Flags flags, Register receiver, |
91 Register name, Register scratch, Register extra, | 91 Register name, Register scratch, Register extra, |
92 Register extra2, Register extra3) { | 92 Register extra2, Register extra3) { |
93 Isolate* isolate = masm->isolate(); | 93 Isolate* isolate = masm->isolate(); |
94 Label miss; | 94 Label miss; |
95 | 95 |
96 // Make sure that code is valid. The multiplying code relies on the | 96 // Make sure that code is valid. The multiplying code relies on the |
97 // entry size being 12. | 97 // entry size being 12. |
98 DCHECK(sizeof(Entry) == 12); | 98 DCHECK(sizeof(Entry) == 12); |
99 | 99 |
100 // Make sure the flags does not name a specific type. | |
101 DCHECK(Code::ExtractTypeFromFlags(flags) == 0); | |
102 | |
103 // Make sure that there are no register conflicts. | 100 // Make sure that there are no register conflicts. |
104 DCHECK(!AreAliased(receiver, name, scratch, extra, extra2, extra3)); | 101 DCHECK(!AreAliased(receiver, name, scratch, extra, extra2, extra3)); |
105 | 102 |
106 // Check register validity. | 103 // Check register validity. |
107 DCHECK(!scratch.is(no_reg)); | 104 DCHECK(!scratch.is(no_reg)); |
108 DCHECK(!extra.is(no_reg)); | 105 DCHECK(!extra.is(no_reg)); |
109 DCHECK(!extra2.is(no_reg)); | 106 DCHECK(!extra2.is(no_reg)); |
110 DCHECK(!extra3.is(no_reg)); | 107 DCHECK(!extra3.is(no_reg)); |
111 | 108 |
112 #ifdef DEBUG | 109 #ifdef DEBUG |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, | 162 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, |
166 extra3); | 163 extra3); |
167 } | 164 } |
168 | 165 |
169 | 166 |
170 #undef __ | 167 #undef __ |
171 } // namespace internal | 168 } // namespace internal |
172 } // namespace v8 | 169 } // namespace v8 |
173 | 170 |
174 #endif // V8_TARGET_ARCH_MIPS | 171 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |