| 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 "src/deoptimizer.h" | 5 #include "src/deoptimizer.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "src/accessors.h" | 9 #include "src/accessors.h" |
| 10 #include "src/assembler-inl.h" | 10 #include "src/assembler-inl.h" |
| (...skipping 3965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3976 int input_reg = iterator->Next(); | 3976 int input_reg = iterator->Next(); |
| 3977 if (registers == nullptr) { | 3977 if (registers == nullptr) { |
| 3978 TranslatedValue translated_value = TranslatedValue::NewInvalid(this); | 3978 TranslatedValue translated_value = TranslatedValue::NewInvalid(this); |
| 3979 frame.Add(translated_value); | 3979 frame.Add(translated_value); |
| 3980 return translated_value.GetChildrenCount(); | 3980 return translated_value.GetChildrenCount(); |
| 3981 } | 3981 } |
| 3982 intptr_t value = registers->GetRegister(input_reg); | 3982 intptr_t value = registers->GetRegister(input_reg); |
| 3983 if (trace_file != nullptr) { | 3983 if (trace_file != nullptr) { |
| 3984 PrintF(trace_file, "%" V8PRIuPTR " ; %s (uint)", value, | 3984 PrintF(trace_file, "%" V8PRIuPTR " ; %s (uint)", value, |
| 3985 converter.NameOfCPURegister(input_reg)); | 3985 converter.NameOfCPURegister(input_reg)); |
| 3986 reinterpret_cast<Object*>(value)->ShortPrint(trace_file); | |
| 3987 } | 3986 } |
| 3988 TranslatedValue translated_value = | 3987 TranslatedValue translated_value = |
| 3989 TranslatedValue::NewUInt32(this, static_cast<uint32_t>(value)); | 3988 TranslatedValue::NewUInt32(this, static_cast<uint32_t>(value)); |
| 3990 frame.Add(translated_value); | 3989 frame.Add(translated_value); |
| 3991 return translated_value.GetChildrenCount(); | 3990 return translated_value.GetChildrenCount(); |
| 3992 } | 3991 } |
| 3993 | 3992 |
| 3994 case Translation::BOOL_REGISTER: { | 3993 case Translation::BOOL_REGISTER: { |
| 3995 int input_reg = iterator->Next(); | 3994 int input_reg = iterator->Next(); |
| 3996 if (registers == nullptr) { | 3995 if (registers == nullptr) { |
| (...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4865 CHECK(value_info->IsMaterializedObject()); | 4864 CHECK(value_info->IsMaterializedObject()); |
| 4866 | 4865 |
| 4867 value_info->value_ = | 4866 value_info->value_ = |
| 4868 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 4867 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
| 4869 } | 4868 } |
| 4870 } | 4869 } |
| 4871 } | 4870 } |
| 4872 | 4871 |
| 4873 } // namespace internal | 4872 } // namespace internal |
| 4874 } // namespace v8 | 4873 } // namespace v8 |
| OLD | NEW |