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