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

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

Issue 881063003: Cleanups: parsed_function()->function() => function() (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
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_inliner.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/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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 inlined_code_intervals_(NULL), 128 inlined_code_intervals_(NULL),
129 inline_id_to_function_(inline_id_to_function) { 129 inline_id_to_function_(inline_id_to_function) {
130 if (!is_optimizing) { 130 if (!is_optimizing) {
131 const intptr_t len = isolate()->deopt_id(); 131 const intptr_t len = isolate()->deopt_id();
132 deopt_id_to_ic_data_ = new(isolate()) ZoneGrowableArray<const ICData*>(len); 132 deopt_id_to_ic_data_ = new(isolate()) ZoneGrowableArray<const ICData*>(len);
133 deopt_id_to_ic_data_->SetLength(len); 133 deopt_id_to_ic_data_->SetLength(len);
134 for (intptr_t i = 0; i < len; i++) { 134 for (intptr_t i = 0; i < len; i++) {
135 (*deopt_id_to_ic_data_)[i] = NULL; 135 (*deopt_id_to_ic_data_)[i] = NULL;
136 } 136 }
137 const Array& old_saved_icdata = Array::Handle(isolate(), 137 const Array& old_saved_icdata = Array::Handle(isolate(),
138 flow_graph->parsed_function()->function().ic_data_array()); 138 flow_graph->function().ic_data_array());
139 const intptr_t saved_len = 139 const intptr_t saved_len =
140 old_saved_icdata.IsNull() ? 0 : old_saved_icdata.Length(); 140 old_saved_icdata.IsNull() ? 0 : old_saved_icdata.Length();
141 for (intptr_t i = 0; i < saved_len; i++) { 141 for (intptr_t i = 0; i < saved_len; i++) {
142 ICData& icd = ICData::ZoneHandle(isolate()); 142 ICData& icd = ICData::ZoneHandle(isolate());
143 icd ^= old_saved_icdata.At(i); 143 icd ^= old_saved_icdata.At(i);
144 (*deopt_id_to_ic_data_)[icd.deopt_id()] = &icd; 144 (*deopt_id_to_ic_data_)[icd.deopt_id()] = &icd;
145 } 145 }
146 } 146 }
147 ASSERT(assembler != NULL); 147 ASSERT(assembler != NULL);
148 ASSERT(!list_class_.IsNull()); 148 ASSERT(!list_class_.IsNull());
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 case kUnboxedMint: 1568 case kUnboxedMint:
1569 return mint_class(); 1569 return mint_class();
1570 default: 1570 default:
1571 UNREACHABLE(); 1571 UNREACHABLE();
1572 return Class::ZoneHandle(); 1572 return Class::ZoneHandle();
1573 } 1573 }
1574 } 1574 }
1575 1575
1576 1576
1577 } // namespace dart 1577 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698