OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/accessors.h" | 9 #include "src/accessors.h" |
10 #include "src/allocation-site-scopes.h" | 10 #include "src/allocation-site-scopes.h" |
(...skipping 11786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11797 } | 11797 } |
11798 #ifdef OBJECT_PRINT | 11798 #ifdef OBJECT_PRINT |
11799 if (!type_feedback_info()->IsUndefined()) { | 11799 if (!type_feedback_info()->IsUndefined()) { |
11800 OFStream os(stdout); | 11800 OFStream os(stdout); |
11801 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(os); | 11801 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(os); |
11802 os << "\n"; | 11802 os << "\n"; |
11803 } | 11803 } |
11804 #endif | 11804 #endif |
11805 } | 11805 } |
11806 | 11806 |
| 11807 if (handler_table()->length() > 0 && is_turbofanned()) { |
| 11808 os << "Handler Table (size = " << handler_table()->Size() << ")\n"; |
| 11809 for (int i = 0; i < handler_table()->length(); i += 2) { |
| 11810 int pc_offset = Smi::cast(handler_table()->get(i))->value(); |
| 11811 int handler = Smi::cast(handler_table()->get(i + 1))->value(); |
| 11812 os << static_cast<const void*>(instruction_start() + pc_offset) << " "; |
| 11813 Vector<char> buf = Vector<char>::New(20); |
| 11814 SNPrintF(buf, "%4d %4d\n", pc_offset, handler); |
| 11815 os << buf.start(); |
| 11816 } |
| 11817 os << "\n"; |
| 11818 } |
| 11819 |
11807 os << "RelocInfo (size = " << relocation_size() << ")\n"; | 11820 os << "RelocInfo (size = " << relocation_size() << ")\n"; |
11808 for (RelocIterator it(this); !it.done(); it.next()) { | 11821 for (RelocIterator it(this); !it.done(); it.next()) { |
11809 it.rinfo()->Print(GetIsolate(), os); | 11822 it.rinfo()->Print(GetIsolate(), os); |
11810 } | 11823 } |
11811 os << "\n"; | 11824 os << "\n"; |
11812 | 11825 |
11813 #ifdef OBJECT_PRINT | 11826 #ifdef OBJECT_PRINT |
11814 if (FLAG_enable_ool_constant_pool) { | 11827 if (FLAG_enable_ool_constant_pool) { |
11815 ConstantPoolArray* pool = constant_pool(); | 11828 ConstantPoolArray* pool = constant_pool(); |
11816 if (pool->length()) { | 11829 if (pool->length()) { |
(...skipping 5484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17301 CompilationInfo* info) { | 17314 CompilationInfo* info) { |
17302 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( | 17315 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( |
17303 handle(cell->dependent_code(), info->isolate()), | 17316 handle(cell->dependent_code(), info->isolate()), |
17304 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); | 17317 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); |
17305 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); | 17318 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); |
17306 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( | 17319 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( |
17307 cell, info->zone()); | 17320 cell, info->zone()); |
17308 } | 17321 } |
17309 | 17322 |
17310 } } // namespace v8::internal | 17323 } } // namespace v8::internal |
OLD | NEW |