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

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

Issue 1220193009: Migrate most uses of Isolate::current_zone to Thread::zone. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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/json_stream.cc ('k') | runtime/vm/object.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/locations.h" 5 #include "vm/locations.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/il_printer.h" 8 #include "vm/il_printer.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 #include "vm/flow_graph_compiler.h" 10 #include "vm/flow_graph_compiler.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } else { 212 } else {
213 f->Print("%s", Name()); 213 f->Print("%s", Name());
214 } 214 }
215 } 215 }
216 216
217 217
218 const char* Location::ToCString() const { 218 const char* Location::ToCString() const {
219 char buffer[1024]; 219 char buffer[1024];
220 BufferFormatter bf(buffer, 1024); 220 BufferFormatter bf(buffer, 1024);
221 PrintTo(&bf); 221 PrintTo(&bf);
222 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); 222 return Thread::Current()->zone()->MakeCopyOfString(buffer);
223 } 223 }
224 224
225 225
226 void Location::Print() const { 226 void Location::Print() const {
227 if (kind() == kStackSlot) { 227 if (kind() == kStackSlot) {
228 ISL_Print("S%+" Pd "", stack_index()); 228 ISL_Print("S%+" Pd "", stack_index());
229 } else { 229 } else {
230 ISL_Print("%s", Name()); 230 ISL_Print("%s", Name());
231 } 231 }
232 } 232 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // with the right representation because register allocator does not know 349 // with the right representation because register allocator does not know
350 // how they are used within the instruction template. 350 // how they are used within the instruction template.
351 ASSERT(in(i).IsMachineRegister()); 351 ASSERT(in(i).IsMachineRegister());
352 ASSERT(live_registers()->Contains(in(i))); 352 ASSERT(live_registers()->Contains(in(i)));
353 } 353 }
354 } 354 }
355 } 355 }
356 #endif 356 #endif
357 357
358 } // namespace dart 358 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698