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

Side by Side Diff: src/ia32/full-codegen-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/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-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 3621 matching lines...) Expand 10 before | Expand all | Expand 10 after
3632 // Live registers: 3632 // Live registers:
3633 // string_length: Sum of string lengths, as a smi. 3633 // string_length: Sum of string lengths, as a smi.
3634 // elements: FixedArray of strings. 3634 // elements: FixedArray of strings.
3635 3635
3636 // Check that the separator is a flat ASCII string. 3636 // Check that the separator is a flat ASCII string.
3637 __ mov(string, separator_operand); 3637 __ mov(string, separator_operand);
3638 __ JumpIfSmi(string, &bailout); 3638 __ JumpIfSmi(string, &bailout);
3639 __ mov(scratch, FieldOperand(string, HeapObject::kMapOffset)); 3639 __ mov(scratch, FieldOperand(string, HeapObject::kMapOffset));
3640 __ movzx_b(scratch, FieldOperand(scratch, Map::kInstanceTypeOffset)); 3640 __ movzx_b(scratch, FieldOperand(scratch, Map::kInstanceTypeOffset));
3641 __ and_(scratch, Immediate( 3641 __ and_(scratch, Immediate(
3642 kIsNotStringMask | kStringEncodingMask | kStringRepresentationMask)); 3642 kIsNotStringMask | kStringEncodingMask | kAsciiDataHintMask |
3643 kStringRepresentationMask));
3643 __ cmp(scratch, ASCII_STRING_TYPE); 3644 __ cmp(scratch, ASCII_STRING_TYPE);
3644 __ j(not_equal, &bailout); 3645 __ j(not_equal, &bailout);
3645 3646
3646 // Add (separator length times array_length) - separator length 3647 // Add (separator length times array_length) - separator length
3647 // to string_length. 3648 // to string_length.
3648 __ mov(scratch, separator_operand); 3649 __ mov(scratch, separator_operand);
3649 __ mov(scratch, FieldOperand(scratch, SeqOneByteString::kLengthOffset)); 3650 __ mov(scratch, FieldOperand(scratch, SeqOneByteString::kLengthOffset));
3650 __ sub(string_length, scratch); // May be negative, temporarily. 3651 __ sub(string_length, scratch); // May be negative, temporarily.
3651 __ imul(scratch, array_length_operand); 3652 __ imul(scratch, array_length_operand);
3652 __ j(overflow, &bailout); 3653 __ j(overflow, &bailout);
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
4527 *stack_depth = 0; 4528 *stack_depth = 0;
4528 *context_length = 0; 4529 *context_length = 0;
4529 return previous_; 4530 return previous_;
4530 } 4531 }
4531 4532
4532 #undef __ 4533 #undef __
4533 4534
4534 } } // namespace v8::internal 4535 } } // namespace v8::internal
4535 4536
4536 #endif // V8_TARGET_ARCH_IA32 4537 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698