src/share/vm/opto/node.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/opto/node.hpp	Thu May 15 17:09:30 2014
--- new/src/share/vm/opto/node.hpp	Thu May 15 17:09:30 2014

*** 207,224 **** --- 207,222 ---- // Because Nodes come and go, I define an Arena of Node structures to pull // from. This should allow fast access to node creation & deletion. This // field is a local cache of a value defined in some "program fragment" for // which these Nodes are just a part of. // New Operator that takes a Compile pointer, this will eventually // be the "new" New operator. inline void* operator new( size_t x, Compile* C) throw() { + inline void* operator new(size_t x) throw() { + Compile* C = Compile::current(); Node* n = (Node*)C->node_arena()->Amalloc_D(x); #ifdef ASSERT n->_in = (Node**)n; // magic cookie for assertion check #endif n->_out = (Node**)C; return (void*)n; } // Delete is a NOP void operator delete( void *ptr ) {}
*** 258,268 **** --- 256,266 ---- // Shared setup for the above constructors. // Handles all interactions with Compile::current. // Puts initial values in all Node fields except _idx. // Returns the initial value for _idx, which cannot // be initialized by assignment. - inline int Init(int req, Compile* C); //----------------- input edge handling protected: friend class PhaseCFG; // Access to address of _in array elements Node **_in; // Array of use-def references to Nodes

src/share/vm/opto/node.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File