[svn] 4305: Added an optimizer plugin facility to the GlobalOptimizer toolchain.

Revision: 4305
Author: [email protected]
Date: 2008-12-15 07:37:19 -0800 (Mon, 15 Dec 2008)
Log Message:
Added an optimizer plugin facility to the GlobalOptimizer toolchain.
Refactored GlobalOptimizer.java, moved classes that
are relevant to plugins into their own source files.
Modified Paths:
flex/sdk/trunk/modules/asc/src/java/adobe/abc/AbcThunkGen.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/GlobalOptimizer.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/TraceManager.java
Added Paths:
flex/sdk/trunk/modules/asc/src/java/adobe/abc/Block.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/CallGraph.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/Edge.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/Expr.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/Handler.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/Method.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/Name.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/Namespace.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/Nsset.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/OptimizerConstants.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/OptimizerPlugin.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/Type.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/TypeCache.java
flex/sdk/trunk/modules/asc/src/java/adobe/abc/Typeref.java

Andrew Gvozdev wrote:
> Normally findFileName() looks recursively through all files.
You're right, it is. This is probably a non-issue.
I was getting the file name from the error message, e.g.:
c:\projects\eclipse\Proj\mod1\util\micro\foo.c
I stripped off the path, and called findFileName with just the filename,
e.g.:
int i = fileName.lastIndexOf(java.io.File.separatorChar);
if (fileName.indexOf(projDir) != -1) {
fileName = fileName.substring(projDir.length());
IFile file = errorParserManager.findFileName(fileName);
This would find the file in errorParserManager's fFilesInProject map.
findFileName then calls the isPossibleMatch(IPath location, IPath
absoluteLocation) method, which in this example would be:
isPossibleMatch("foo.c", "c:/projects/eclipse/Proj/mod1/util/micro/foo.c");
Since "location" ("foo.c") is not absolutely, isPossibleMatch does:
int prefixLen = absoluteLocation.segmentCount() - location.segmentCount();
return prefixLen >= 0 &&
absoluteLocation.removeFirstSegments(prefixLen).equals(locat ion);
The problem is that removeFirstSegments intentionally does not remove the
device ID, so this comparison becomes:
"c:foo.c".equals("foo.c")
Since that is false, isPossibleMatch returns false, and the findFileName
returns null.
Now, that may be a bug. For non-absolute paths is seems like
isPossibleMatch should call a removeFirstSegments that also removes the
device ID. However, the solution for my error parser was to simply not
strip the path before calling findFileName. So now I do:
IFile file =
errorParserManager.findFileName("c:\projects\eclipse\Proj\mod1\util\micro\foo.c ");
findFileName strips the path itself before querying its map, but leaves
the path intact when calling isPossibleMatch. isPosibleMatch uses a
different check when its given an absolute location:
return location.equals(absoluteLocation);
This returns true, so findFileName returns the IFile resource from
fFilesInProject, and everything's OK.

Similar Messages

  • [svn] 2877: Added a "flex4-compile" target in the top-level Ants script for easily recompiling flex4.swc.

    Revision: 2877
    Author: [email protected]
    Date: 2008-08-18 18:15:18 -0700 (Mon, 18 Aug 2008)
    Log Message:
    Added a "flex4-compile" target in the top-level Ants script for easily recompiling flex4.swc. It is similar to "framework-compile" and "airframework-compile".
    Reviewer: N/A
    Bugs: -
    QA: No
    Doc: No
    Modified Paths:
    flex/sdk/trunk/build.xml

    In the default php.ini is set open_basedir which limits work with php only to few directories (and directories bellow them). There is set /srv/http, /home,/tmp and /usr/share/pear by default.
    To allow your vhost you should add /data/www or set empty value.

  • Adding an xml plugin in eclipse

    Hi all,
    I am trying to add an existing xml plugin (which is in the eclipse plugins directory) to TTworkbench(which is eclipse based), i tried first to copy all the jar files in the eclipse plugins directory and paste them in the TTworkbench plugins directory then the xml editor is added successfully but i want to know what are the exact jar files that are needed to edit xml in eclipse???? as i don't need all those jar files...
    Thx in advance

    Do a getElementsByTagName on a node and do a
    insert on each node found.

  • VOTE FOR YOUR BEST ADDED PLUGIN.   WHAT ARE SOME PLUGINS WELL WORTH THE $$

    Always like to see peoples opinions about added plugins for logic pro.
    WHAT ARE SOME GREAT PLUGINS WELL WORTH THE MONEY?
    TYPE OF SOUND CAN BE SYNTHS/EFFECTS WHATEVER YOU LIKE.

    i've stopped using external plugins cause it always ended up with some issues :
    - plugins would have some bugs
    - plugins would need to be updated all the time, and the new version would mess up with my songs
    - automation would not work properly
    - settings would not have been saved properly with the song ...
    of course i'm exagerating but :
    - logic already has plenty of plugins all sounding well and covering everything you need
    - i don't master half of them yet
    - there's always a way to achieve the same sound of an other plugin / technic, may it be less easy
    - any of my songs could be opened with any Logic Pro 7 in the world
    - i feel like plugins are the new video games. my friend don't play video game anymore, they download plugins and rave about the latest ones. i don't need plugins to get creative, and when i have an idea of a sound or a song, i've never thought "**** i need reaktor" or anything.
    just my two cents !
    bontempi

  • [svn] 2283: adding FlexClientManagerControl MBean tests to correct location under runtime\messaging\client

    Revision: 2283
    Author: [email protected]
    Date: 2008-06-27 11:01:17 -0700 (Fri, 27 Jun 2008)
    Log Message:
    adding FlexClientManagerControl MBean tests to correct location under runtime\messaging\client
    Added Paths:
    blazeds/branches/3.0.x/qa/apps/qa-regress/testsuites/mxunit/tests/MBean/runtime/messaging /client/
    blazeds/branches/3.0.x/qa/apps/qa-regress/testsuites/mxunit/tests/MBean/runtime/messaging /client/FlexClientManagerControl.mxml

    The C compiler and optimizations are specified in the $ORACLE_HOME/javavm/jahome/Settings_os.properties file.
    On Linux (on Solaris these are slightly different but quite similar to
    Linux):CC = gcc
    c.compile.opt.level = -O3
    LINK_COMMAND = ld -shared -h $(@:f) -o $@ $<
    On Windows:
    CC = $(visual.c.home)/bin/cl
    c.compile.flags.platform = -Ox -Oy-
    LINK_COMMAND = $(visual.c.home)/bin/LINK /DLL /OUT:$@ \
    /LIBPATH:"$(visual.c.home)/lib" /DEF:$(*:b).def $< \
    $(oracle.home)/lib/orajox10.lib /NODEFAULTLIB msvcrt.libkernel32.lib
    You can find more details on NCOMP in chapter 2 of my book
    Kuassi, http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html

  • [svn:osmf:] 13113: Changing to not use an embedded font by default, and adding instructions on how to use the free 'type writer' bitmap font.

    Revision: 13113
    Revision: 13113
    Author:   [email protected]
    Date:     2009-12-21 01:08:10 -0800 (Mon, 21 Dec 2009)
    Log Message:
    Changing to not use an embedded font by default, and adding instructions on how to use the free 'type writer' bitmap font.
    Modified Paths:
        osmf/trunk/libs/ChromeLibrary/.flexLibProperties
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/widgets/ScrubBar.as
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/widgets/URLInput.as
    Added Paths:
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/fonts/
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/fonts/Fonts.as
    Removed Paths:
        osmf/trunk/libs/ChromeLibrary/assets/images/stop_up.png_1

    Your site was built using tables, whose sizes are defined in your site.
    If we look at your first table definition, we can see:
    <table width="861" height="1449" border="3" cellpadding="0" cellspacing="0" bordercolor="#868787">
    Your table has a width of 861 pixels and an overall height of 1449 pixels. Anything you put into that overall box must fit those dimensions, else
    it won't be visible. Anything you add above it will push everything down. You can redefine your sizing to let you edit more inside of the table elements.
    This is why, when you type in more text, things act weird. If you are in Dreamweaver, you must find the right cell to put your text into and then enter
    text there. Unfortunately, this is going to push things around, which were all lined up using tables. And this gets everything offset with respect to
    everything else in your website.
    And that is why everyone is saying, "Start Over!"
    I just inherited a website that has been put together using tables. I'm going to have to expend considerable effort in rewriting the entire design of the
    website because of that. because everything I intend to add to the pages on the site is going to need to be deconstructed in order to get it to work
    properly if I'm adding text and pictures that need to line up with each other.
    You need something done quick and dirty and the only way I can recommend you do that is to use Dreamweaver to show you the tables you have
    and put what you need in a new table that is defined above or below the tables you all ready have defined. Do that and then get back to someone here
    who knows how to make a website correctly to clean up your entire website and make it editable -- which will cost you some money, but it will be
    money well-spent.
    I like to quote this maxim: Good, Fast, Cheap. Pick any two. This works for website design. You can get it fast and cheap, but it won't be good. I
    think you may have chosen that route.

  • [svn:osmf:] 11341: Added some unit tests to get the metadata package above 80%

    Revision: 11341
    Author:   [email protected]
    Date:     2009-10-30 16:24:35 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Added some unit tests to get the metadata package above 80%
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestTemporalFacet.as

    The nature of the Media class is that it accesses it asynchronously. This means that when you create an instance of it, and then immediately query it, the data you want may not be available yet. This is all in the Javadoc, see the doc for Media:
    The media information is obtained asynchronously and so not necessarily available immediately after instantiation of the class. All information should however be available if the instance has been associated with a MediaPlayer and that player has transitioned to MediaPlayer.Status.READY statusSo you could associate the Media with a MediaPlayer, and then wait until it goes to the Status READY, and then read the length of the Media.
    As for your 2nd question, getMetadata() returns a Map. You can just loop through it:
      for(Map.Entry<String, Object> entry : media.getMetadata()) {
        // etc
      }However, the same restrictions apply as with Media -- you will probably need to wait before the information is available -- that's why the Listener approach works, because it will notify you as soon as the information is added to the map.

  • [svn:fx-trunk] 12556: Added @private to various overrides in the new spark. accessibility classes.

    Revision: 12556
    Revision: 12556
    Author:   [email protected]
    Date:     2009-12-04 14:49:03 -0800 (Fri, 04 Dec 2009)
    Log Message:
    Added @private to various overrides in the new spark.accessibility classes. These classes are now included in ASDoc builds and I noticed that overrides we don't want to see were showing up.
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: None
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarAccImpl.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SpinnerAccImpl.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/VideoPlayerAccImpl.as

    Thats good news.

  • [svn] 1307: modules: added support for automatically adding " use namespace X", depending on the -target-player value

    Revision: 1307
    Author: [email protected]
    Date: 2008-04-18 16:28:33 -0700 (Fri, 18 Apr 2008)
    Log Message:
    modules: added support for automatically adding "use namespace X", depending on the -target-player value
    * similar to how we add "use namespace AS3"
    * symmetric with ASC's -use feature, however we don't have equivalent commandline support yet
    Bugs: n/a
    QA: Nothing in particular, except for testing the new functionality of -target-player (email me about this)
    Doc: Maybe: If we doc about "use namespace AS3" being added to all Flex compiles, we may want to talk about this.
    Reviewers: Pete and Erik
    Modified Paths:
    flex/sdk/trunk/frameworks/flex-config.xml
    flex/sdk/trunk/lib/asc.jar
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/BatchCompiler.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/Compiler.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/ScriptCompiler.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Parser.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/Context.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/ContextStatics.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SymbolTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/MetaDataParser.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/DefaultsConfigurator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/TypeTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/AtEmbed.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tools/SwfxPrinter.java

    Thanks for your attention.
    In the above logs, higher resolutions seems to be detected on both screens, hence my surprise :
    [ 391.631] (II) intel(0): Printing probed modes for output LVDS1
    [ 391.631] (II) intel(0): Modeline "1600x900"x60.0 110.00 1600 1664 1706 2010 900 903 906 912 -hsync -vsync (54.7 kHz eP)
    [ 391.897] (II) intel(0): Printing probed modes for output HDMI1
    [ 391.897] (II) intel(0): Modeline "1680x1050"x59.9 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz eP)
    If it can help here is also my current xrandr output (after having called it manually to use the preferred resolution of each screen)
    itanguy ~ $ xrandr
    Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192
    LVDS1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
    1600x900 60.0*+ 40.0
    1024x768 60.0
    800x600 60.3 56.2
    640x480 59.9
    VGA1 disconnected (normal left inverted right x axis y axis)
    HDMI1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 434mm x 270mm
    1680x1050 59.9*+
    1280x1024 75.0 60.0
    1152x864 75.0
    1024x768 75.1 60.0
    800x600 75.0 60.3
    640x480 75.0 60.0
    720x400 70.1
    DP1 disconnected (normal left inverted right x axis y axis)
    HDMI2 disconnected (normal left inverted right x axis y axis)
    HDMI3 disconnected (normal left inverted right x axis y axis)
    DP2 disconnected (normal left inverted right x axis y axis)
    DP3 disconnected (normal left inverted right x axis y axis)
    If needed, I may reboot and provide xrandr output after boot (it will be 1024x768), or could other logs help you ? Please ask...

  • [svn:osmf:] 11626: Added TestContentProtectable Trait's test to the 10. 0 build target (previously was protected via 10.1 compile target).

    Revision: 11626
    Author:   [email protected]
    Date:     2009-11-10 12:15:58 -0800 (Tue, 10 Nov 2009)
    Log Message:
    Added TestContentProtectable Trait's test to the 10.0 build target (previously was protected via 10.1 compile target).
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/MediaFrameworkTests.as

    Hi
    The issue "Unable to set the transaction attribute for method 'retrieveUserInfo(Login)' on EJB 'UserBean'. No matching method could be found." seems like a known issue.
    There is a workaround to update the build.xml of the ejb project, to avoid this issue. The bug number for the issue is
    CR302494
    You can create a support case at http://support.bea.com and refer to the CR (CR302494) and a support enginner can guide you through the workaround.
    Vimala-

  • [svn:fx-trunk] 5873: Adding support for [Alternative] metadata to the asdoc tool.

    Revision: 5873
    Author: [email protected]
    Date: 2009-04-02 09:46:24 -0700 (Thu, 02 Apr 2009)
    Log Message:
    Adding support for [Alternative] metadata to the asdoc tool.
    QE Notes: None.
    Doc Notes: None.
    Reviewed by: Paul
    tests: checkintests, asdoc
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/MetaDataEvaluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelGenerator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java

  • [svn:fx-trunk] 11989: Added Jody's TabBar example and the TabBar icon.

    Revision: 11989
    Revision: 11989
    Author:   [email protected]
    Date:     2009-11-19 09:13:28 -0800 (Thu, 19 Nov 2009)
    Log Message:
    Added Jody's TabBar example and the TabBar icon.   This feature should be OK to officially sign-off now.
    QE notes:
    Doc notes:
    Bugs:
    Reviewer: Hans
    Tests run:
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/components/examples/TabBarExam ple.mxml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TabBar.png

    I am not sure what's happening with IE9 (no live site) but I had real problems viewing your code in Live View - until I removed the HTML comment marked below. Basically your site was viewable in Design View but as soon a I hit Live view, it disappeared - much like IE9. See if removing the comment solves your issue.
    <style type="text/css">
    <!-- /*Remove this */
    body {
        margin: 0;
        padding: 0;
        color: #000;
        background:url(Images/websitebackgroundhomee.jpg) repeat scroll 0 0;
        font-family: David;
        font-size: 15px;
        height:100%;

  • HT1423 I am adding more memory, should I replace the top two slots with the 4g memory modules, then place 2g memory modules on bottom slots. Does it even matter?

    I am adding more memory, should I replace the top two slots with the 4g memory modules, then place 2g memory modules on bottom slots. Does it even matter?

    I am adding more memory, should I replace the top two slots with the 4g memory modules, then place 2g memory modules on bottom slots. Does it even matter?

  • Newly added discoverer responsibility does not open the workbook sheets

    Adding reports to newly added discoverer responsibility does not open the workbook sheets
    Actually its a new responsibility where i add existing workbook, also shared the business area but when trying to execute the report through my user firstly it says "Workbbok cannot be expanded, Unable to open workbook" later when i close the page i get the below error
    “Contact with the Discover server has been lost. To continue with your work, please restart Discoverer Plus. If this problem persists, please contact your Oracle Application Server Administrator” error message.
    Please suggest.

    Hi,
    You need to run a trace for this user to diagnose this issue. Look at note 133055.1 for more details.
    Rod West

  • Adding field GAMNG ( Target Quantity )in the Data Source 2LIS_04_P_ARBPL

    We are adding field GAMNG ( Target Quantity ) in the Data Source 2LIS_04_P_ARBPL ( Work Center View from PP/PP-PI )
    The field GAMNG is available in the communication structure maintainace.
    The problem is- We are not able to drag & drap field GAMNG from the Communication structure LBWE. Getting the error - End phase  002 ***********************************************************
    Message no. D0322 ..
    We deleted Setup table , Meins field already exist in comm str.
    1. How we able to drag the field from the communication structure as getting the above error. We searched SDN & try to follow that method but not working.
    2. We can add the field in SE11 - Structure -Manually, then we have to write ABAP code.
    Kindly suggest correct answer.
    Edited by: sk kamaruzzaman on Dec 20, 2011 2:08 PM

    Hi,
    There could be a number of reasons why you are getting the error:
    1. Fields are not assigned to datatypes.
        - Check structure in SE11 and assign to datatypes.
    2. There are inactive appends in the extract structure.
        - Double-click one of the includes. You will get a new screen with the INCLUDE structure. Click the button append-structure. Check if the append is inactive.
    3. The appended structure is in a different development class from the one of the structure it is being appended to.
    Please review and apply the following notes carefully :
      766603  Activation problems with extract structures
      623411  LBWE: Gener. terminates with D0 322 (end phase 002)
      757923  LBWE: Generation terminates with D0 322 (end phase
      600708  D0 322: End phase 002
    It is not possible to enhance the datasource 2lis_04_MATNR with the field GAMNG (so its possible that its the same for 2LIS_04_P_ARBPL) because GAMNG has the reference field AMEIN, which has a STATE F (forbidden) in table TMCEXCFS .
    Check to see if this is the same on your system.
    Rgds,
    Colum

Maybe you are looking for