| 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 is_monomorphic_ = ComputeTarget(map, name); | 598 is_monomorphic_ = ComputeTarget(map, name); |
| 599 } | 599 } |
| 600 } | 600 } |
| 601 } | 601 } |
| 602 | 602 |
| 603 | 603 |
| 604 void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) { | 604 void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
| 605 is_monomorphic_ = oracle->CallNewIsMonomorphic(this); | 605 is_monomorphic_ = oracle->CallNewIsMonomorphic(this); |
| 606 if (is_monomorphic_) { | 606 if (is_monomorphic_) { |
| 607 target_ = oracle->GetCallNewTarget(this); | 607 target_ = oracle->GetCallNewTarget(this); |
| 608 elements_kind_ = oracle->GetCallNewElementsKind(this); |
| 608 } | 609 } |
| 609 } | 610 } |
| 610 | 611 |
| 611 | 612 |
| 612 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { | 613 void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
| 613 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this) | 614 receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this) |
| 614 ? oracle->GetObjectLiteralStoreMap(this) | 615 ? oracle->GetObjectLiteralStoreMap(this) |
| 615 : Handle<Map>::null(); | 616 : Handle<Map>::null(); |
| 616 } | 617 } |
| 617 | 618 |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); | 1115 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); |
| 1115 str = arr; | 1116 str = arr; |
| 1116 } else { | 1117 } else { |
| 1117 str = DoubleToCString(handle_->Number(), buffer); | 1118 str = DoubleToCString(handle_->Number(), buffer); |
| 1118 } | 1119 } |
| 1119 return FACTORY->NewStringFromAscii(CStrVector(str)); | 1120 return FACTORY->NewStringFromAscii(CStrVector(str)); |
| 1120 } | 1121 } |
| 1121 | 1122 |
| 1122 | 1123 |
| 1123 } } // namespace v8::internal | 1124 } } // namespace v8::internal |
| OLD | NEW |