Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 11931013: Revert trunk to version 3.16.4. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/version.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4764 matching lines...) Expand 10 before | Expand all | Expand 10 after
4775 __ IncrementCounter(counters->string_add_native(), 1); 4775 __ IncrementCounter(counters->string_add_native(), 1);
4776 __ ret(2 * kPointerSize); 4776 __ ret(2 * kPointerSize);
4777 __ bind(&non_ascii); 4777 __ bind(&non_ascii);
4778 // At least one of the strings is two-byte. Check whether it happens 4778 // At least one of the strings is two-byte. Check whether it happens
4779 // to contain only ASCII characters. 4779 // to contain only ASCII characters.
4780 // rcx: first instance type AND second instance type. 4780 // rcx: first instance type AND second instance type.
4781 // r8: first instance type. 4781 // r8: first instance type.
4782 // r9: second instance type. 4782 // r9: second instance type.
4783 __ testb(rcx, Immediate(kAsciiDataHintMask)); 4783 __ testb(rcx, Immediate(kAsciiDataHintMask));
4784 __ j(not_zero, &ascii_data); 4784 __ j(not_zero, &ascii_data);
4785 __ xor_(r8, r9);
4786 STATIC_ASSERT(kOneByteStringTag != 0 && kAsciiDataHintTag != 0);
4787 __ andb(r8, Immediate(kOneByteStringTag | kAsciiDataHintTag));
4788 __ cmpb(r8, Immediate(kOneByteStringTag | kAsciiDataHintTag));
4789 __ j(equal, &ascii_data);
4790 // Allocate a two byte cons string. 4785 // Allocate a two byte cons string.
4791 __ AllocateTwoByteConsString(rcx, rdi, no_reg, &call_runtime); 4786 __ AllocateTwoByteConsString(rcx, rdi, no_reg, &call_runtime);
4792 __ jmp(&allocated); 4787 __ jmp(&allocated);
4793 4788
4794 // We cannot encounter sliced strings or cons strings here since: 4789 // We cannot encounter sliced strings or cons strings here since:
4795 STATIC_ASSERT(SlicedString::kMinLength >= ConsString::kMinLength); 4790 STATIC_ASSERT(SlicedString::kMinLength >= ConsString::kMinLength);
4796 // Handle creating a flat result from either external or sequential strings. 4791 // Handle creating a flat result from either external or sequential strings.
4797 // Locate the first characters' locations. 4792 // Locate the first characters' locations.
4798 // rax: first string 4793 // rax: first string
4799 // rbx: length of resulting flat string as smi 4794 // rbx: length of resulting flat string as smi
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after
6547 #endif 6542 #endif
6548 6543
6549 __ Ret(); 6544 __ Ret();
6550 } 6545 }
6551 6546
6552 #undef __ 6547 #undef __
6553 6548
6554 } } // namespace v8::internal 6549 } } // namespace v8::internal
6555 6550
6556 #endif // V8_TARGET_ARCH_X64 6551 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698