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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 | 495 |
496 | 496 |
497 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { | 497 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { |
498 Type* output_type = GetType(zone, map); | 498 Type* output_type = GetType(zone, map); |
499 Type* nil_type = | 499 Type* nil_type = |
500 nil_value_ == kNullValue ? Type::Null(zone) : Type::Undefined(zone); | 500 nil_value_ == kNullValue ? Type::Null(zone) : Type::Undefined(zone); |
501 return Type::Union(output_type, nil_type, zone); | 501 return Type::Union(output_type, nil_type, zone); |
502 } | 502 } |
503 | 503 |
504 | 504 |
| 505 void CallICStub::PrintState(StringStream* stream) { |
| 506 state_.Print(stream); |
| 507 } |
| 508 |
| 509 |
505 void InstanceofStub::PrintName(StringStream* stream) { | 510 void InstanceofStub::PrintName(StringStream* stream) { |
506 const char* args = ""; | 511 const char* args = ""; |
507 if (HasArgsInRegisters()) { | 512 if (HasArgsInRegisters()) { |
508 args = "_REGS"; | 513 args = "_REGS"; |
509 } | 514 } |
510 | 515 |
511 const char* inline_check = ""; | 516 const char* inline_check = ""; |
512 if (HasCallSiteInlineCheck()) { | 517 if (HasCallSiteInlineCheck()) { |
513 inline_check = "_INLINE"; | 518 inline_check = "_INLINE"; |
514 } | 519 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 case READ_ELEMENT: stream->Add("ReadElement"); break; | 582 case READ_ELEMENT: stream->Add("ReadElement"); break; |
578 case NEW_SLOPPY_FAST: stream->Add("NewSloppyFast"); break; | 583 case NEW_SLOPPY_FAST: stream->Add("NewSloppyFast"); break; |
579 case NEW_SLOPPY_SLOW: stream->Add("NewSloppySlow"); break; | 584 case NEW_SLOPPY_SLOW: stream->Add("NewSloppySlow"); break; |
580 case NEW_STRICT: stream->Add("NewStrict"); break; | 585 case NEW_STRICT: stream->Add("NewStrict"); break; |
581 } | 586 } |
582 } | 587 } |
583 | 588 |
584 | 589 |
585 void CallFunctionStub::PrintName(StringStream* stream) { | 590 void CallFunctionStub::PrintName(StringStream* stream) { |
586 stream->Add("CallFunctionStub_Args%d", argc_); | 591 stream->Add("CallFunctionStub_Args%d", argc_); |
587 if (RecordCallTarget()) stream->Add("_Recording"); | |
588 } | 592 } |
589 | 593 |
590 | 594 |
591 void CallConstructStub::PrintName(StringStream* stream) { | 595 void CallConstructStub::PrintName(StringStream* stream) { |
592 stream->Add("CallConstructStub"); | 596 stream->Add("CallConstructStub"); |
593 if (RecordCallTarget()) stream->Add("_Recording"); | 597 if (RecordCallTarget()) stream->Add("_Recording"); |
594 } | 598 } |
595 | 599 |
596 | 600 |
597 void ArrayConstructorStub::PrintName(StringStream* stream) { | 601 void ArrayConstructorStub::PrintName(StringStream* stream) { |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 InstallDescriptor(isolate, &stub3); | 820 InstallDescriptor(isolate, &stub3); |
817 } | 821 } |
818 | 822 |
819 InternalArrayConstructorStub::InternalArrayConstructorStub( | 823 InternalArrayConstructorStub::InternalArrayConstructorStub( |
820 Isolate* isolate) { | 824 Isolate* isolate) { |
821 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 825 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
822 } | 826 } |
823 | 827 |
824 | 828 |
825 } } // namespace v8::internal | 829 } } // namespace v8::internal |
OLD | NEW |