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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 18083004: MIPS: The check for internalized strings relied on the fact that we had less than 64 distinct Insta… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/mips/macro-assembler-mips.h ('k') | no next file » | 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 3184 matching lines...) Expand 10 before | Expand all | Expand 10 after
3195 TAG_OBJECT); 3195 TAG_OBJECT);
3196 3196
3197 InitializeNewString(result, 3197 InitializeNewString(result,
3198 length, 3198 length,
3199 Heap::kSlicedAsciiStringMapRootIndex, 3199 Heap::kSlicedAsciiStringMapRootIndex,
3200 scratch1, 3200 scratch1,
3201 scratch2); 3201 scratch2);
3202 } 3202 }
3203 3203
3204 3204
3205 void MacroAssembler::JumpIfNotUniqueName(Register reg,
3206 Label* not_unique_name) {
3207 STATIC_ASSERT(((SYMBOL_TYPE - 1) & kIsInternalizedMask) == kInternalizedTag);
3208 Branch(not_unique_name, lt, reg, Operand(kIsInternalizedMask));
3209 Branch(not_unique_name, gt, reg, Operand(SYMBOL_TYPE));
3210 }
3211
3212
3205 // Allocates a heap number or jumps to the label if the young space is full and 3213 // Allocates a heap number or jumps to the label if the young space is full and
3206 // a scavenge is needed. 3214 // a scavenge is needed.
3207 void MacroAssembler::AllocateHeapNumber(Register result, 3215 void MacroAssembler::AllocateHeapNumber(Register result,
3208 Register scratch1, 3216 Register scratch1,
3209 Register scratch2, 3217 Register scratch2,
3210 Register heap_number_map, 3218 Register heap_number_map,
3211 Label* need_gc, 3219 Label* need_gc,
3212 TaggingMode tagging_mode) { 3220 TaggingMode tagging_mode) {
3213 // Allocate an object in the heap for the heap number and tag it as a heap 3221 // Allocate an object in the heap for the heap number and tag it as a heap
3214 // object. 3222 // object.
(...skipping 2333 matching lines...) Expand 10 before | Expand all | Expand 10 after
5548 opcode == BGTZL); 5556 opcode == BGTZL);
5549 opcode = (cond == eq) ? BEQ : BNE; 5557 opcode = (cond == eq) ? BEQ : BNE;
5550 instr = (instr & ~kOpcodeMask) | opcode; 5558 instr = (instr & ~kOpcodeMask) | opcode;
5551 masm_.emit(instr); 5559 masm_.emit(instr);
5552 } 5560 }
5553 5561
5554 5562
5555 } } // namespace v8::internal 5563 } } // namespace v8::internal
5556 5564
5557 #endif // V8_TARGET_ARCH_MIPS 5565 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698