Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(79)

Unified Diff: src/cmd/gc/go.h

Issue 6868088: cmd/gc: pack Type field for lower memory use (Closed)
Patch Set: diff -r 6b602ab487d6 https://code.google.com/p/go Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/gc/go.h
===================================================================
--- a/src/cmd/gc/go.h
+++ b/src/cmd/gc/go.h
@@ -147,13 +147,13 @@
uchar copyany;
uchar local; // created in this file
uchar deferwidth;
- uchar broke; // broken type definition.
+ uchar broke; // broken type definition.
uchar isddd; // TFIELD is ... argument
uchar align;
Node* nod; // canonical OTYPE node
Type* orig; // original type (type literal or predefined type)
- int lineno;
+ int32 lineno;
// TFUNCT
uchar thistuple;
@@ -168,11 +168,11 @@
int32 vargen; // unique name for OTYPE/ONAME
Node* nname;
- vlong argwid;
+ int32 argwid;
// most nodes
Type* type; // actual type for TFIELD, element type for TARRAY, TCHAN, TMAP, TPTRxx
- vlong width; // offset in TFIELD, width in all others
+ int32 width; // offset in TFIELD, width in all others
// TFIELD
Type* down; // next struct field, also key type in TMAP
@@ -180,7 +180,7 @@
Strlit* note; // literal string annotation
// TARRAY
- vlong bound; // negative is dynamic array
+ int32 bound; // negative is dynamic array
int32 maplineno; // first use of TFORW as map key
int32 embedlineno; // first use of TFORW as embedded type
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b