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

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

Issue 669613003: Ignore redundant parallel moves when checking if a block is empty. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/intermediate_language.h ('k') | no next file » | 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/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/cpu.h" 8 #include "vm/cpu.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/flow_graph_allocator.h" 10 #include "vm/flow_graph_allocator.h"
(...skipping 2548 matching lines...) Expand 10 before | Expand all | Expand 10 after
2559 UNREACHABLE(); 2559 UNREACHABLE();
2560 return NULL; 2560 return NULL;
2561 } 2561 }
2562 2562
2563 2563
2564 void ParameterInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2564 void ParameterInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2565 UNREACHABLE(); 2565 UNREACHABLE();
2566 } 2566 }
2567 2567
2568 2568
2569 bool ParallelMoveInstr::IsRedundant() const {
2570 for (intptr_t i = 0; i < moves_.length(); i++) {
2571 if (!moves_[i]->IsRedundant()) {
2572 return false;
2573 }
2574 }
2575 return true;
2576 }
2577
2578
2569 LocationSummary* ParallelMoveInstr::MakeLocationSummary(Isolate* isolate, 2579 LocationSummary* ParallelMoveInstr::MakeLocationSummary(Isolate* isolate,
2570 bool optimizing) const { 2580 bool optimizing) const {
2571 return NULL; 2581 return NULL;
2572 } 2582 }
2573 2583
2574 2584
2575 void ParallelMoveInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2585 void ParallelMoveInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2576 UNREACHABLE(); 2586 UNREACHABLE();
2577 } 2587 }
2578 2588
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
3356 case Token::kTRUNCDIV: return 0; 3366 case Token::kTRUNCDIV: return 0;
3357 case Token::kMOD: return 1; 3367 case Token::kMOD: return 1;
3358 default: UNIMPLEMENTED(); return -1; 3368 default: UNIMPLEMENTED(); return -1;
3359 } 3369 }
3360 } 3370 }
3361 3371
3362 3372
3363 #undef __ 3373 #undef __
3364 3374
3365 } // namespace dart 3375 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698