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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 1287983002: [compiler] Remove broken support for undetectable strings. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/ia32/lithium-codegen-ia32.cc ('k') | src/mips64/lithium-codegen-mips64.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 5657 matching lines...) Expand 10 before | Expand all | Expand 10 after
5668 __ JumpIfSmi(input, true_label); 5668 __ JumpIfSmi(input, true_label);
5669 __ lw(input, FieldMemOperand(input, HeapObject::kMapOffset)); 5669 __ lw(input, FieldMemOperand(input, HeapObject::kMapOffset));
5670 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex); 5670 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex);
5671 *cmp1 = input; 5671 *cmp1 = input;
5672 *cmp2 = Operand(at); 5672 *cmp2 = Operand(at);
5673 final_branch_condition = eq; 5673 final_branch_condition = eq;
5674 5674
5675 } else if (String::Equals(type_name, factory->string_string())) { 5675 } else if (String::Equals(type_name, factory->string_string())) {
5676 __ JumpIfSmi(input, false_label); 5676 __ JumpIfSmi(input, false_label);
5677 __ GetObjectType(input, input, scratch); 5677 __ GetObjectType(input, input, scratch);
5678 __ Branch(USE_DELAY_SLOT, false_label, 5678 *cmp1 = scratch;
5679 ge, scratch, Operand(FIRST_NONSTRING_TYPE)); 5679 *cmp2 = Operand(FIRST_NONSTRING_TYPE);
5680 // input is an object so we can load the BitFieldOffset even if we take the 5680 final_branch_condition = lt;
5681 // other branch.
5682 __ lbu(at, FieldMemOperand(input, Map::kBitFieldOffset));
5683 __ And(at, at, 1 << Map::kIsUndetectable);
5684 *cmp1 = at;
5685 *cmp2 = Operand(zero_reg);
5686 final_branch_condition = eq;
5687 5681
5688 } else if (String::Equals(type_name, factory->symbol_string())) { 5682 } else if (String::Equals(type_name, factory->symbol_string())) {
5689 __ JumpIfSmi(input, false_label); 5683 __ JumpIfSmi(input, false_label);
5690 __ GetObjectType(input, input, scratch); 5684 __ GetObjectType(input, input, scratch);
5691 *cmp1 = scratch; 5685 *cmp1 = scratch;
5692 *cmp2 = Operand(SYMBOL_TYPE); 5686 *cmp2 = Operand(SYMBOL_TYPE);
5693 final_branch_condition = eq; 5687 final_branch_condition = eq;
5694 5688
5695 } else if (String::Equals(type_name, factory->boolean_string())) { 5689 } else if (String::Equals(type_name, factory->boolean_string())) {
5696 __ LoadRoot(at, Heap::kTrueValueRootIndex); 5690 __ LoadRoot(at, Heap::kTrueValueRootIndex);
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
6065 __ Push(at, ToRegister(instr->function())); 6059 __ Push(at, ToRegister(instr->function()));
6066 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6060 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6067 RecordSafepoint(Safepoint::kNoLazyDeopt); 6061 RecordSafepoint(Safepoint::kNoLazyDeopt);
6068 } 6062 }
6069 6063
6070 6064
6071 #undef __ 6065 #undef __
6072 6066
6073 } // namespace internal 6067 } // namespace internal
6074 } // namespace v8 6068 } // namespace v8
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698