You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ft...@apache.org on 2015/06/13 19:04:06 UTC
[4/8] git commit: [flex-falcon] [refs/heads/develop] -
callConstructor in the context of a Worker
callConstructor in the context of a Worker
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/77b4256f
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/77b4256f
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/77b4256f
Branch: refs/heads/develop
Commit: 77b4256f22b959da187892760b1be0198ede5d22
Parents: d0d3c40
Author: Frédéric THOMAS <we...@gmail.com>
Authored: Wed Jun 10 12:43:48 2015 +0100
Committer: Frédéric THOMAS <we...@gmail.com>
Committed: Sat Jun 13 17:08:39 2015 +0100
----------------------------------------------------------------------
.../debugger/expression/AS3DebuggerReducer.java | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/77b4256f/debugger/src/flash/tools/debugger/expression/AS3DebuggerReducer.java
----------------------------------------------------------------------
diff --git a/debugger/src/flash/tools/debugger/expression/AS3DebuggerReducer.java b/debugger/src/flash/tools/debugger/expression/AS3DebuggerReducer.java
index ad5d651..9742c69 100644
--- a/debugger/src/flash/tools/debugger/expression/AS3DebuggerReducer.java
+++ b/debugger/src/flash/tools/debugger/expression/AS3DebuggerReducer.java
@@ -22,6 +22,7 @@ import java.util.List;
import java.util.Map;
import java.util.Vector;
+import flash.tools.debugger.*;
import org.apache.flex.abc.ABCConstants;
import org.apache.flex.compiler.constants.IASLanguageConstants;
import org.apache.flex.compiler.definitions.IDefinition;
@@ -39,11 +40,6 @@ import org.apache.flex.compiler.tree.as.IASNode;
import org.apache.flex.compiler.tree.as.IExpressionNode;
import org.apache.flex.compiler.tree.as.IIdentifierNode;
-import flash.tools.debugger.IsolateSession;
-import flash.tools.debugger.PlayerDebugException;
-import flash.tools.debugger.Session;
-import flash.tools.debugger.Variable;
-import flash.tools.debugger.VariableType;
import flash.tools.debugger.concrete.DValue;
/**
@@ -136,11 +132,14 @@ public class AS3DebuggerReducer {
}
IsolateSession workerSession = session.getWorkerSession(cx
.getIsolateId());
- if (isConstructor) {
- return workerSession.callConstructor(functionName, valueArgs);
- } else {
- return workerSession.callFunction(thisObject, functionName,
- valueArgs);
+
+ if (isConstructor)
+ {
+ return ((IsolateController) session).callConstructorWorker(functionName, valueArgs, thisObject.getIsolateId());
+ }
+ else
+ {
+ return ((IsolateController) session).callFunctionWorker(thisObject, functionName, valueArgs, thisObject.getIsolateId());
}
}