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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 if (RecordCallTarget()) stream->Add("_Recording"); | 565 if (RecordCallTarget()) stream->Add("_Recording"); |
566 } | 566 } |
567 | 567 |
568 | 568 |
569 void CallConstructStub::PrintName(StringStream* stream) { | 569 void CallConstructStub::PrintName(StringStream* stream) { |
570 stream->Add("CallConstructStub"); | 570 stream->Add("CallConstructStub"); |
571 if (RecordCallTarget()) stream->Add("_Recording"); | 571 if (RecordCallTarget()) stream->Add("_Recording"); |
572 } | 572 } |
573 | 573 |
574 | 574 |
| 575 bool ToBooleanStub::Record(Handle<Object> object) { |
| 576 Types old_types(types_); |
| 577 bool to_boolean_value = types_.Record(object); |
| 578 old_types.TraceTransition(types_); |
| 579 return to_boolean_value; |
| 580 } |
| 581 |
| 582 |
575 void ToBooleanStub::PrintName(StringStream* stream) { | 583 void ToBooleanStub::PrintName(StringStream* stream) { |
576 stream->Add("ToBooleanStub_"); | 584 stream->Add("ToBooleanStub_"); |
577 types_.Print(stream); | 585 types_.Print(stream); |
578 } | 586 } |
579 | 587 |
580 | 588 |
581 void ToBooleanStub::Types::Print(StringStream* stream) const { | 589 void ToBooleanStub::Types::Print(StringStream* stream) const { |
582 stream->Add("("); | 590 stream->Add("("); |
583 SimpleListPrinter printer(stream); | 591 SimpleListPrinter printer(stream); |
584 if (IsEmpty()) printer.Add("None"); | 592 if (IsEmpty()) printer.Add("None"); |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 } else if (argument_count >= 2) { | 771 } else if (argument_count >= 2) { |
764 argument_count_ = MORE_THAN_ONE; | 772 argument_count_ = MORE_THAN_ONE; |
765 } else { | 773 } else { |
766 UNREACHABLE(); | 774 UNREACHABLE(); |
767 } | 775 } |
768 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 776 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
769 } | 777 } |
770 | 778 |
771 | 779 |
772 } } // namespace v8::internal | 780 } } // namespace v8::internal |
OLD | NEW |