aslcompile.c (a009b7dcabdc27aa3fdde1f2c6dd08d4fe5a3170) aslcompile.c (f9a6772ec354ef7acdcc3de0167e31461ab78a38)
1/******************************************************************************
2 *
3 * Module Name: aslcompile - top level compile module
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 206 unchanged lines hidden (view full) ---

215
216 PrAddDefine (ASL_DEFINE, "", FALSE);
217
218 /* Preprocessor */
219
220 PrDoPreprocess ();
221 AslGbl_CurrentLineNumber = 1;
222 AslGbl_LogicalLineNumber = 1;
1/******************************************************************************
2 *
3 * Module Name: aslcompile - top level compile module
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 206 unchanged lines hidden (view full) ---

215
216 PrAddDefine (ASL_DEFINE, "", FALSE);
217
218 /* Preprocessor */
219
220 PrDoPreprocess ();
221 AslGbl_CurrentLineNumber = 1;
222 AslGbl_LogicalLineNumber = 1;
223 AslGbl_CurrentLineOffset = 0;
223
224 if (AslGbl_PreprocessOnly)
225 {
226 UtEndEvent (Event);
227 return (AE_OK);
228 }
229 }
230 UtEndEvent (Event);

--- 46 unchanged lines hidden (view full) ---

277 {
278 AslPruneParseTree (AslGbl_PruneDepth, AslGbl_PruneType);
279 }
280
281 /* Optional parse tree dump, compiler debug output only */
282
283 LsDumpParseTree ();
284
224
225 if (AslGbl_PreprocessOnly)
226 {
227 UtEndEvent (Event);
228 return (AE_OK);
229 }
230 }
231 UtEndEvent (Event);

--- 46 unchanged lines hidden (view full) ---

278 {
279 AslPruneParseTree (AslGbl_PruneDepth, AslGbl_PruneType);
280 }
281
282 /* Optional parse tree dump, compiler debug output only */
283
284 LsDumpParseTree ();
285
285 OpcGetIntegerWidth (AslGbl_ParseTreeRoot->Asl.Child);
286 UtEndEvent (Event);
287
288 /* Pre-process parse tree for any operator transforms */
289
290 Event = UtBeginEvent ("Parse tree transforms");
291 DbgPrint (ASL_DEBUG_OUTPUT, "\nParse tree transforms\n\n");
292 TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_TWICE,
293 TrAmlTransformWalkBegin, TrAmlTransformWalkEnd, NULL);
294 UtEndEvent (Event);
295
296 /* Generate AML opcodes corresponding to the parse tokens */
297
298 Event = UtBeginEvent ("Generate AML opcodes");
299 DbgPrint (ASL_DEBUG_OUTPUT, "Generating AML opcodes\n\n");
300 TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_UPWARD, NULL,
301 OpcAmlOpcodeWalk, NULL);
302 UtEndEvent (Event);
303
304 UtEndEvent (FullCompile);
305 return (AE_OK);
306
307ErrorExit:
308 UtEndEvent (FullCompile);
309 return (AE_ERROR);
310}
311

--- 14 unchanged lines hidden (view full) ---

326int
327CmDoAslMiddleAndBackEnd (
328 void)
329{
330 UINT8 Event;
331 ACPI_STATUS Status;
332
333
286 UtEndEvent (FullCompile);
287 return (AE_OK);
288
289ErrorExit:
290 UtEndEvent (FullCompile);
291 return (AE_ERROR);
292}
293

--- 14 unchanged lines hidden (view full) ---

308int
309CmDoAslMiddleAndBackEnd (
310 void)
311{
312 UINT8 Event;
313 ACPI_STATUS Status;
314
315
316 OpcGetIntegerWidth (AslGbl_ParseTreeRoot->Asl.Child);
317
318 /* Pre-process parse tree for any operator transforms */
319
320 Event = UtBeginEvent ("Parse tree transforms");
321 DbgPrint (ASL_DEBUG_OUTPUT, "\nParse tree transforms\n\n");
322 TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_TWICE,
323 TrAmlTransformWalkBegin, TrAmlTransformWalkEnd, NULL);
324 UtEndEvent (Event);
325
326 /* Generate AML opcodes corresponding to the parse tokens */
327
328 Event = UtBeginEvent ("Generate AML opcodes");
329 DbgPrint (ASL_DEBUG_OUTPUT, "Generating AML opcodes\n\n");
330 TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_UPWARD,
331 NULL, OpcAmlOpcodeWalk, NULL);
332 UtEndEvent (Event);
333
334
334 /* Interpret and generate all compile-time constants */
335
336 Event = UtBeginEvent ("Constant folding via AML interpreter");
337 DbgPrint (ASL_DEBUG_OUTPUT,
338 "Interpreting compile-time constant expressions\n\n");
339
340 if (AslGbl_FoldConstants)
341 {

--- 715 unchanged lines hidden ---
335 /* Interpret and generate all compile-time constants */
336
337 Event = UtBeginEvent ("Constant folding via AML interpreter");
338 DbgPrint (ASL_DEBUG_OUTPUT,
339 "Interpreting compile-time constant expressions\n\n");
340
341 if (AslGbl_FoldConstants)
342 {

--- 715 unchanged lines hidden ---