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

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

Issue 19723008: MIPS: With >= 64 non-string instance types, I removed an optimization that allowed us to detect int… (Closed) Base URL: https://github.com/v8/v8.git@gbl
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
« no previous file with comments | « src/mips/ic-mips.cc ('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 3191 matching lines...) Expand 10 before | Expand all | Expand 10 after
3202 InitializeNewString(result, 3202 InitializeNewString(result,
3203 length, 3203 length,
3204 Heap::kSlicedAsciiStringMapRootIndex, 3204 Heap::kSlicedAsciiStringMapRootIndex,
3205 scratch1, 3205 scratch1,
3206 scratch2); 3206 scratch2);
3207 } 3207 }
3208 3208
3209 3209
3210 void MacroAssembler::JumpIfNotUniqueName(Register reg, 3210 void MacroAssembler::JumpIfNotUniqueName(Register reg,
3211 Label* not_unique_name) { 3211 Label* not_unique_name) {
3212 STATIC_ASSERT(((SYMBOL_TYPE - 1) & kIsInternalizedMask) == kInternalizedTag); 3212 STATIC_ASSERT(kInternalizedTag == 0 && kStringTag == 0);
3213 Branch(not_unique_name, lt, reg, Operand(kIsInternalizedMask)); 3213 Label succeed;
3214 Branch(not_unique_name, gt, reg, Operand(SYMBOL_TYPE)); 3214 And(at, reg, Operand(kIsNotStringMask | kIsNotInternalizedMask));
3215 Branch(&succeed, eq, at, Operand(zero_reg));
3216 Branch(not_unique_name, ne, reg, Operand(SYMBOL_TYPE));
3217
3218 bind(&succeed);
3215 } 3219 }
3216 3220
3217 3221
3218 // Allocates a heap number or jumps to the label if the young space is full and 3222 // Allocates a heap number or jumps to the label if the young space is full and
3219 // a scavenge is needed. 3223 // a scavenge is needed.
3220 void MacroAssembler::AllocateHeapNumber(Register result, 3224 void MacroAssembler::AllocateHeapNumber(Register result,
3221 Register scratch1, 3225 Register scratch1,
3222 Register scratch2, 3226 Register scratch2,
3223 Register heap_number_map, 3227 Register heap_number_map,
3224 Label* need_gc, 3228 Label* need_gc,
(...skipping 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after
5561 opcode == BGTZL); 5565 opcode == BGTZL);
5562 opcode = (cond == eq) ? BEQ : BNE; 5566 opcode = (cond == eq) ? BEQ : BNE;
5563 instr = (instr & ~kOpcodeMask) | opcode; 5567 instr = (instr & ~kOpcodeMask) | opcode;
5564 masm_.emit(instr); 5568 masm_.emit(instr);
5565 } 5569 }
5566 5570
5567 5571
5568 } } // namespace v8::internal 5572 } } // namespace v8::internal
5569 5573
5570 #endif // V8_TARGET_ARCH_MIPS 5574 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698