OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 7141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7152 } | 7152 } |
7153 default: return "CompareStub"; | 7153 default: return "CompareStub"; |
7154 } | 7154 } |
7155 } | 7155 } |
7156 | 7156 |
7157 | 7157 |
7158 int CompareStub::MinorKey() { | 7158 int CompareStub::MinorKey() { |
7159 // Encode the three parameters in a unique 16 bit value. To avoid duplicate | 7159 // Encode the three parameters in a unique 16 bit value. To avoid duplicate |
7160 // stubs the never NaN NaN condition is only taken into account if the | 7160 // stubs the never NaN NaN condition is only taken into account if the |
7161 // condition is equals. | 7161 // condition is equals. |
7162 ASSERT((static_cast<unsigned>(cc_) >> 28) < (1 << 14)); | 7162 ASSERT((static_cast<unsigned>(cc_) >> 28) < (1 << 13)); |
7163 return ConditionField::encode(static_cast<unsigned>(cc_) >> 28) | 7163 return ConditionField::encode(static_cast<unsigned>(cc_) >> 28) |
7164 | StrictField::encode(strict_) | 7164 | StrictField::encode(strict_) |
7165 | NeverNanNanField::encode(cc_ == eq ? never_nan_nan_ : false); | 7165 | NeverNanNanField::encode(cc_ == eq ? never_nan_nan_ : false) |
| 7166 | IncludeNumberCompareField::encode(include_number_compare_); |
7166 } | 7167 } |
7167 | 7168 |
7168 | 7169 |
7169 void StringStubBase::GenerateCopyCharacters(MacroAssembler* masm, | 7170 void StringStubBase::GenerateCopyCharacters(MacroAssembler* masm, |
7170 Register dest, | 7171 Register dest, |
7171 Register src, | 7172 Register src, |
7172 Register count, | 7173 Register count, |
7173 Register scratch, | 7174 Register scratch, |
7174 bool ascii) { | 7175 bool ascii) { |
7175 Label loop; | 7176 Label loop; |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8041 | 8042 |
8042 // Just jump to runtime to add the two strings. | 8043 // Just jump to runtime to add the two strings. |
8043 __ bind(&string_add_runtime); | 8044 __ bind(&string_add_runtime); |
8044 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); | 8045 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); |
8045 } | 8046 } |
8046 | 8047 |
8047 | 8048 |
8048 #undef __ | 8049 #undef __ |
8049 | 8050 |
8050 } } // namespace v8::internal | 8051 } } // namespace v8::internal |
OLD | NEW |