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

Side by Side Diff: src/x64/codegen-x64.cc

Issue 11411005: Rename SeqAsciiString (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/x64/code-stubs-x64.cc ('k') | src/x64/full-codegen-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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 times_2, 564 times_2,
565 SeqTwoByteString::kHeaderSize)); 565 SeqTwoByteString::kHeaderSize));
566 __ jmp(&done, Label::kNear); 566 __ jmp(&done, Label::kNear);
567 567
568 // ASCII string. 568 // ASCII string.
569 // Load the byte into the result register. 569 // Load the byte into the result register.
570 __ bind(&ascii); 570 __ bind(&ascii);
571 __ movzxbl(result, FieldOperand(string, 571 __ movzxbl(result, FieldOperand(string,
572 index, 572 index,
573 times_1, 573 times_1,
574 SeqAsciiString::kHeaderSize)); 574 SeqOneByteString::kHeaderSize));
575 __ bind(&done); 575 __ bind(&done);
576 } 576 }
577 577
578 #undef __ 578 #undef __
579 579
580 580
581 static const int kNoCodeAgeSequenceLength = 6; 581 static const int kNoCodeAgeSequenceLength = 6;
582 582
583 static byte* GetNoCodeAgeSequence(uint32_t* length) { 583 static byte* GetNoCodeAgeSequence(uint32_t* length) {
584 static bool initialized = false; 584 static bool initialized = false;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 CodePatcher patcher(sequence, young_length); 658 CodePatcher patcher(sequence, young_length);
659 patcher.masm()->call(stub->instruction_start()); 659 patcher.masm()->call(stub->instruction_start());
660 patcher.masm()->nop(); 660 patcher.masm()->nop();
661 } 661 }
662 } 662 }
663 663
664 664
665 } } // namespace v8::internal 665 } } // namespace v8::internal
666 666
667 #endif // V8_TARGET_ARCH_X64 667 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698