OLD | NEW |
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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 bool IsInlineSmi(Literal* literal); | 494 bool IsInlineSmi(Literal* literal); |
495 void SmiOperation(Token::Value op, | 495 void SmiOperation(Token::Value op, |
496 StaticType* type, | 496 StaticType* type, |
497 Handle<Object> value, | 497 Handle<Object> value, |
498 bool reversed, | 498 bool reversed, |
499 OverwriteMode overwrite_mode); | 499 OverwriteMode overwrite_mode); |
500 | 500 |
501 void CallWithArguments(ZoneList<Expression*>* arguments, int position); | 501 void CallWithArguments(ZoneList<Expression*>* arguments, int position); |
502 | 502 |
503 void CheckStack(); | 503 void CheckStack(); |
504 void CleanStack(int num_bytes); | |
505 | 504 |
506 bool CheckForInlineRuntimeCall(CallRuntime* node); | 505 bool CheckForInlineRuntimeCall(CallRuntime* node); |
507 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); | 506 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); |
508 void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 507 void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
509 | 508 |
510 Handle<Code> ComputeCallInitialize(int argc); | 509 Handle<Code> ComputeCallInitialize(int argc); |
511 Handle<Code> ComputeCallInitializeInLoop(int argc); | 510 Handle<Code> ComputeCallInitializeInLoop(int argc); |
512 | 511 |
513 // Declare global variables and functions in the given array of | 512 // Declare global variables and functions in the given array of |
514 // name/value pairs. | 513 // name/value pairs. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 List<DeferredCode*> deferred_; | 609 List<DeferredCode*> deferred_; |
611 | 610 |
612 // Assembler | 611 // Assembler |
613 MacroAssembler* masm_; // to generate code | 612 MacroAssembler* masm_; // to generate code |
614 | 613 |
615 // Code generation state | 614 // Code generation state |
616 Scope* scope_; | 615 Scope* scope_; |
617 VirtualFrame* frame_; | 616 VirtualFrame* frame_; |
618 RegisterAllocator* allocator_; | 617 RegisterAllocator* allocator_; |
619 CodeGenState* state_; | 618 CodeGenState* state_; |
620 int break_stack_height_; | |
621 int loop_nesting_; | 619 int loop_nesting_; |
622 | 620 |
623 // Jump targets. | 621 // Jump targets. |
624 // The target of the return from the function. | 622 // The target of the return from the function. |
625 BreakTarget function_return_; | 623 BreakTarget function_return_; |
626 | 624 |
627 // True if the function return is shadowed (ie, jumping to the target | 625 // True if the function return is shadowed (ie, jumping to the target |
628 // function_return_ does not jump to the true function return, but rather | 626 // function_return_ does not jump to the true function return, but rather |
629 // to some unlinking code). | 627 // to some unlinking code). |
630 bool function_return_is_shadowed_; | 628 bool function_return_is_shadowed_; |
(...skipping 18 matching lines...) Expand all Loading... |
649 cgen_->set_in_spilled_code(false); | 647 cgen_->set_in_spilled_code(false); |
650 GetValue(typeof_state); | 648 GetValue(typeof_state); |
651 cgen_->frame()->SpillAll(); | 649 cgen_->frame()->SpillAll(); |
652 cgen_->set_in_spilled_code(true); | 650 cgen_->set_in_spilled_code(true); |
653 } | 651 } |
654 | 652 |
655 | 653 |
656 } } // namespace v8::internal | 654 } } // namespace v8::internal |
657 | 655 |
658 #endif // V8_CODEGEN_IA32_H_ | 656 #endif // V8_CODEGEN_IA32_H_ |
OLD | NEW |