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

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

Issue 855533002: Isolate/Thread split: Isolate -> Zone for LocationSummary. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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
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/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/cha.h" 10 #include "vm/cha.h"
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 } 1118 }
1119 } 1119 }
1120 UNREACHABLE(); 1120 UNREACHABLE();
1121 return kNoRegister; 1121 return kNoRegister;
1122 } 1122 }
1123 1123
1124 1124
1125 void FlowGraphCompiler::AllocateRegistersLocally(Instruction* instr) { 1125 void FlowGraphCompiler::AllocateRegistersLocally(Instruction* instr) {
1126 ASSERT(!is_optimizing()); 1126 ASSERT(!is_optimizing());
1127 1127
1128 instr->InitializeLocationSummary(isolate(), false); // Not optimizing. 1128 instr->InitializeLocationSummary(isolate()->current_zone(),
Ivan Posva 2015/01/15 20:35:39 In a lot of files we have added the following line
koda 2015/01/15 21:29:11 Done.
1129 false); // Not optimizing.
1129 LocationSummary* locs = instr->locs(); 1130 LocationSummary* locs = instr->locs();
1130 1131
1131 bool blocked_registers[kNumberOfCpuRegisters]; 1132 bool blocked_registers[kNumberOfCpuRegisters];
1132 1133
1133 // Mark all available registers free. 1134 // Mark all available registers free.
1134 for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) { 1135 for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) {
1135 blocked_registers[i] = false; 1136 blocked_registers[i] = false;
1136 } 1137 }
1137 1138
1138 // Mark all fixed input, temp and output registers as used. 1139 // Mark all fixed input, temp and output registers as used.
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 case kUnboxedMint: 1565 case kUnboxedMint:
1565 return mint_class(); 1566 return mint_class();
1566 default: 1567 default:
1567 UNREACHABLE(); 1568 UNREACHABLE();
1568 return Class::ZoneHandle(); 1569 return Class::ZoneHandle();
1569 } 1570 }
1570 } 1571 }
1571 1572
1572 1573
1573 } // namespace dart 1574 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698