| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 5774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5785 BuildCheckHeapObject(obj); | 5785 BuildCheckHeapObject(obj); |
| 5786 instr = BuildMonomorphicElementAccess( | 5786 instr = BuildMonomorphicElementAccess( |
| 5787 obj, key, val, NULL, map, is_store, expr->GetStoreMode()); | 5787 obj, key, val, NULL, map, is_store, expr->GetStoreMode()); |
| 5788 } | 5788 } |
| 5789 } else if (types != NULL && !types->is_empty()) { | 5789 } else if (types != NULL && !types->is_empty()) { |
| 5790 return HandlePolymorphicElementAccess( | 5790 return HandlePolymorphicElementAccess( |
| 5791 obj, key, val, types, position, is_store, | 5791 obj, key, val, types, position, is_store, |
| 5792 expr->GetStoreMode(), has_side_effects); | 5792 expr->GetStoreMode(), has_side_effects); |
| 5793 } else { | 5793 } else { |
| 5794 if (is_store) { | 5794 if (is_store) { |
| 5795 if (expr->IsAssignment() && expr->AsAssignment()->IsUninitialized()) { | 5795 if (expr->IsAssignment() && |
| 5796 expr->AsAssignment()->HasNoTypeInformation()) { |
| 5796 Add<HDeoptimize>("Insufficient type feedback for keyed store", | 5797 Add<HDeoptimize>("Insufficient type feedback for keyed store", |
| 5797 Deoptimizer::SOFT); | 5798 Deoptimizer::SOFT); |
| 5798 } | 5799 } |
| 5799 instr = BuildStoreKeyedGeneric(obj, key, val); | 5800 instr = BuildStoreKeyedGeneric(obj, key, val); |
| 5800 } else { | 5801 } else { |
| 5801 if (expr->AsProperty()->IsUninitialized()) { | 5802 if (expr->AsProperty()->HasNoTypeInformation()) { |
| 5802 Add<HDeoptimize>("Insufficient type feedback for keyed load", | 5803 Add<HDeoptimize>("Insufficient type feedback for keyed load", |
| 5803 Deoptimizer::SOFT); | 5804 Deoptimizer::SOFT); |
| 5804 } | 5805 } |
| 5805 instr = BuildLoadKeyedGeneric(obj, key); | 5806 instr = BuildLoadKeyedGeneric(obj, key); |
| 5806 } | 5807 } |
| 5807 AddInstruction(instr); | 5808 AddInstruction(instr); |
| 5808 } | 5809 } |
| 5809 if (position != RelocInfo::kNoPosition) instr->set_position(position); | 5810 if (position != RelocInfo::kNoPosition) instr->set_position(position); |
| 5810 *has_side_effects = instr->HasObservableSideEffects(); | 5811 *has_side_effects = instr->HasObservableSideEffects(); |
| 5811 return instr; | 5812 return instr; |
| (...skipping 4029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9841 if (ShouldProduceTraceOutput()) { | 9842 if (ShouldProduceTraceOutput()) { |
| 9842 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 9843 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 9843 } | 9844 } |
| 9844 | 9845 |
| 9845 #ifdef DEBUG | 9846 #ifdef DEBUG |
| 9846 graph_->Verify(false); // No full verify. | 9847 graph_->Verify(false); // No full verify. |
| 9847 #endif | 9848 #endif |
| 9848 } | 9849 } |
| 9849 | 9850 |
| 9850 } } // namespace v8::internal | 9851 } } // namespace v8::internal |
| OLD | NEW |