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

Side by Side Diff: src/arm/codegen-arm.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/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 // Distinguish sequential and external strings. Only these two string 409 // Distinguish sequential and external strings. Only these two string
410 // representations can reach here (slices and flat cons strings have been 410 // representations can reach here (slices and flat cons strings have been
411 // reduced to the underlying sequential or external string). 411 // reduced to the underlying sequential or external string).
412 Label external_string, check_encoding; 412 Label external_string, check_encoding;
413 __ bind(&check_sequential); 413 __ bind(&check_sequential);
414 STATIC_ASSERT(kSeqStringTag == 0); 414 STATIC_ASSERT(kSeqStringTag == 0);
415 __ tst(result, Operand(kStringRepresentationMask)); 415 __ tst(result, Operand(kStringRepresentationMask));
416 __ b(ne, &external_string); 416 __ b(ne, &external_string);
417 417
418 // Prepare sequential strings 418 // Prepare sequential strings
419 STATIC_ASSERT(SeqTwoByteString::kHeaderSize == SeqAsciiString::kHeaderSize); 419 STATIC_ASSERT(SeqTwoByteString::kHeaderSize == SeqOneByteString::kHeaderSize);
420 __ add(string, 420 __ add(string,
421 string, 421 string,
422 Operand(SeqTwoByteString::kHeaderSize - kHeapObjectTag)); 422 Operand(SeqTwoByteString::kHeaderSize - kHeapObjectTag));
423 __ jmp(&check_encoding); 423 __ jmp(&check_encoding);
424 424
425 // Handle external strings. 425 // Handle external strings.
426 __ bind(&external_string); 426 __ bind(&external_string);
427 if (FLAG_debug_code) { 427 if (FLAG_debug_code) {
428 // Assert that we do not have a cons or slice (indirect strings) here. 428 // Assert that we do not have a cons or slice (indirect strings) here.
429 // Sequential strings have already been ruled out. 429 // Sequential strings have already been ruled out.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 patcher.masm()->add(r0, pc, Operand(-8)); 534 patcher.masm()->add(r0, pc, Operand(-8));
535 patcher.masm()->ldr(pc, MemOperand(pc, -4)); 535 patcher.masm()->ldr(pc, MemOperand(pc, -4));
536 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); 536 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start()));
537 } 537 }
538 } 538 }
539 539
540 540
541 } } // namespace v8::internal 541 } } // namespace v8::internal
542 542
543 #endif // V8_TARGET_ARCH_ARM 543 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698