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