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

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

Issue 1846063002: - Fix the hash code for raw objects that are added into the object pool (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix Created 4 years, 8 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/assembler_x64.cc ('k') | runtime/vm/flow_graph_compiler_arm.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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 } 1171 }
1172 } 1172 }
1173 1173
1174 1174
1175 intptr_t DeoptInfoBuilder::EmitMaterializationArguments(intptr_t dest_index) { 1175 intptr_t DeoptInfoBuilder::EmitMaterializationArguments(intptr_t dest_index) {
1176 ASSERT(dest_index == kDartFrameFixedSize); 1176 ASSERT(dest_index == kDartFrameFixedSize);
1177 for (intptr_t i = 0; i < materializations_.length(); i++) { 1177 for (intptr_t i = 0; i < materializations_.length(); i++) {
1178 MaterializeObjectInstr* mat = materializations_[i]; 1178 MaterializeObjectInstr* mat = materializations_[i];
1179 // Class of the instance to allocate. 1179 // Class of the instance to allocate.
1180 AddConstant(mat->cls(), dest_index++); 1180 AddConstant(mat->cls(), dest_index++);
1181 AddConstant(Smi::Handle(Smi::New(mat->num_variables())), dest_index++); 1181 AddConstant(Smi::ZoneHandle(Smi::New(mat->num_variables())), dest_index++);
1182 for (intptr_t i = 0; i < mat->InputCount(); i++) { 1182 for (intptr_t i = 0; i < mat->InputCount(); i++) {
1183 if (!mat->InputAt(i)->BindsToConstantNull()) { 1183 if (!mat->InputAt(i)->BindsToConstantNull()) {
1184 // Emit offset-value pair. 1184 // Emit offset-value pair.
1185 AddConstant(Smi::Handle(Smi::New(mat->FieldOffsetAt(i))), 1185 AddConstant(Smi::ZoneHandle(Smi::New(mat->FieldOffsetAt(i))),
1186 dest_index++); 1186 dest_index++);
1187 AddCopy(mat->InputAt(i), mat->LocationAt(i), dest_index++); 1187 AddCopy(mat->InputAt(i), mat->LocationAt(i), dest_index++);
1188 } 1188 }
1189 } 1189 }
1190 } 1190 }
1191 return dest_index; 1191 return dest_index;
1192 } 1192 }
1193 1193
1194 1194
1195 intptr_t DeoptInfoBuilder::FindMaterialization( 1195 intptr_t DeoptInfoBuilder::FindMaterialization(
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 Smi* offset, 1309 Smi* offset,
1310 TypedData* info, 1310 TypedData* info,
1311 Smi* reason) { 1311 Smi* reason) {
1312 intptr_t i = index * kEntrySize; 1312 intptr_t i = index * kEntrySize;
1313 *offset ^= table.At(i); 1313 *offset ^= table.At(i);
1314 *info ^= table.At(i + 1); 1314 *info ^= table.At(i + 1);
1315 *reason ^= table.At(i + 2); 1315 *reason ^= table.At(i + 2);
1316 } 1316 }
1317 1317
1318 } // namespace dart 1318 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698