| 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 #include "src/mips/codegen-mips.h" | 5 #include "src/mips/codegen-mips.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 CodeObjectRequired::kNo); | 34 CodeObjectRequired::kNo); |
| 35 | 35 |
| 36 { | 36 { |
| 37 Label lastb, unaligned, aligned, chkw, | 37 Label lastb, unaligned, aligned, chkw, |
| 38 loop16w, chk1w, wordCopy_loop, skip_pref, lastbloop, | 38 loop16w, chk1w, wordCopy_loop, skip_pref, lastbloop, |
| 39 leave, ua_chk16w, ua_loop16w, ua_skip_pref, ua_chkw, | 39 leave, ua_chk16w, ua_loop16w, ua_skip_pref, ua_chkw, |
| 40 ua_chk1w, ua_wordCopy_loop, ua_smallCopy, ua_smallCopy_loop; | 40 ua_chk1w, ua_wordCopy_loop, ua_smallCopy, ua_smallCopy_loop; |
| 41 | 41 |
| 42 // The size of each prefetch. | 42 // The size of each prefetch. |
| 43 uint32_t pref_chunk = 32; | 43 uint32_t pref_chunk = 32; |
| 44 // The maximum size of a prefetch, it must not be less then pref_chunk. | 44 // The maximum size of a prefetch, it must not be less than pref_chunk. |
| 45 // If the real size of a prefetch is greater then max_pref_size and | 45 // If the real size of a prefetch is greater than max_pref_size and |
| 46 // the kPrefHintPrepareForStore hint is used, the code will not work | 46 // the kPrefHintPrepareForStore hint is used, the code will not work |
| 47 // correctly. | 47 // correctly. |
| 48 uint32_t max_pref_size = 128; | 48 uint32_t max_pref_size = 128; |
| 49 DCHECK(pref_chunk < max_pref_size); | 49 DCHECK(pref_chunk < max_pref_size); |
| 50 | 50 |
| 51 // pref_limit is set based on the fact that we never use an offset | 51 // pref_limit is set based on the fact that we never use an offset |
| 52 // greater then 5 on a store pref and that a single pref can | 52 // greater then 5 on a store pref and that a single pref can |
| 53 // never be larger then max_pref_size. | 53 // never be larger then max_pref_size. |
| 54 uint32_t pref_limit = (5 * pref_chunk) + max_pref_size; | 54 uint32_t pref_limit = (5 * pref_chunk) + max_pref_size; |
| 55 int32_t pref_hint_load = kPrefHintLoadStreamed; | 55 int32_t pref_hint_load = kPrefHintLoadStreamed; |
| (...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 } | 1116 } |
| 1117 } | 1117 } |
| 1118 | 1118 |
| 1119 | 1119 |
| 1120 #undef __ | 1120 #undef __ |
| 1121 | 1121 |
| 1122 } // namespace internal | 1122 } // namespace internal |
| 1123 } // namespace v8 | 1123 } // namespace v8 |
| 1124 | 1124 |
| 1125 #endif // V8_TARGET_ARCH_MIPS | 1125 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |