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

Side by Side Diff: pkg/compiler/lib/src/ssa/interceptor_simplifier.dart

Issue 2668233002: Remove code supporting incremental compilation in dart2js (Closed)
Patch Set: Created 3 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
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 import '../common/backend_api.dart' show BackendClasses; 5 import '../common/backend_api.dart' show BackendClasses;
6 import '../compiler.dart' show Compiler; 6 import '../compiler.dart' show Compiler;
7 import '../constants/constant_system.dart'; 7 import '../constants/constant_system.dart';
8 import '../constants/values.dart'; 8 import '../constants/values.dart';
9 import '../elements/entities.dart'; 9 import '../elements/entities.dart';
10 import '../js_backend/backend.dart'; 10 import '../js_backend/backend.dart';
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 new InterceptorConstantValue(interceptorClass), closedWorld); 327 new InterceptorConstantValue(interceptorClass), closedWorld);
328 node.conditionalConstantInterceptor = constantInstruction; 328 node.conditionalConstantInterceptor = constantInstruction;
329 constantInstruction.usedBy.add(node); 329 constantInstruction.usedBy.add(node);
330 return false; 330 return false;
331 } 331 }
332 } 332 }
333 } 333 }
334 } 334 }
335 335
336 // Try creating a one-shot interceptor or optimized is-check 336 // Try creating a one-shot interceptor or optimized is-check
337 if (compiler.options.hasIncrementalSupport) return false;
338 if (node.usedBy.length != 1) return false; 337 if (node.usedBy.length != 1) return false;
339 HInstruction user = node.usedBy.single; 338 HInstruction user = node.usedBy.single;
340 339
341 // If the interceptor [node] was loop hoisted, we keep the interceptor. 340 // If the interceptor [node] was loop hoisted, we keep the interceptor.
342 if (!user.hasSameLoopHeaderAs(node)) return false; 341 if (!user.hasSameLoopHeaderAs(node)) return false;
343 342
344 bool replaceUserWith(HInstruction replacement) { 343 bool replaceUserWith(HInstruction replacement) {
345 HBasicBlock block = user.block; 344 HBasicBlock block = user.block;
346 block.addAfter(user, replacement); 345 block.addAfter(user, replacement);
347 block.rewrite(user, replacement); 346 block.rewrite(user, replacement);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 instruction = new HInvokeDynamicMethod( 422 instruction = new HInvokeDynamicMethod(
424 selector, mask, inputs, node.instructionType, true); 423 selector, mask, inputs, node.instructionType, true);
425 } 424 }
426 425
427 HBasicBlock block = node.block; 426 HBasicBlock block = node.block;
428 block.addAfter(node, instruction); 427 block.addAfter(node, instruction);
429 block.rewrite(node, instruction); 428 block.rewrite(node, instruction);
430 return true; 429 return true;
431 } 430 }
432 } 431 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | pkg/compiler/lib/src/universe/world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698