| 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 | |
| 556 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT | 541 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT |
| 557 os << state() << " (Array)"; | 542 os << state() << " (Array)"; |
| 558 } | 543 } |
| 559 | 544 |
| 560 | 545 |
| 561 void CallICStub::PrintState(std::ostream& os) const { // NOLINT | 546 void CallICStub::PrintState(std::ostream& os) const { // NOLINT |
| 562 os << state(); | 547 os << state(); |
| 563 } | 548 } |
| 564 | 549 |
| 565 | 550 |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 } | 979 } |
| 995 | 980 |
| 996 | 981 |
| 997 InternalArrayConstructorStub::InternalArrayConstructorStub( | 982 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 998 Isolate* isolate) : PlatformCodeStub(isolate) { | 983 Isolate* isolate) : PlatformCodeStub(isolate) { |
| 999 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 984 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 1000 } | 985 } |
| 1001 | 986 |
| 1002 | 987 |
| 1003 } } // namespace v8::internal | 988 } } // namespace v8::internal |
| OLD | NEW |