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

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

Issue 1312473012: PPC: [compiler] Remove broken support for undetectable strings. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/full-codegen/ppc/full-codegen-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/base/bits.h" 5 #include "src/base/bits.h"
6 #include "src/code-factory.h" 6 #include "src/code-factory.h"
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/cpu-profiler.h" 8 #include "src/cpu-profiler.h"
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 5885 matching lines...) Expand 10 before | Expand all | Expand 10 after
5896 Factory* factory = isolate()->factory(); 5896 Factory* factory = isolate()->factory();
5897 if (String::Equals(type_name, factory->number_string())) { 5897 if (String::Equals(type_name, factory->number_string())) {
5898 __ JumpIfSmi(input, true_label); 5898 __ JumpIfSmi(input, true_label);
5899 __ LoadP(scratch, FieldMemOperand(input, HeapObject::kMapOffset)); 5899 __ LoadP(scratch, FieldMemOperand(input, HeapObject::kMapOffset));
5900 __ CompareRoot(scratch, Heap::kHeapNumberMapRootIndex); 5900 __ CompareRoot(scratch, Heap::kHeapNumberMapRootIndex);
5901 final_branch_condition = eq; 5901 final_branch_condition = eq;
5902 5902
5903 } else if (String::Equals(type_name, factory->string_string())) { 5903 } else if (String::Equals(type_name, factory->string_string())) {
5904 __ JumpIfSmi(input, false_label); 5904 __ JumpIfSmi(input, false_label);
5905 __ CompareObjectType(input, scratch, no_reg, FIRST_NONSTRING_TYPE); 5905 __ CompareObjectType(input, scratch, no_reg, FIRST_NONSTRING_TYPE);
5906 __ bge(false_label); 5906 final_branch_condition = lt;
5907 __ lbz(scratch, FieldMemOperand(scratch, Map::kBitFieldOffset));
5908 __ ExtractBit(r0, scratch, Map::kIsUndetectable);
5909 __ cmpi(r0, Operand::Zero());
5910 final_branch_condition = eq;
5911 5907
5912 } else if (String::Equals(type_name, factory->symbol_string())) { 5908 } else if (String::Equals(type_name, factory->symbol_string())) {
5913 __ JumpIfSmi(input, false_label); 5909 __ JumpIfSmi(input, false_label);
5914 __ CompareObjectType(input, scratch, no_reg, SYMBOL_TYPE); 5910 __ CompareObjectType(input, scratch, no_reg, SYMBOL_TYPE);
5915 final_branch_condition = eq; 5911 final_branch_condition = eq;
5916 5912
5917 } else if (String::Equals(type_name, factory->boolean_string())) { 5913 } else if (String::Equals(type_name, factory->boolean_string())) {
5918 __ CompareRoot(input, Heap::kTrueValueRootIndex); 5914 __ CompareRoot(input, Heap::kTrueValueRootIndex);
5919 __ beq(true_label); 5915 __ beq(true_label);
5920 __ CompareRoot(input, Heap::kFalseValueRootIndex); 5916 __ CompareRoot(input, Heap::kFalseValueRootIndex);
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
6288 __ Push(scope_info); 6284 __ Push(scope_info);
6289 __ push(ToRegister(instr->function())); 6285 __ push(ToRegister(instr->function()));
6290 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6286 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6291 RecordSafepoint(Safepoint::kNoLazyDeopt); 6287 RecordSafepoint(Safepoint::kNoLazyDeopt);
6292 } 6288 }
6293 6289
6294 6290
6295 #undef __ 6291 #undef __
6296 } // namespace internal 6292 } // namespace internal
6297 } // namespace v8 6293 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698