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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 target_ = candidate; | 637 target_ = candidate; |
638 return true; | 638 return true; |
639 } | 639 } |
640 } | 640 } |
641 return false; | 641 return false; |
642 } | 642 } |
643 | 643 |
644 | 644 |
645 void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) { | 645 void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
646 allocation_site_ = | 646 allocation_site_ = |
647 oracle->GetCallNewAllocationSite(CallNewFeedbackSlot()); | 647 oracle->GetCallNewAllocationSite(AllocationSiteFeedbackSlot()); |
648 is_monomorphic_ = oracle->CallNewIsMonomorphic(CallNewFeedbackSlot()); | 648 is_monomorphic_ = oracle->CallNewIsMonomorphic(CallNewFeedbackSlot()); |
649 if (is_monomorphic_) { | 649 if (is_monomorphic_) { |
650 target_ = oracle->GetCallNewTarget(CallNewFeedbackSlot()); | 650 target_ = oracle->GetCallNewTarget(CallNewFeedbackSlot()); |
651 if (!allocation_site_.is_null()) { | 651 if (!allocation_site_.is_null()) { |
652 elements_kind_ = allocation_site_->GetElementsKind(); | 652 elements_kind_ = allocation_site_->GetElementsKind(); |
653 } | 653 } |
654 } | 654 } |
655 } | 655 } |
656 | 656 |
657 | 657 |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1173 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value()); | 1173 OS::SNPrintF(buffer, "%d", Smi::cast(*value_)->value()); |
1174 str = arr; | 1174 str = arr; |
1175 } else { | 1175 } else { |
1176 str = DoubleToCString(value_->Number(), buffer); | 1176 str = DoubleToCString(value_->Number(), buffer); |
1177 } | 1177 } |
1178 return isolate_->factory()->NewStringFromAscii(CStrVector(str)); | 1178 return isolate_->factory()->NewStringFromAscii(CStrVector(str)); |
1179 } | 1179 } |
1180 | 1180 |
1181 | 1181 |
1182 } } // namespace v8::internal | 1182 } } // namespace v8::internal |
OLD | NEW |