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

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

Issue 556002: Fixing an assertion fail introduced in 3692.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 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
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 } 695 }
696 696
697 void Generate(MacroAssembler* masm); 697 void Generate(MacroAssembler* masm);
698 void GenerateSmiCode(MacroAssembler* masm, Label* slow); 698 void GenerateSmiCode(MacroAssembler* masm, Label* slow);
699 void GenerateLoadArguments(MacroAssembler* masm); 699 void GenerateLoadArguments(MacroAssembler* masm);
700 void GenerateReturn(MacroAssembler* masm); 700 void GenerateReturn(MacroAssembler* masm);
701 void GenerateHeapResultAllocation(MacroAssembler* masm, Label* alloc_failure); 701 void GenerateHeapResultAllocation(MacroAssembler* masm, Label* alloc_failure);
702 702
703 // Args in registers are always OK for ADD and SUB. Floating-point MUL and DIV 703 // Args in registers are always OK for ADD and SUB. Floating-point MUL and DIV
704 // are also OK. Though MUL and DIV on SMIs modify the original registers so 704 // are also OK. Though MUL and DIV on SMIs modify the original registers so
705 // we need to push args on stack anyway. 705 // we need to push args on stack anyway.
706 bool ArgsInRegistersSupported() { 706 bool ArgsInRegistersSupported() {
707 return ((op_ == Token::ADD) || (op_ == Token::SUB)) || 707 return ((op_ == Token::ADD) || (op_ == Token::SUB)) ||
708 (((op_ == Token::MUL) || (op_ == Token::DIV)) 708 (((op_ == Token::MUL) || (op_ == Token::DIV))
709 && (flags_ == NO_SMI_CODE_IN_STUB)); 709 && (flags_ == NO_SMI_CODE_IN_STUB));
710 } 710 }
711 bool IsOperationCommutative() { 711 bool IsOperationCommutative() {
712 return (op_ == Token::ADD) || (op_ == Token::MUL); 712 return (op_ == Token::ADD) || (op_ == Token::MUL);
713 } 713 }
714 714
715 void SetArgsInRegisters() { args_in_registers_ = true; } 715 void SetArgsInRegisters() { args_in_registers_ = true; }
716 void SetArgsReversed() { args_reversed_ = true; } 716 void SetArgsReversed() { args_reversed_ = true; }
717 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } 717 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; }
718 bool HasArgumentsInRegisters() { return args_in_registers_; } 718 bool HasArgumentsInRegisters() { return args_in_registers_; }
719 bool HasArgumentsReversed() { return args_reversed_; } 719 bool HasArgumentsReversed() { return args_reversed_; }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 Major MajorKey() { return StringCompare; } 799 Major MajorKey() { return StringCompare; }
800 int MinorKey() { return 0; } 800 int MinorKey() { return 0; }
801 801
802 void Generate(MacroAssembler* masm); 802 void Generate(MacroAssembler* masm);
803 }; 803 };
804 804
805 805
806 } } // namespace v8::internal 806 } } // namespace v8::internal
807 807
808 #endif // V8_IA32_CODEGEN_IA32_H_ 808 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698