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

Side by Side Diff: src/mips/macro-assembler-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/full-codegen-mips.cc ('k') | src/objects.h » ('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 3091 matching lines...) Expand 10 before | Expand all | Expand 10 after
3102 3102
3103 3103
3104 void MacroAssembler::AllocateAsciiString(Register result, 3104 void MacroAssembler::AllocateAsciiString(Register result,
3105 Register length, 3105 Register length,
3106 Register scratch1, 3106 Register scratch1,
3107 Register scratch2, 3107 Register scratch2,
3108 Register scratch3, 3108 Register scratch3,
3109 Label* gc_required) { 3109 Label* gc_required) {
3110 // Calculate the number of bytes needed for the characters in the string 3110 // Calculate the number of bytes needed for the characters in the string
3111 // while observing object alignment. 3111 // while observing object alignment.
3112 ASSERT((SeqAsciiString::kHeaderSize & kObjectAlignmentMask) == 0); 3112 ASSERT((SeqOneByteString::kHeaderSize & kObjectAlignmentMask) == 0);
3113 ASSERT(kCharSize == 1); 3113 ASSERT(kCharSize == 1);
3114 addiu(scratch1, length, kObjectAlignmentMask + SeqAsciiString::kHeaderSize); 3114 addiu(scratch1, length, kObjectAlignmentMask + SeqOneByteString::kHeaderSize);
3115 And(scratch1, scratch1, Operand(~kObjectAlignmentMask)); 3115 And(scratch1, scratch1, Operand(~kObjectAlignmentMask));
3116 3116
3117 // Allocate ASCII string in new space. 3117 // Allocate ASCII string in new space.
3118 AllocateInNewSpace(scratch1, 3118 AllocateInNewSpace(scratch1,
3119 result, 3119 result,
3120 scratch2, 3120 scratch2,
3121 scratch3, 3121 scratch3,
3122 gc_required, 3122 gc_required,
3123 TAG_OBJECT); 3123 TAG_OBJECT);
3124 3124
(...skipping 2333 matching lines...) Expand 10 before | Expand all | Expand 10 after
5458 opcode == BGTZL); 5458 opcode == BGTZL);
5459 opcode = (cond == eq) ? BEQ : BNE; 5459 opcode = (cond == eq) ? BEQ : BNE;
5460 instr = (instr & ~kOpcodeMask) | opcode; 5460 instr = (instr & ~kOpcodeMask) | opcode;
5461 masm_.emit(instr); 5461 masm_.emit(instr);
5462 } 5462 }
5463 5463
5464 5464
5465 } } // namespace v8::internal 5465 } } // namespace v8::internal
5466 5466
5467 #endif // V8_TARGET_ARCH_MIPS 5467 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698