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

Side by Side Diff: src/ia32/code-stubs-ia32.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/heap-inl.h ('k') | src/ia32/full-codegen-ia32.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 5702 matching lines...) Expand 10 before | Expand all | Expand 10 after
5713 __ mov(eax, ecx); 5713 __ mov(eax, ecx);
5714 __ IncrementCounter(counters->string_add_native(), 1); 5714 __ IncrementCounter(counters->string_add_native(), 1);
5715 __ ret(2 * kPointerSize); 5715 __ ret(2 * kPointerSize);
5716 __ bind(&non_ascii); 5716 __ bind(&non_ascii);
5717 // At least one of the strings is two-byte. Check whether it happens 5717 // At least one of the strings is two-byte. Check whether it happens
5718 // to contain only ASCII characters. 5718 // to contain only ASCII characters.
5719 // ecx: first instance type AND second instance type. 5719 // ecx: first instance type AND second instance type.
5720 // edi: second instance type. 5720 // edi: second instance type.
5721 __ test(ecx, Immediate(kAsciiDataHintMask)); 5721 __ test(ecx, Immediate(kAsciiDataHintMask));
5722 __ j(not_zero, &ascii_data); 5722 __ j(not_zero, &ascii_data);
5723 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset));
5724 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset));
5725 __ xor_(edi, ecx);
5726 STATIC_ASSERT(kOneByteStringTag != 0 && kAsciiDataHintTag != 0);
5727 __ and_(edi, kOneByteStringTag | kAsciiDataHintTag);
5728 __ cmp(edi, kOneByteStringTag | kAsciiDataHintTag);
5729 __ j(equal, &ascii_data);
5730 // Allocate a two byte cons string. 5723 // Allocate a two byte cons string.
5731 __ AllocateTwoByteConsString(ecx, edi, no_reg, &call_runtime); 5724 __ AllocateTwoByteConsString(ecx, edi, no_reg, &call_runtime);
5732 __ jmp(&allocated); 5725 __ jmp(&allocated);
5733 5726
5734 // We cannot encounter sliced strings or cons strings here since: 5727 // We cannot encounter sliced strings or cons strings here since:
5735 STATIC_ASSERT(SlicedString::kMinLength >= ConsString::kMinLength); 5728 STATIC_ASSERT(SlicedString::kMinLength >= ConsString::kMinLength);
5736 // Handle creating a flat result from either external or sequential strings. 5729 // Handle creating a flat result from either external or sequential strings.
5737 // Locate the first characters' locations. 5730 // Locate the first characters' locations.
5738 // eax: first string 5731 // eax: first string
5739 // ebx: length of resulting flat string as a smi 5732 // ebx: length of resulting flat string as a smi
(...skipping 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after
7543 // Restore ecx. 7536 // Restore ecx.
7544 __ pop(ecx); 7537 __ pop(ecx);
7545 __ ret(0); 7538 __ ret(0);
7546 } 7539 }
7547 7540
7548 #undef __ 7541 #undef __
7549 7542
7550 } } // namespace v8::internal 7543 } } // namespace v8::internal
7551 7544
7552 #endif // V8_TARGET_ARCH_IA32 7545 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698