Change in gwt[master]: Check for castableTypeMap twice to work around iOS 6 JIT issue

34 views
Skip to first unread message

Leif Åstrand

unread,
May 17, 2013, 4:04:52 AM5/17/13
to Matthew Dempsky, Rodrigo Chandia, Goktug Gokdogan
Leif Åstrand has uploaded a new change for review.

https://gwt-review.googlesource.com/2800


Change subject: Check for castableTypeMap twice to work around iOS 6 JIT
issue
......................................................................

Check for castableTypeMap twice to work around iOS 6 JIT issue

Fixes https://code.google.com/p/google-web-toolkit/issues/detail?id=8098

Change-Id: I87fd663c2b0dcc8c2d859a4701cd61373c0fcaf7
---
M
dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Cast.java
1 file changed, 2 insertions(+), 2 deletions(-)



diff --git
a/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Cast.java
b/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Cast.java
index 286bb3e..4f587e0 100644
---
a/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Cast.java
+++
b/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Cast.java
@@ -26,7 +26,7 @@
final class Cast {

static native boolean canCast(Object src, int dstId) /*-{
- return src.@java.lang.Object::castableTypeMap
&& !!src.@java.lang.Object::castableTypeMap[dstId];
+ return (src.@java.lang.Object::castableTypeMap |
| src.@java.lang.Object::castableTypeMap)
&& !!src.@java.lang.Object::castableTypeMap[dstId];
}-*/;

/**
@@ -34,7 +34,7 @@
* context.
*/
static native boolean canCastUnsafe(Object src, int dstId) /*-{
- return src.@java.lang.Object::castableTypeMap &&
src.@java.lang.Object::castableTypeMap[dstId];
+ return (src.@java.lang.Object::castableTypeMap ||
src.@java.lang.Object::castableTypeMap) &&
src.@java.lang.Object::castableTypeMap[dstId];
}-*/;

static native String charToString(char x) /*-{

--
To view, visit https://gwt-review.googlesource.com/2800
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I87fd663c2b0dcc8c2d859a4701cd61373c0fcaf7
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Leif Åstrand <le...@vaadin.com>

Leif Åstrand

unread,
May 17, 2013, 4:10:00 AM5/17/13
to google-web-tool...@googlegroups.com
Leif Åstrand has uploaded a new patch set (#2).

Change subject: Check for castableTypeMap twice to work around iOS 6 JIT
issue
......................................................................

Check for castableTypeMap twice to work around iOS 6 JIT issue

Fixes https://code.google.com/p/google-web-toolkit/issues/detail?id=8098

Change-Id: I87fd663c2b0dcc8c2d859a4701cd61373c0fcaf7
---
M
dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Cast.java
1 file changed, 8 insertions(+), 2 deletions(-)
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I87fd663c2b0dcc8c2d859a4701cd61373c0fcaf7
Gerrit-PatchSet: 2
Reply all
Reply to author
Forward
0 new messages