Changeset 7e4b44db
- Timestamp:
- Mar 22, 2018, 1:20:29 PM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- bd06384
- Parents:
- 8d7bef2
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/GC.cc
r8d7bef2 r7e4b44db 17 17 18 18 #include <algorithm> 19 #include <cassert> 19 20 20 21 GC& GC::get() { … … 101 102 } 102 103 104 bool stack_check( int* i, GC_Object* o ) { 105 int j; 106 return ( i < &j ) == ( (void*)o < (void*)&j ); 107 } 108 103 109 GC_Object::GC_Object() { 104 110 GC::get().register_object( this ); 111 112 int i; 113 assert(!stack_check(&i, this)); 105 114 } 106 115 -
src/Common/PassVisitor.h
r8d7bef2 r7e4b44db 148 148 virtual void visit( Subrange * subrange ) override final; 149 149 150 virtual void visit( Constant * constant ) overridefinal;150 virtual void visit( Constant * constant ) final; 151 151 152 152 virtual void visit( Attribute * attribute ) override final; … … 245 245 virtual Subrange * mutate( Subrange * subrange ) override final; 246 246 247 virtual Constant * mutate( Constant * constant ) overridefinal;247 virtual Constant * mutate( Constant * constant ) final; 248 248 249 249 virtual Attribute * mutate( Attribute * attribute ) override final; -
src/SynTree/Constant.h
r8d7bef2 r7e4b44db 19 19 #include <string> // for string 20 20 21 #include "BaseSyntaxNode.h"22 21 #include "Mutator.h" // for Mutator 23 22 #include "Visitor.h" // for Visitor 24 23 24 #include "Common/Indenter.h" // for Indenter 25 25 26 class Type; 26 27 27 class Constant : public BaseSyntaxNode{28 class Constant { 28 29 public: 29 30 Constant( Type * type, std::string rep, unsigned long long val );
Note: See TracChangeset
for help on using the changeset viewer.