| 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 | 577 |
| 578 | 578 |
| 579 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { | 579 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { |
| 580 Type* output_type = GetType(zone, map); | 580 Type* output_type = GetType(zone, map); |
| 581 Type* nil_type = | 581 Type* nil_type = |
| 582 nil_value() == kNullValue ? Type::Null(zone) : Type::Undefined(zone); | 582 nil_value() == kNullValue ? Type::Null(zone) : Type::Undefined(zone); |
| 583 return Type::Union(output_type, nil_type, zone); | 583 return Type::Union(output_type, nil_type, zone); |
| 584 } | 584 } |
| 585 | 585 |
| 586 | 586 |
| 587 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT | |
| 588 os << state() << " (Array)"; | |
| 589 } | |
| 590 | |
| 591 | |
| 592 void CallICStub::PrintState(std::ostream& os) const { // NOLINT | 587 void CallICStub::PrintState(std::ostream& os) const { // NOLINT |
| 593 os << state(); | 588 os << state(); |
| 594 } | 589 } |
| 595 | 590 |
| 596 | 591 |
| 597 void JSEntryStub::FinishCode(Handle<Code> code) { | 592 void JSEntryStub::FinishCode(Handle<Code> code) { |
| 598 Handle<FixedArray> handler_table = | 593 Handle<FixedArray> handler_table = |
| 599 code->GetIsolate()->factory()->NewFixedArray(1, TENURED); | 594 code->GetIsolate()->factory()->NewFixedArray(1, TENURED); |
| 600 handler_table->set(0, Smi::FromInt(handler_offset_)); | 595 handler_table->set(0, Smi::FromInt(handler_offset_)); |
| 601 code->set_handler_table(*handler_table); | 596 code->set_handler_table(*handler_table); |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1056 | 1051 |
| 1057 if (type->Is(Type::UntaggedPointer())) { | 1052 if (type->Is(Type::UntaggedPointer())) { |
| 1058 return Representation::External(); | 1053 return Representation::External(); |
| 1059 } | 1054 } |
| 1060 | 1055 |
| 1061 DCHECK(!type->Is(Type::Untagged())); | 1056 DCHECK(!type->Is(Type::Untagged())); |
| 1062 return Representation::Tagged(); | 1057 return Representation::Tagged(); |
| 1063 } | 1058 } |
| 1064 } // namespace internal | 1059 } // namespace internal |
| 1065 } // namespace v8 | 1060 } // namespace v8 |
| OLD | NEW |