| 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 13392 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  13403   StringHelper::GenerateCopyCharactersREP(masm, edi, esi, ecx, ebx, false); |  13403   StringHelper::GenerateCopyCharactersREP(masm, edi, esi, ecx, ebx, false); | 
|  13404   __ mov(esi, edx);  // Restore esi. |  13404   __ mov(esi, edx);  // Restore esi. | 
|  13405  |  13405  | 
|  13406   __ bind(&return_eax); |  13406   __ bind(&return_eax); | 
|  13407   __ IncrementCounter(&Counters::sub_string_native, 1); |  13407   __ IncrementCounter(&Counters::sub_string_native, 1); | 
|  13408   __ ret(3 * kPointerSize); |  13408   __ ret(3 * kPointerSize); | 
|  13409  |  13409  | 
|  13410   // Just jump to runtime to create the sub string. |  13410   // Just jump to runtime to create the sub string. | 
|  13411   __ bind(&runtime); |  13411   __ bind(&runtime); | 
|  13412   __ TailCallRuntime(Runtime::kSubString, 3, 1); |  13412   __ TailCallRuntime(Runtime::kSubString, 3, 1); | 
|  13413  |  | 
|  13414 } |  13413 } | 
|  13415  |  13414  | 
|  13416  |  13415  | 
|  13417 void StringCompareStub::GenerateCompareFlatAsciiStrings(MacroAssembler* masm, |  13416 void StringCompareStub::GenerateCompareFlatAsciiStrings(MacroAssembler* masm, | 
|  13418                                                         Register left, |  13417                                                         Register left, | 
|  13419                                                         Register right, |  13418                                                         Register right, | 
|  13420                                                         Register scratch1, |  13419                                                         Register scratch1, | 
|  13421                                                         Register scratch2, |  13420                                                         Register scratch2, | 
|  13422                                                         Register scratch3) { |  13421                                                         Register scratch3) { | 
|  13423   Label result_not_equal; |  13422   Label result_not_equal; | 
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  13735   masm.GetCode(&desc); |  13734   masm.GetCode(&desc); | 
|  13736   // Call the function from C++. |  13735   // Call the function from C++. | 
|  13737   return FUNCTION_CAST<MemCopyFunction>(buffer); |  13736   return FUNCTION_CAST<MemCopyFunction>(buffer); | 
|  13738 } |  13737 } | 
|  13739  |  13738  | 
|  13740 #undef __ |  13739 #undef __ | 
|  13741  |  13740  | 
|  13742 } }  // namespace v8::internal |  13741 } }  // namespace v8::internal | 
|  13743  |  13742  | 
|  13744 #endif  // V8_TARGET_ARCH_IA32 |  13743 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW |