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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT | 587 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT |
588 os << state() << " (Array)"; | 588 os << state() << " (Array)"; |
589 } | 589 } |
590 | 590 |
591 | 591 |
592 void CallICStub::PrintState(std::ostream& os) const { // NOLINT | 592 void CallICStub::PrintState(std::ostream& os) const { // NOLINT |
593 os << state(); | 593 os << state(); |
594 } | 594 } |
595 | 595 |
596 | 596 |
597 void InstanceofStub::PrintName(std::ostream& os) const { // NOLINT | |
598 os << "InstanceofStub"; | |
599 if (HasArgsInRegisters()) os << "_REGS"; | |
600 if (HasCallSiteInlineCheck()) os << "_INLINE"; | |
601 if (ReturnTrueFalseObject()) os << "_TRUEFALSE"; | |
602 } | |
603 | |
604 | |
605 void JSEntryStub::FinishCode(Handle<Code> code) { | 597 void JSEntryStub::FinishCode(Handle<Code> code) { |
606 Handle<FixedArray> handler_table = | 598 Handle<FixedArray> handler_table = |
607 code->GetIsolate()->factory()->NewFixedArray(1, TENURED); | 599 code->GetIsolate()->factory()->NewFixedArray(1, TENURED); |
608 handler_table->set(0, Smi::FromInt(handler_offset_)); | 600 handler_table->set(0, Smi::FromInt(handler_offset_)); |
609 code->set_handler_table(*handler_table); | 601 code->set_handler_table(*handler_table); |
610 } | 602 } |
611 | 603 |
612 | 604 |
613 void LoadDictionaryElementStub::InitializeDescriptor( | 605 void LoadDictionaryElementStub::InitializeDescriptor( |
614 CodeStubDescriptor* descriptor) { | 606 CodeStubDescriptor* descriptor) { |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 | 1066 |
1075 if (type->Is(Type::UntaggedPointer())) { | 1067 if (type->Is(Type::UntaggedPointer())) { |
1076 return Representation::External(); | 1068 return Representation::External(); |
1077 } | 1069 } |
1078 | 1070 |
1079 DCHECK(!type->Is(Type::Untagged())); | 1071 DCHECK(!type->Is(Type::Untagged())); |
1080 return Representation::Tagged(); | 1072 return Representation::Tagged(); |
1081 } | 1073 } |
1082 } // namespace internal | 1074 } // namespace internal |
1083 } // namespace v8 | 1075 } // namespace v8 |
OLD | NEW |