Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • compiler
  • translator
  • Compiler.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Store builtin symbols as const pointers · e5fe7aad
    Olli Etuaho authored Jan 29, 2018
    To do this we need two types of symbol table levels: A level for
    built-ins and a level for user-defined symbols. User-defined symbols
    are non-const because function symbols created based on function
    prototypes are changed when the function definition is parsed. On the
    other hand, we want to make built-in symbols constexpr, so we should
    only handle them through const pointers.
    
    This also gets rid of extra empty precision stack levels. Only one
    level is needed to store predefined precisions.
    
    BUG=angleproject:2267
    TEST=angle_unittests
    
    Change-Id: I9f14b24c2cfce272f22c16e7a8dfb653b849cbeb
    Reviewed-on: https://chromium-review.googlesource.com/892879
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    e5fe7aad
Compiler.cpp 40 KB
EditWeb IDE
×

Replace Compiler.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.