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

Side by Side Diff: runtime/vm/deopt_instructions.cc

Issue 2120703002: DBC: Enables unboxed doubles (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rename BoxDouble -> WriteIntoDouble 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 | « runtime/vm/deopt_instructions.h ('k') | runtime/vm/flow_graph_allocator.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/deopt_instructions.h" 5 #include "vm/deopt_instructions.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/intermediate_language.h" 10 #include "vm/intermediate_language.h"
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 CpuRegisterSource::kStackSlot, CalculateStackIndex(loc)); 1038 CpuRegisterSource::kStackSlot, CalculateStackIndex(loc));
1039 } 1039 }
1040 } 1040 }
1041 1041
1042 1042
1043 FpuRegisterSource DeoptInfoBuilder::ToFpuRegisterSource( 1043 FpuRegisterSource DeoptInfoBuilder::ToFpuRegisterSource(
1044 const Location& loc, 1044 const Location& loc,
1045 Location::Kind stack_slot_kind) { 1045 Location::Kind stack_slot_kind) {
1046 if (loc.IsFpuRegister()) { 1046 if (loc.IsFpuRegister()) {
1047 return FpuRegisterSource(FpuRegisterSource::kRegister, loc.fpu_reg()); 1047 return FpuRegisterSource(FpuRegisterSource::kRegister, loc.fpu_reg());
1048 #if defined(TARGET_ARCH_DBC)
1049 } else if (loc.IsRegister()) {
1050 return FpuRegisterSource(FpuRegisterSource::kRegister, loc.reg());
1051 #endif
1048 } else { 1052 } else {
1049 ASSERT((stack_slot_kind == Location::kQuadStackSlot) || 1053 ASSERT((stack_slot_kind == Location::kQuadStackSlot) ||
1050 (stack_slot_kind == Location::kDoubleStackSlot)); 1054 (stack_slot_kind == Location::kDoubleStackSlot));
1051 ASSERT(loc.kind() == stack_slot_kind); 1055 ASSERT(loc.kind() == stack_slot_kind);
1052 return FpuRegisterSource( 1056 return FpuRegisterSource(
1053 FpuRegisterSource::kStackSlot, CalculateStackIndex(loc)); 1057 FpuRegisterSource::kStackSlot, CalculateStackIndex(loc));
1054 } 1058 }
1055 } 1059 }
1056 1060
1057 void DeoptInfoBuilder::AddReturnAddress(const Function& function, 1061 void DeoptInfoBuilder::AddReturnAddress(const Function& function,
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 Smi* offset, 1344 Smi* offset,
1341 TypedData* info, 1345 TypedData* info,
1342 Smi* reason) { 1346 Smi* reason) {
1343 intptr_t i = index * kEntrySize; 1347 intptr_t i = index * kEntrySize;
1344 *offset ^= table.At(i); 1348 *offset ^= table.At(i);
1345 *info ^= table.At(i + 1); 1349 *info ^= table.At(i + 1);
1346 *reason ^= table.At(i + 2); 1350 *reason ^= table.At(i + 2);
1347 } 1351 }
1348 1352
1349 } // namespace dart 1353 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/deopt_instructions.h ('k') | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698