| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |