MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / AllocateStack

Method AllocateStack

src/ast/ast_allocate_stack.cpp:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 class AllocateStack : public Visitor {
108 public:
109 AllocateStack( const ProgramPtr & prog, bool permanent, bool everything, TextWriter & ls ) : logs(ls) {
110 program = prog;
111 log = prog->options.getBoolOption("log_stack");
112 log_var_scope = prog->options.getBoolOption("log_var_scope");
113 optimize = prog->getOptimize();
114 noFastCall = prog->options.getBoolOption("no_fast_call", prog->policies.no_fast_call);
115 scopedStackAllocator = prog->options.getBoolOption("scoped_stack_allocator", prog->policies.scoped_stack_allocator);
116 if( log ) {
117 logs << "\nSTACK INFORMATION in " << prog->thisModule->name << ":\n";
118 }
119 isPermanent = permanent;
120 isEverything = everything;
121 }
122 protected:
123 struct StackInfo {
124 const uint32_t startSegment;

Callers

nothing calls this directly

Calls 2

getBoolOptionMethod · 0.80
getOptimizeMethod · 0.80

Tested by

no test coverage detected