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

Side by Side Diff: src/deoptimizer.cc

Issue 2092413002: [RegisterConfiguration] Streamline access to arch defaults, simplify Registers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile. Created 4 years, 5 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 | « src/crankshaft/x87/lithium-gap-resolver-x87.cc ('k') | src/frames.cc » ('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/deoptimizer.h" 5 #include "src/deoptimizer.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/ast/prettyprinter.h" 8 #include "src/ast/prettyprinter.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/disasm.h" 10 #include "src/disasm.h"
(...skipping 3431 matching lines...) Expand 10 before | Expand all | Expand 10 after
3442 } 3442 }
3443 return TranslatedValue::NewBool(this, static_cast<uint32_t>(value)); 3443 return TranslatedValue::NewBool(this, static_cast<uint32_t>(value));
3444 } 3444 }
3445 3445
3446 case Translation::FLOAT_REGISTER: { 3446 case Translation::FLOAT_REGISTER: {
3447 int input_reg = iterator->Next(); 3447 int input_reg = iterator->Next();
3448 if (registers == nullptr) return TranslatedValue::NewInvalid(this); 3448 if (registers == nullptr) return TranslatedValue::NewInvalid(this);
3449 float value = registers->GetFloatRegister(input_reg); 3449 float value = registers->GetFloatRegister(input_reg);
3450 if (trace_file != nullptr) { 3450 if (trace_file != nullptr) {
3451 PrintF(trace_file, "%e ; %s (float)", value, 3451 PrintF(trace_file, "%e ; %s (float)", value,
3452 FloatRegister::from_code(input_reg).ToString()); 3452 RegisterConfiguration::Crankshaft()->GetFloatRegisterName(
3453 input_reg));
3453 } 3454 }
3454 return TranslatedValue::NewFloat(this, value); 3455 return TranslatedValue::NewFloat(this, value);
3455 } 3456 }
3456 3457
3457 case Translation::DOUBLE_REGISTER: { 3458 case Translation::DOUBLE_REGISTER: {
3458 int input_reg = iterator->Next(); 3459 int input_reg = iterator->Next();
3459 if (registers == nullptr) return TranslatedValue::NewInvalid(this); 3460 if (registers == nullptr) return TranslatedValue::NewInvalid(this);
3460 double value = registers->GetDoubleRegister(input_reg); 3461 double value = registers->GetDoubleRegister(input_reg);
3461 if (trace_file != nullptr) { 3462 if (trace_file != nullptr) {
3462 PrintF(trace_file, "%e ; %s (double)", value, 3463 PrintF(trace_file, "%e ; %s (double)", value,
3463 DoubleRegister::from_code(input_reg).ToString()); 3464 RegisterConfiguration::Crankshaft()->GetDoubleRegisterName(
3465 input_reg));
3464 } 3466 }
3465 return TranslatedValue::NewDouble(this, value); 3467 return TranslatedValue::NewDouble(this, value);
3466 } 3468 }
3467 3469
3468 case Translation::STACK_SLOT: { 3470 case Translation::STACK_SLOT: {
3469 int slot_offset = 3471 int slot_offset =
3470 OptimizedFrame::StackSlotOffsetRelativeToFp(iterator->Next()); 3472 OptimizedFrame::StackSlotOffsetRelativeToFp(iterator->Next());
3471 intptr_t value = *(reinterpret_cast<intptr_t*>(fp + slot_offset)); 3473 intptr_t value = *(reinterpret_cast<intptr_t*>(fp + slot_offset));
3472 if (trace_file != nullptr) { 3474 if (trace_file != nullptr) {
3473 PrintF(trace_file, "0x%08" V8PRIxPTR " ; [fp %c %d] ", value, 3475 PrintF(trace_file, "0x%08" V8PRIxPTR " ; [fp %c %d] ", value,
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
4018 CHECK(value_info->IsMaterializedObject()); 4020 CHECK(value_info->IsMaterializedObject());
4019 4021
4020 value_info->value_ = 4022 value_info->value_ =
4021 Handle<Object>(previously_materialized_objects->get(i), isolate_); 4023 Handle<Object>(previously_materialized_objects->get(i), isolate_);
4022 } 4024 }
4023 } 4025 }
4024 } 4026 }
4025 4027
4026 } // namespace internal 4028 } // namespace internal
4027 } // namespace v8 4029 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-gap-resolver-x87.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698