Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: src/deoptimizer.cc

Issue 1193433002: MIPS: Fix unaligned memory access. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Moved to utils.h Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698