| 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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 is_monomorphic_ = ComputeTarget(map, name); | 593 is_monomorphic_ = ComputeTarget(map, name); |
| 594 } | 594 } |
| 595 } | 595 } |
| 596 } | 596 } |
| 597 | 597 |
| 598 | 598 |
| 599 void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) { | 599 void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
| 600 is_monomorphic_ = oracle->CallNewIsMonomorphic(this); | 600 is_monomorphic_ = oracle->CallNewIsMonomorphic(this); |
| 601 if (is_monomorphic_) { | 601 if (is_monomorphic_) { |
| 602 target_ = oracle->GetCallNewTarget(this); | 602 target_ = oracle->GetCallNewTarget(this); |
| 603 elements_kind_ = oracle->GetCallNewElementsKind(this); |
| 603 } | 604 } |
| 604 } | 605 } |
| 605 | 606 |
| 606 | 607 |
| 607 void CompareOperation::RecordTypeFeedback(TypeFeedbackOracle* oracle) { | 608 void CompareOperation::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
| 608 TypeInfo info = oracle->CompareType(this); | 609 TypeInfo info = oracle->CompareType(this); |
| 609 if (info.IsSmi()) { | 610 if (info.IsSmi()) { |
| 610 compare_type_ = SMI_ONLY; | 611 compare_type_ = SMI_ONLY; |
| 611 } else if (info.IsNonPrimitive()) { | 612 } else if (info.IsNonPrimitive()) { |
| 612 compare_type_ = OBJECT_ONLY; | 613 compare_type_ = OBJECT_ONLY; |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); | 1131 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); |
| 1131 str = arr; | 1132 str = arr; |
| 1132 } else { | 1133 } else { |
| 1133 str = DoubleToCString(handle_->Number(), buffer); | 1134 str = DoubleToCString(handle_->Number(), buffer); |
| 1134 } | 1135 } |
| 1135 return FACTORY->NewStringFromAscii(CStrVector(str)); | 1136 return FACTORY->NewStringFromAscii(CStrVector(str)); |
| 1136 } | 1137 } |
| 1137 | 1138 |
| 1138 | 1139 |
| 1139 } } // namespace v8::internal | 1140 } } // namespace v8::internal |
| OLD | NEW |