Edit

kc3-lang/angle/src/compiler/translator/InitializeDll.cpp

Branch :

  • Show log

    Commit

  • Author : Olli Etuaho
    Date : 2017-03-31 23:04:23
    Hash : 9ec79391
    Message : Use TLValueTrackingTraverser in ValidateLimitations Use TLValueTrackingTraverser to determine whether a loop index is used as an l-value. This replaces custom logic in ValidateLimitations, greatly simplifying the code. Also pass the symbol table to ValidateLimitations as a parameter, which removes the need to store a global pointer to the current ParseContext. BUG=angleproject:1960 TEST=angle_unittests, WebGL conformance tests Change-Id: I122c85c78bbea05833d7c787cd184de568c5c45f Reviewed-on: https://chromium-review.googlesource.com/465606 Commit-Queue: Olli Etuaho <oetuaho@nvidia.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>

  • src/compiler/translator/InitializeDll.cpp
  • //
    // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    #include "compiler/translator/Cache.h"
    #include "compiler/translator/InitializeDll.h"
    #include "compiler/translator/InitializeGlobals.h"
    
    #include "common/platform.h"
    
    #include <assert.h>
    
    namespace sh
    {
    
    bool InitProcess()
    {
        if (!InitializePoolIndex())
        {
            assert(0 && "InitProcess(): Failed to initalize global pool");
            return false;
        }
    
        TCache::initialize();
    
        return true;
    }
    
    void DetachProcess()
    {
        FreePoolIndex();
        TCache::destroy();
    }
    
    }  // namespace sh