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

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

Issue 346823003: VM: Optimized context allocation on all platforms. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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_compiler.h ('k') | runtime/vm/flow_graph_optimizer.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) 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/cha.h" 9 #include "vm/cha.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 } 455 }
456 456
457 457
458 void FlowGraphCompiler::AddSlowPathCode(SlowPathCode* code) { 458 void FlowGraphCompiler::AddSlowPathCode(SlowPathCode* code) {
459 slow_path_code_.Add(code); 459 slow_path_code_.Add(code);
460 } 460 }
461 461
462 462
463 void FlowGraphCompiler::GenerateDeferredCode() { 463 void FlowGraphCompiler::GenerateDeferredCode() {
464 for (intptr_t i = 0; i < slow_path_code_.length(); i++) { 464 for (intptr_t i = 0; i < slow_path_code_.length(); i++) {
465 slow_path_code_[i]->EmitNativeCode(this); 465 slow_path_code_[i]->GenerateCode(this);
466 } 466 }
467 for (intptr_t i = 0; i < deopt_infos_.length(); i++) { 467 for (intptr_t i = 0; i < deopt_infos_.length(); i++) {
468 deopt_infos_[i]->GenerateCode(this, i); 468 deopt_infos_[i]->GenerateCode(this, i);
469 } 469 }
470 } 470 }
471 471
472 472
473 void FlowGraphCompiler::AddExceptionHandler(intptr_t try_index, 473 void FlowGraphCompiler::AddExceptionHandler(intptr_t try_index,
474 intptr_t outer_try_index, 474 intptr_t outer_try_index,
475 intptr_t pc_offset, 475 intptr_t pc_offset,
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 } 1396 }
1397 const ICData& ic_data = ICData::ZoneHandle(isolate(), ICData::New( 1397 const ICData& ic_data = ICData::ZoneHandle(isolate(), ICData::New(
1398 parsed_function().function(), String::Handle(isolate(), target.name()), 1398 parsed_function().function(), String::Handle(isolate(), target.name()),
1399 arguments_descriptor, deopt_id, num_args_tested)); 1399 arguments_descriptor, deopt_id, num_args_tested));
1400 ic_data.AddTarget(target); 1400 ic_data.AddTarget(target);
1401 (*deopt_id_to_ic_data_)[deopt_id] = &ic_data; 1401 (*deopt_id_to_ic_data_)[deopt_id] = &ic_data;
1402 return &ic_data; 1402 return &ic_data;
1403 } 1403 }
1404 1404
1405 } // namespace dart 1405 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698