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

Side by Side Diff: src/mips/codegen-mips.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/mips/code-stubs-mips.cc ('k') | src/mips/full-codegen-mips.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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 // Distinguish sequential and external strings. Only these two string 401 // Distinguish sequential and external strings. Only these two string
402 // representations can reach here (slices and flat cons strings have been 402 // representations can reach here (slices and flat cons strings have been
403 // reduced to the underlying sequential or external string). 403 // reduced to the underlying sequential or external string).
404 Label external_string, check_encoding; 404 Label external_string, check_encoding;
405 __ bind(&check_sequential); 405 __ bind(&check_sequential);
406 STATIC_ASSERT(kSeqStringTag == 0); 406 STATIC_ASSERT(kSeqStringTag == 0);
407 __ And(at, result, Operand(kStringRepresentationMask)); 407 __ And(at, result, Operand(kStringRepresentationMask));
408 __ Branch(&external_string, ne, at, Operand(zero_reg)); 408 __ Branch(&external_string, ne, at, Operand(zero_reg));
409 409
410 // Prepare sequential strings 410 // Prepare sequential strings
411 STATIC_ASSERT(SeqTwoByteString::kHeaderSize == SeqAsciiString::kHeaderSize); 411 STATIC_ASSERT(SeqTwoByteString::kHeaderSize == SeqOneByteString::kHeaderSize);
412 __ Addu(string, 412 __ Addu(string,
413 string, 413 string,
414 SeqTwoByteString::kHeaderSize - kHeapObjectTag); 414 SeqTwoByteString::kHeaderSize - kHeapObjectTag);
415 __ jmp(&check_encoding); 415 __ jmp(&check_encoding);
416 416
417 // Handle external strings. 417 // Handle external strings.
418 __ bind(&external_string); 418 __ bind(&external_string);
419 if (FLAG_debug_code) { 419 if (FLAG_debug_code) {
420 // Assert that we do not have a cons or slice (indirect strings) here. 420 // Assert that we do not have a cons or slice (indirect strings) here.
421 // Sequential strings have already been ruled out. 421 // Sequential strings have already been ruled out.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); 538 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start()));
539 } 539 }
540 } 540 }
541 541
542 542
543 #undef __ 543 #undef __
544 544
545 } } // namespace v8::internal 545 } } // namespace v8::internal
546 546
547 #endif // V8_TARGET_ARCH_MIPS 547 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698