parameters: ()
return_statement: return commit["number"]
docstring: Returns the commit position number of the latest v8 roll in chromium.
docstring_summary: Returns the commit position number of the latest v8 roll in chromium.
docstring_tokens: Returns the commit position number of the latest v8 roll in chromium .
function: def GetLatestV8InChromium():
    """Returns the commit position number of the latest v8 roll in chromium."""
  
    # Check currently rolled v8 revision.
    result = GetRequest(DEPS_LOG)
    if not result:
      return None
  
    # Strip security header and load json.
    commits = json.loads(result[5:])
  
    git_revision = None
    for commit in commits["log"]:
      # Get latest commit that matches the v8 roll pattern. Ignore cherry-picks.
      match = re.match(V8_COMMIT_RE, commit["message"])
      if match:
        git_revision = match.group(1)
        break
    else:
      return None
  
    # Get commit position number for v8 revision.
    result = GetRequest(CRREV % git_revision)
    if not result:
      return None
  
    commit = json.loads(result)
    assert commit["repo"] == "v8/v8"
    return commit["number"]
function_tokens: def GetLatestV8InChromium ( ) : # Check currently rolled v8 revision. result = GetRequest ( DEPS_LOG ) if not result : return None # Strip security header and load json. commits = json . loads ( result [ 5 : ] ) git_revision = None for commit in commits [ "log" ] : # Get latest commit that matches the v8 roll pattern. Ignore cherry-picks. match = re . match ( V8_COMMIT_RE , commit [ "message" ] ) if match : git_revision = match . group ( 1 ) break else : return None # Get commit position number for v8 revision. result = GetRequest ( CRREV % git_revision ) if not result : return None commit = json . loads ( result ) assert commit [ "repo" ] == "v8/v8" return commit [ "number" ]