OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 5310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5321 | 5321 |
5322 __ andl(hash, Immediate(String::kHashBitMask)); | 5322 __ andl(hash, Immediate(String::kHashBitMask)); |
5323 | 5323 |
5324 // if (hash == 0) hash = 27; | 5324 // if (hash == 0) hash = 27; |
5325 Label hash_not_zero; | 5325 Label hash_not_zero; |
5326 __ j(not_zero, &hash_not_zero); | 5326 __ j(not_zero, &hash_not_zero); |
5327 __ Set(hash, StringHasher::kZeroHash); | 5327 __ Set(hash, StringHasher::kZeroHash); |
5328 __ bind(&hash_not_zero); | 5328 __ bind(&hash_not_zero); |
5329 } | 5329 } |
5330 | 5330 |
| 5331 |
5331 void SubStringStub::Generate(MacroAssembler* masm) { | 5332 void SubStringStub::Generate(MacroAssembler* masm) { |
5332 Label runtime; | 5333 Label runtime; |
5333 | 5334 |
5334 // Stack frame on entry. | 5335 // Stack frame on entry. |
5335 // rsp[0] : return address | 5336 // rsp[0] : return address |
5336 // rsp[8] : to | 5337 // rsp[8] : to |
5337 // rsp[16] : from | 5338 // rsp[16] : from |
5338 // rsp[24] : string | 5339 // rsp[24] : string |
5339 | 5340 |
5340 const int kToOffset = 1 * kPointerSize; | 5341 const int kToOffset = 1 * kPointerSize; |
(...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6998 __ bind(&fast_elements_case); | 6999 __ bind(&fast_elements_case); |
6999 GenerateCase(masm, FAST_ELEMENTS); | 7000 GenerateCase(masm, FAST_ELEMENTS); |
7000 } | 7001 } |
7001 | 7002 |
7002 | 7003 |
7003 #undef __ | 7004 #undef __ |
7004 | 7005 |
7005 } } // namespace v8::internal | 7006 } } // namespace v8::internal |
7006 | 7007 |
7007 #endif // V8_TARGET_ARCH_X64 | 7008 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |