Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: src/ia32/codegen-ia32.h

Issue 115744: This patch much improves our tracking of whether function is... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 340
341 // State 341 // State
342 TypeofState typeof_state() const { return state_->typeof_state(); } 342 TypeofState typeof_state() const { return state_->typeof_state(); }
343 ControlDestination* destination() const { return state_->destination(); } 343 ControlDestination* destination() const { return state_->destination(); }
344 344
345 // Track loop nesting level. 345 // Track loop nesting level.
346 int loop_nesting() const { return loop_nesting_; } 346 int loop_nesting() const { return loop_nesting_; }
347 void IncrementLoopNesting() { loop_nesting_++; } 347 void IncrementLoopNesting() { loop_nesting_++; }
348 void DecrementLoopNesting() { loop_nesting_--; } 348 void DecrementLoopNesting() { loop_nesting_--; }
349 349
350
351 // Node visitors. 350 // Node visitors.
352 void VisitStatements(ZoneList<Statement*>* statements); 351 void VisitStatements(ZoneList<Statement*>* statements);
353 352
354 #define DEF_VISIT(type) \ 353 #define DEF_VISIT(type) \
355 void Visit##type(type* node); 354 void Visit##type(type* node);
356 NODE_LIST(DEF_VISIT) 355 NODE_LIST(DEF_VISIT)
357 #undef DEF_VISIT 356 #undef DEF_VISIT
358 357
359 // Visit a statement and then spill the virtual frame if control flow can 358 // Visit a statement and then spill the virtual frame if control flow can
360 // reach the end of the statement (ie, it does not exit via break, 359 // reach the end of the statement (ie, it does not exit via break,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 479
481 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); 480 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name);
482 bool CheckForInlineRuntimeCall(CallRuntime* node); 481 bool CheckForInlineRuntimeCall(CallRuntime* node);
483 static bool PatchInlineRuntimeEntry(Handle<String> name, 482 static bool PatchInlineRuntimeEntry(Handle<String> name,
484 const InlineRuntimeLUT& new_entry, 483 const InlineRuntimeLUT& new_entry,
485 InlineRuntimeLUT* old_entry); 484 InlineRuntimeLUT* old_entry);
486 485
487 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); 486 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node);
488 void ProcessDeclarations(ZoneList<Declaration*>* declarations); 487 void ProcessDeclarations(ZoneList<Declaration*>* declarations);
489 488
490 Handle<Code> ComputeCallInitialize(int argc); 489 Handle<Code> ComputeCallInitialize(int argc, InlineCacheInLoop in_loop);
491 Handle<Code> ComputeCallInitializeInLoop(int argc);
492 490
493 // Declare global variables and functions in the given array of 491 // Declare global variables and functions in the given array of
494 // name/value pairs. 492 // name/value pairs.
495 void DeclareGlobals(Handle<FixedArray> pairs); 493 void DeclareGlobals(Handle<FixedArray> pairs);
496 494
497 // Instantiate the function boilerplate. 495 // Instantiate the function boilerplate.
498 void InstantiateBoilerplate(Handle<JSFunction> boilerplate); 496 void InstantiateBoilerplate(Handle<JSFunction> boilerplate);
499 497
500 // Support for type checks. 498 // Support for type checks.
501 void GenerateIsSmi(ZoneList<Expression*>* args); 499 void GenerateIsSmi(ZoneList<Expression*>* args);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 622
625 friend class CodeGeneratorPatcher; // Used in test-log-ia32.cc 623 friend class CodeGeneratorPatcher; // Used in test-log-ia32.cc
626 624
627 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 625 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
628 }; 626 };
629 627
630 628
631 } } // namespace v8::internal 629 } } // namespace v8::internal
632 630
633 #endif // V8_IA32_CODEGEN_IA32_H_ 631 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698