OLD | NEW |
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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 holder_ = Handle<JSObject>( | 816 holder_ = Handle<JSObject>( |
817 oracle->GetPrototypeForPrimitiveCheck(check_type_)); | 817 oracle->GetPrototypeForPrimitiveCheck(check_type_)); |
818 map = Handle<Map>(holder_->map()); | 818 map = Handle<Map>(holder_->map()); |
819 } | 819 } |
820 is_monomorphic_ = ComputeTarget(map, name); | 820 is_monomorphic_ = ComputeTarget(map, name); |
821 } | 821 } |
822 } | 822 } |
823 } | 823 } |
824 | 824 |
825 | 825 |
| 826 void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
| 827 is_monomorphic_ = oracle->CallNewIsMonomorphic(this); |
| 828 if (is_monomorphic_) { |
| 829 target_ = oracle->GetCallNewTarget(this); |
| 830 } |
| 831 } |
| 832 |
| 833 |
826 void CompareOperation::RecordTypeFeedback(TypeFeedbackOracle* oracle) { | 834 void CompareOperation::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
827 TypeInfo info = oracle->CompareType(this); | 835 TypeInfo info = oracle->CompareType(this); |
828 if (info.IsSmi()) { | 836 if (info.IsSmi()) { |
829 compare_type_ = SMI_ONLY; | 837 compare_type_ = SMI_ONLY; |
830 } else if (info.IsNonPrimitive()) { | 838 } else if (info.IsNonPrimitive()) { |
831 compare_type_ = OBJECT_ONLY; | 839 compare_type_ = OBJECT_ONLY; |
832 } else { | 840 } else { |
833 ASSERT(compare_type_ == NONE); | 841 ASSERT(compare_type_ == NONE); |
834 } | 842 } |
835 } | 843 } |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 int pos) | 1217 int pos) |
1210 : label_(label), | 1218 : label_(label), |
1211 statements_(statements), | 1219 statements_(statements), |
1212 position_(pos), | 1220 position_(pos), |
1213 compare_type_(NONE), | 1221 compare_type_(NONE), |
1214 compare_id_(AstNode::GetNextId(isolate)), | 1222 compare_id_(AstNode::GetNextId(isolate)), |
1215 entry_id_(AstNode::GetNextId(isolate)) { | 1223 entry_id_(AstNode::GetNextId(isolate)) { |
1216 } | 1224 } |
1217 | 1225 |
1218 } } // namespace v8::internal | 1226 } } // namespace v8::internal |
OLD | NEW |