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

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

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/il_printer.h ('k') | runtime/vm/intermediate_language.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/il_printer.h" 5 #include "vm/il_printer.h"
6 6
7 #include "vm/flow_graph_range_analysis.h" 7 #include "vm/flow_graph_range_analysis.h"
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 if (!instr->IsBlockEntry()) THR_Print(" "); 139 if (!instr->IsBlockEntry()) THR_Print(" ");
140 THR_Print("%s", str); 140 THR_Print("%s", str);
141 if (FLAG_trace_inlining_intervals) { 141 if (FLAG_trace_inlining_intervals) {
142 THR_Print(" iid: %" Pd "", instr->inlining_id()); 142 THR_Print(" iid: %" Pd "", instr->inlining_id());
143 } 143 }
144 } 144 }
145 145
146 146
147 void FlowGraphPrinter::PrintTypeCheck(const ParsedFunction& parsed_function, 147 void FlowGraphPrinter::PrintTypeCheck(const ParsedFunction& parsed_function,
148 intptr_t token_pos, 148 TokenPosition token_pos,
149 Value* value, 149 Value* value,
150 const AbstractType& dst_type, 150 const AbstractType& dst_type,
151 const String& dst_name, 151 const String& dst_name,
152 bool eliminated) { 152 bool eliminated) {
153 const char* compile_type_name = "unknown"; 153 const char* compile_type_name = "unknown";
154 if (value != NULL && value->reaching_type_ != NULL) { 154 if (value != NULL && value->reaching_type_ != NULL) {
155 compile_type_name = value->reaching_type_->ToCString(); 155 compile_type_name = value->reaching_type_->ToCString();
156 } 156 }
157 THR_Print("%s type check: compile type %s is %s specific than " 157 THR_Print("%s type check: compile type %s is %s specific than "
158 "type '%s' of '%s'.\n", 158 "type '%s' of '%s'.\n",
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 } 1211 }
1212 1212
1213 const char* Environment::ToCString() const { 1213 const char* Environment::ToCString() const {
1214 char buffer[1024]; 1214 char buffer[1024];
1215 BufferFormatter bf(buffer, 1024); 1215 BufferFormatter bf(buffer, 1024);
1216 PrintTo(&bf); 1216 PrintTo(&bf);
1217 return Thread::Current()->zone()->MakeCopyOfString(buffer); 1217 return Thread::Current()->zone()->MakeCopyOfString(buffer);
1218 } 1218 }
1219 1219
1220 } // namespace dart 1220 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/il_printer.h ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698