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

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

Issue 334006: Simple toplevel code generator support for short-circuited boolean OR... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 2 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 friend class Result; 619 friend class Result;
620 friend class FastCodeGenerator; 620 friend class FastCodeGenerator;
621 friend class CodeGenSelector; 621 friend class CodeGenSelector;
622 622
623 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc 623 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc
624 624
625 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 625 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
626 }; 626 };
627 627
628 628
629 class ToBooleanStub: public CodeStub {
630 public:
631 ToBooleanStub() { }
632
633 void Generate(MacroAssembler* masm);
634
635 private:
636 Major MajorKey() { return ToBoolean; }
637 int MinorKey() { return 0; }
638 };
639
640
629 // Flag that indicates whether how to generate code for the stub. 641 // Flag that indicates whether how to generate code for the stub.
630 enum GenericBinaryFlags { 642 enum GenericBinaryFlags {
631 NO_GENERIC_BINARY_FLAGS = 0, 643 NO_GENERIC_BINARY_FLAGS = 0,
632 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub. 644 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub.
633 }; 645 };
634 646
635 647
636 class GenericBinaryOpStub: public CodeStub { 648 class GenericBinaryOpStub: public CodeStub {
637 public: 649 public:
638 GenericBinaryOpStub(Token::Value operation, 650 GenericBinaryOpStub(Token::Value operation,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 void SetArgsReversed() { args_reversed_ = true; } 725 void SetArgsReversed() { args_reversed_ = true; }
714 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } 726 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; }
715 bool HasArgumentsInRegisters() { return args_in_registers_; } 727 bool HasArgumentsInRegisters() { return args_in_registers_; }
716 bool HasArgumentsReversed() { return args_reversed_; } 728 bool HasArgumentsReversed() { return args_reversed_; }
717 }; 729 };
718 730
719 731
720 } } // namespace v8::internal 732 } } // namespace v8::internal
721 733
722 #endif // V8_IA32_CODEGEN_IA32_H_ 734 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/fast-codegen.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | src/ia32/fast-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698