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

Unified Diff: lib/compiler/implementation/native_handler.dart

Issue 10100001: Refactoring if block-information. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/native_handler.dart
diff --git a/lib/compiler/implementation/native_handler.dart b/lib/compiler/implementation/native_handler.dart
index 8ba0b64ba5fc09d233e980a7ad418e8a2aa6da14..41f45aa234c93a87841bcd26ef37b2ff7adb0d00 100644
--- a/lib/compiler/implementation/native_handler.dart
+++ b/lib/compiler/implementation/native_handler.dart
@@ -330,11 +330,13 @@ void handleSsaNative(SsaBuilder builder, Send node) {
new DartString.literal('$dartMethodName'));
DartString jsCode = new DartString.literal(
'Object.getPrototypeOf(#).hasOwnProperty(#)');
- builder.push(new HForeign(
- jsCode, const LiteralDartString('Object'),
- <HInstruction>[builder.localsHandler.readThis(), constant]));
+ visitCondition() {
+ builder.push(new HForeign(
+ jsCode, const LiteralDartString('Object'),
+ <HInstruction>[builder.localsHandler.readThis(), constant]));
+ }
- builder.handleIf(visitThen, visitElse);
+ builder.handleIf(visitCondition, visitThen, visitElse);
HPhi phi = new HPhi.manyInputs(
null, <HInstruction>[thenInstruction, elseInstruction]);
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/builder.dart » ('j') | lib/compiler/implementation/ssa/builder.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698