OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "bootstrapper.h" | 7 #include "bootstrapper.h" |
8 #include "code-stubs.h" | 8 #include "code-stubs.h" |
9 #include "cpu-profiler.h" | 9 #include "cpu-profiler.h" |
10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 | 463 |
464 | 464 |
465 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { | 465 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { |
466 Type* output_type = GetType(zone, map); | 466 Type* output_type = GetType(zone, map); |
467 Type* nil_type = | 467 Type* nil_type = |
468 nil_value_ == kNullValue ? Type::Null(zone) : Type::Undefined(zone); | 468 nil_value_ == kNullValue ? Type::Null(zone) : Type::Undefined(zone); |
469 return Type::Union(output_type, nil_type, zone); | 469 return Type::Union(output_type, nil_type, zone); |
470 } | 470 } |
471 | 471 |
472 | 472 |
| 473 void CallIC_ArrayStub::PrintState(StringStream* stream) { |
| 474 state_.Print(stream); |
| 475 stream->Add(" (Array)"); |
| 476 } |
| 477 |
| 478 |
473 void CallICStub::PrintState(StringStream* stream) { | 479 void CallICStub::PrintState(StringStream* stream) { |
474 state_.Print(stream); | 480 state_.Print(stream); |
475 } | 481 } |
476 | 482 |
477 | 483 |
478 void InstanceofStub::PrintName(StringStream* stream) { | 484 void InstanceofStub::PrintName(StringStream* stream) { |
479 const char* args = ""; | 485 const char* args = ""; |
480 if (HasArgsInRegisters()) { | 486 if (HasArgsInRegisters()) { |
481 args = "_REGS"; | 487 args = "_REGS"; |
482 } | 488 } |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 InstallDescriptor(isolate, &stub3); | 795 InstallDescriptor(isolate, &stub3); |
790 } | 796 } |
791 | 797 |
792 InternalArrayConstructorStub::InternalArrayConstructorStub( | 798 InternalArrayConstructorStub::InternalArrayConstructorStub( |
793 Isolate* isolate) : PlatformCodeStub(isolate) { | 799 Isolate* isolate) : PlatformCodeStub(isolate) { |
794 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 800 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
795 } | 801 } |
796 | 802 |
797 | 803 |
798 } } // namespace v8::internal | 804 } } // namespace v8::internal |
OLD | NEW |