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

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

Issue 516013003: Address review comments for r39595. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_ia32.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/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 #include "vm/locations.h" 10 #include "vm/locations.h"
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 case kUnboxedMint: { 1126 case kUnboxedMint: {
1127 ASSERT(source_loc.IsPairLocation()); 1127 ASSERT(source_loc.IsPairLocation());
1128 PairLocation* pair = source_loc.AsPairLocation(); 1128 PairLocation* pair = source_loc.AsPairLocation();
1129 deopt_instr = new(isolate()) DeoptMintPairInstr( 1129 deopt_instr = new(isolate()) DeoptMintPairInstr(
1130 ToCpuRegisterSource(pair->At(0)), 1130 ToCpuRegisterSource(pair->At(0)),
1131 ToCpuRegisterSource(pair->At(1))); 1131 ToCpuRegisterSource(pair->At(1)));
1132 break; 1132 break;
1133 } 1133 }
1134 case kUnboxedInt32: 1134 case kUnboxedInt32:
1135 deopt_instr = new(isolate()) DeoptInt32Instr( 1135 deopt_instr = new(isolate()) DeoptInt32Instr(
1136 ToCpuRegisterSource(source_loc)); 1136 ToCpuRegisterSource(source_loc));
1137 break; 1137 break;
1138 case kUnboxedUint32: 1138 case kUnboxedUint32:
1139 deopt_instr = new(isolate()) DeoptUint32Instr( 1139 deopt_instr = new(isolate()) DeoptUint32Instr(
1140 ToCpuRegisterSource(source_loc)); 1140 ToCpuRegisterSource(source_loc));
1141 break; 1141 break;
1142 case kUnboxedDouble: 1142 case kUnboxedDouble:
1143 deopt_instr = new(isolate()) DeoptDoubleInstr( 1143 deopt_instr = new(isolate()) DeoptDoubleInstr(
1144 ToFpuRegisterSource(source_loc, Location::kDoubleStackSlot)); 1144 ToFpuRegisterSource(source_loc, Location::kDoubleStackSlot));
1145 break; 1145 break;
1146 case kUnboxedFloat32x4: 1146 case kUnboxedFloat32x4:
1147 deopt_instr = new(isolate()) DeoptFloat32x4Instr( 1147 deopt_instr = new(isolate()) DeoptFloat32x4Instr(
1148 ToFpuRegisterSource(source_loc, Location::kQuadStackSlot)); 1148 ToFpuRegisterSource(source_loc, Location::kQuadStackSlot));
1149 break; 1149 break;
1150 case kUnboxedFloat64x2: 1150 case kUnboxedFloat64x2:
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 Smi* offset, 1336 Smi* offset,
1337 DeoptInfo* info, 1337 DeoptInfo* info,
1338 Smi* reason) { 1338 Smi* reason) {
1339 intptr_t i = index * kEntrySize; 1339 intptr_t i = index * kEntrySize;
1340 *offset ^= table.At(i); 1340 *offset ^= table.At(i);
1341 *info ^= table.At(i + 1); 1341 *info ^= table.At(i + 1);
1342 *reason ^= table.At(i + 2); 1342 *reason ^= table.At(i + 2);
1343 } 1343 }
1344 1344
1345 } // namespace dart 1345 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698