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 "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 | 531 |
532 | 532 |
533 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { | 533 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { |
534 Type* output_type = GetType(zone, map); | 534 Type* output_type = GetType(zone, map); |
535 Type* nil_type = | 535 Type* nil_type = |
536 nil_value() == kNullValue ? Type::Null(zone) : Type::Undefined(zone); | 536 nil_value() == kNullValue ? Type::Null(zone) : Type::Undefined(zone); |
537 return Type::Union(output_type, nil_type, zone); | 537 return Type::Union(output_type, nil_type, zone); |
538 } | 538 } |
539 | 539 |
540 | 540 |
| 541 void CallIC_RoundStub::PrintState(std::ostream& os) const { // NOLINT |
| 542 os << state() << " (Round)"; |
| 543 } |
| 544 |
| 545 |
| 546 void CallIC_FloorStub::PrintState(std::ostream& os) const { // NOLINT |
| 547 os << state() << " (Floor)"; |
| 548 } |
| 549 |
| 550 |
| 551 void CallIC_CeilStub::PrintState(std::ostream& os) const { // NOLINT |
| 552 os << state() << " (Ceil)"; |
| 553 } |
| 554 |
| 555 |
541 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT | 556 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT |
542 os << state() << " (Array)"; | 557 os << state() << " (Array)"; |
543 } | 558 } |
544 | 559 |
545 | 560 |
546 void CallICStub::PrintState(std::ostream& os) const { // NOLINT | 561 void CallICStub::PrintState(std::ostream& os) const { // NOLINT |
547 os << state(); | 562 os << state(); |
548 } | 563 } |
549 | 564 |
550 | 565 |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 } | 994 } |
980 | 995 |
981 | 996 |
982 InternalArrayConstructorStub::InternalArrayConstructorStub( | 997 InternalArrayConstructorStub::InternalArrayConstructorStub( |
983 Isolate* isolate) : PlatformCodeStub(isolate) { | 998 Isolate* isolate) : PlatformCodeStub(isolate) { |
984 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 999 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
985 } | 1000 } |
986 | 1001 |
987 | 1002 |
988 } } // namespace v8::internal | 1003 } } // namespace v8::internal |
OLD | NEW |