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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 2948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2959 uint32_t value = GetUInt32Slot(fp, slot_offset); | 2959 uint32_t value = GetUInt32Slot(fp, slot_offset); |
2960 if (trace_file != nullptr) { | 2960 if (trace_file != nullptr) { |
2961 PrintF(trace_file, "%u ; (bool) [fp %c %d] ", value, | 2961 PrintF(trace_file, "%u ; (bool) [fp %c %d] ", value, |
2962 slot_offset < 0 ? '-' : '+', std::abs(slot_offset)); | 2962 slot_offset < 0 ? '-' : '+', std::abs(slot_offset)); |
2963 } | 2963 } |
2964 return TranslatedValue::NewBool(this, value); | 2964 return TranslatedValue::NewBool(this, value); |
2965 } | 2965 } |
2966 | 2966 |
2967 case Translation::DOUBLE_STACK_SLOT: { | 2967 case Translation::DOUBLE_STACK_SLOT: { |
2968 int slot_offset = SlotOffsetFp(iterator->Next()); | 2968 int slot_offset = SlotOffsetFp(iterator->Next()); |
2969 double value = *(reinterpret_cast<double*>(fp + slot_offset)); | 2969 double value = ReadDoubleValue(fp + slot_offset); |
2970 if (trace_file != nullptr) { | 2970 if (trace_file != nullptr) { |
2971 PrintF(trace_file, "%e ; (double) [fp %c %d] ", value, | 2971 PrintF(trace_file, "%e ; (double) [fp %c %d] ", value, |
2972 slot_offset < 0 ? '-' : '+', std::abs(slot_offset)); | 2972 slot_offset < 0 ? '-' : '+', std::abs(slot_offset)); |
2973 } | 2973 } |
2974 return TranslatedValue::NewDouble(this, value); | 2974 return TranslatedValue::NewDouble(this, value); |
2975 } | 2975 } |
2976 | 2976 |
2977 case Translation::LITERAL: { | 2977 case Translation::LITERAL: { |
2978 int literal_index = iterator->Next(); | 2978 int literal_index = iterator->Next(); |
2979 Object* value = literal_array->get(literal_index); | 2979 Object* value = literal_array->get(literal_index); |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3399 DCHECK(value_info->IsMaterializedObject()); | 3399 DCHECK(value_info->IsMaterializedObject()); |
3400 | 3400 |
3401 value_info->value_ = | 3401 value_info->value_ = |
3402 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 3402 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
3403 } | 3403 } |
3404 } | 3404 } |
3405 } | 3405 } |
3406 | 3406 |
3407 } // namespace internal | 3407 } // namespace internal |
3408 } // namespace v8 | 3408 } // namespace v8 |
OLD | NEW |