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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 if (RecordCallTarget()) stream->Add("_Recording"); | 577 if (RecordCallTarget()) stream->Add("_Recording"); |
578 } | 578 } |
579 | 579 |
580 | 580 |
581 void CallConstructStub::PrintName(StringStream* stream) { | 581 void CallConstructStub::PrintName(StringStream* stream) { |
582 stream->Add("CallConstructStub"); | 582 stream->Add("CallConstructStub"); |
583 if (RecordCallTarget()) stream->Add("_Recording"); | 583 if (RecordCallTarget()) stream->Add("_Recording"); |
584 } | 584 } |
585 | 585 |
586 | 586 |
| 587 void ArrayConstructorStub::PrintName(StringStream* stream) { |
| 588 stream->Add("ArrayConstructorStub"); |
| 589 switch (argument_count_) { |
| 590 case ANY: stream->Add("_Any"); break; |
| 591 case NONE: stream->Add("_None"); break; |
| 592 case ONE: stream->Add("_One"); break; |
| 593 case MORE_THAN_ONE: stream->Add("_More_Than_One") break;; |
| 594 } |
| 595 } |
| 596 |
| 597 |
| 598 void ArrayConstructorStubBase::BasePrintName(const char* name, |
| 599 StringStream* stream) { |
| 600 stream->Add(name); |
| 601 stream->Add("_"); |
| 602 stream->Add(ElementsKindToString(elements_kind())); |
| 603 if (override_mode() == DISABLE_ALLOCATION_SITES) { |
| 604 stream->Add("_DISABLE_ALLOCATION_SITES"); |
| 605 } |
| 606 } |
| 607 |
| 608 |
587 bool ToBooleanStub::UpdateStatus(Handle<Object> object) { | 609 bool ToBooleanStub::UpdateStatus(Handle<Object> object) { |
588 Types old_types(types_); | 610 Types old_types(types_); |
589 bool to_boolean_value = types_.UpdateStatus(object); | 611 bool to_boolean_value = types_.UpdateStatus(object); |
590 TraceTransition(old_types, types_); | 612 TraceTransition(old_types, types_); |
591 return to_boolean_value; | 613 return to_boolean_value; |
592 } | 614 } |
593 | 615 |
594 | 616 |
595 void ToBooleanStub::PrintState(StringStream* stream) { | 617 void ToBooleanStub::PrintState(StringStream* stream) { |
596 types_.Print(stream); | 618 types_.Print(stream); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 InstallDescriptor(isolate, &stub3); | 784 InstallDescriptor(isolate, &stub3); |
763 } | 785 } |
764 | 786 |
765 InternalArrayConstructorStub::InternalArrayConstructorStub( | 787 InternalArrayConstructorStub::InternalArrayConstructorStub( |
766 Isolate* isolate) { | 788 Isolate* isolate) { |
767 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 789 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
768 } | 790 } |
769 | 791 |
770 | 792 |
771 } } // namespace v8::internal | 793 } } // namespace v8::internal |
OLD | NEW |