1. 14 Aug, 2015 1 commit
    • vogelheim's avatar
      Rework startup-data-util. · c69e2eae
      vogelheim authored
      - Make the API look like v8::V8::InitializeICU.
        (That is: A static method call, not an object to be created on the stack.)
      - Fix path separator on Windows, by calling base::OS::isPathSeparator.
      - Move into API, so that it can be called by hello-world & friends.
      - Actually call it from hello-world and friends.
      
      R=jochen@chromium.org
      BUG=
      
      Review URL: https://codereview.chromium.org/1292053002
      
      Cr-Commit-Position: refs/heads/master@{#30174}
      c69e2eae
  2. 10 Jul, 2015 1 commit
  3. 06 Jul, 2015 1 commit
  4. 15 May, 2015 1 commit
  5. 29 Apr, 2015 1 commit
  6. 28 Apr, 2015 1 commit
  7. 12 Mar, 2015 1 commit
  8. 09 Mar, 2015 1 commit
  9. 12 Feb, 2015 1 commit
    • marja's avatar
      Parsing: Make Parser not know about Isolate during background parsing. · df0cb999
      marja authored
      Parser must be able to operate independent of Isolate and the V8 heap during
      parsing. After the heap-independent phase, there is a heap dependent phase,
      during which we internalize strings, handle errors, etc.
      
      This makes Isolate (also via CompilationInfo) unaccessible during parsing, and
      thus decreases the probability of accidental code changes which would add
      heap-dependent operations into the heap-independent phase.
      
      Since Isolate is also accessible via CompilationInfo, now CompilationInfo is
      only passed to the entry points of parsing, and not stored in Parser.
      
      R=rossberg@chromium.org
      BUG=
      
      Review URL: https://codereview.chromium.org/908173003
      
      Cr-Commit-Position: refs/heads/master@{#26612}
      df0cb999
  10. 19 Sep, 2014 1 commit
  11. 18 Sep, 2014 2 commits
  12. 10 Sep, 2014 1 commit
  13. 04 Aug, 2014 1 commit
  14. 16 Jul, 2014 1 commit
    • vogelheim@chromium.org's avatar
      Change ScriptCompiler::CompileOptions to allow for two 'cache' modes · a42612b4
      vogelheim@chromium.org authored
      (parser or code) and to be explicit about cache consumption or production
      (rather than making presence of cached_data imply one or the other.)
      
      Also add a --cache flag to d8, to allow testing the functionality.
      
      -----------------------------
      API change
      
      Reason: Currently, V8 supports a 'parser cache' for repeatedly executing the same script. We'd like to add a 2nd mode that would cache code, and would like to let the embedder decide which mode they chose (if any).
      
      Note: Previously, the 'use cached data' property was implied by the presence of the cached data itself. (That is, kNoCompileOptions and source->cached_data != NULL.) That is no longer sufficient, since the presence of data is no longer sufficient to determine /which kind/ of data is present.
      
      Changes from old behaviour:
      
      - If you previously didn't use caching, nothing changes.
      Example:
        v8::CompileUnbound(isolate, source, kNoCompileOptions);
      
      - If you previously used caching, it worked like this:
      
        - 1st run:
        v8::CompileUnbound(isolate, source, kProduceToCache);
        Then, source->cached_data would contain the
        data-to-be cached. This remains the same, except you
        need to tell V8 which type of data you want.
        v8::CompileUnbound(isolate, source, kProduceParserCache);
      
        - 2nd run:
        v8::CompileUnbound(isolate, source, kNoCompileOptions);
        with source->cached_data set to the data you received in
        the first run. This will now ignore the cached data, and
        you need to explicitly tell V8 to use it:
        v8::CompileUnbound(isolate, source, kConsumeParserCache);
      -----------------------------
      
      BUG=
      R=marja@chromium.org, yangguo@chromium.org
      
      Review URL: https://codereview.chromium.org/389573006
      
      git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22431 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
      a42612b4
  15. 03 Jul, 2014 2 commits
  16. 30 Jun, 2014 1 commit
  17. 24 Jun, 2014 1 commit
  18. 18 Jun, 2014 1 commit
  19. 13 Jun, 2014 1 commit
  20. 03 Jun, 2014 1 commit
  21. 08 May, 2014 1 commit
  22. 22 Apr, 2014 2 commits
  23. 11 Apr, 2014 1 commit
  24. 04 Apr, 2014 1 commit
    • marja@chromium.org's avatar
      Update tests to use the new compilation API + related fixes. · 3d1a17c2
      marja@chromium.org authored
      Esp. get rid of PreCompile in tests, as it's going to be removed.
      
      Notes:
      - The new compilation API doesn't have a separate precompilation phase, so there
      is no separate way to check for errors except checking the compilation
      errors. Removed some tests which don't make sense any more.
      - test-api/Regress31661 didn't make sense as a regression test even before the
      compilation API changes, because Blink doesn't precompile this short scripts. So
      detecting this kind of errors (see crbug.com/31661 for more information) cannot rely
      on precompilation errors.
      - test-parsing/PreParserStrictOctal has nothing to do with PreParser, and the comment
      about "forcing preparsing" was just wrong.
      - test-api/PreCompile was supposed to test that "pre-compilation (aka
      preparsing) can be called without initializing the whole VM"; that's no longer
      true, since there's no separate precompilation step in the new compile
      API. There are other tests (test-parsing/DontRegressPreParserDataSizes) which
      ensure that we produce cached data.
      - Updated tests which test preparsing to use PreParser directly (not via the
       preparsing API).
      - In the new compilation API, the user doesn't need to deal with ScriptData
      ever. It's only used internally, and needed in tests that test internal aspects
      (e.g., modify the cached data before passing it back).
      - Some tests which used to test preparse + parse now test first time parse +
        second time parse, and had to be modified to ensure we don't hit the
        compilation cache.
      
      BUG=
      R=ulan@chromium.org
      
      Review URL: https://codereview.chromium.org/225743002
      
      git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20511 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
      3d1a17c2
  25. 24 Mar, 2014 1 commit