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

Side by Side Diff: src/ic.h

Issue 21813010: Replace BIT_NOT by XOR with ~0 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 4 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 Handle<Object> key, 707 Handle<Object> key,
708 Handle<Object> value); 708 Handle<Object> value);
709 709
710 Handle<Map> ComputeTransitionedMap(Handle<JSObject> receiver, 710 Handle<Map> ComputeTransitionedMap(Handle<JSObject> receiver,
711 KeyedAccessStoreMode store_mode); 711 KeyedAccessStoreMode store_mode);
712 712
713 friend class IC; 713 friend class IC;
714 }; 714 };
715 715
716 716
717 class UnaryOpIC: public IC {
718 public:
719 explicit UnaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) { }
720
721 MUST_USE_RESULT MaybeObject* Transition(Handle<Object> object);
722 };
723
724
725 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. 717 // Type Recording BinaryOpIC, that records the types of the inputs and outputs.
726 class BinaryOpIC: public IC { 718 class BinaryOpIC: public IC {
727 public: 719 public:
728 enum TypeInfo { 720 enum TypeInfo {
729 UNINITIALIZED, 721 UNINITIALIZED,
730 SMI, 722 SMI,
731 INT32, 723 INT32,
732 NUMBER, 724 NUMBER,
733 ODDBALL, 725 ODDBALL,
734 STRING, // Only used for addition operation. 726 STRING, // Only used for addition operation.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 MaybeObject* ToBoolean(Handle<Object> object, Code::ExtraICState state); 839 MaybeObject* ToBoolean(Handle<Object> object, Code::ExtraICState state);
848 }; 840 };
849 841
850 842
851 // Helper for BinaryOpIC and CompareIC. 843 // Helper for BinaryOpIC and CompareIC.
852 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 844 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
853 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); 845 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check);
854 846
855 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); 847 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure);
856 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedStoreIC_MissFromStubFailure); 848 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedStoreIC_MissFromStubFailure);
857 DECLARE_RUNTIME_FUNCTION(MaybeObject*, UnaryOpIC_Miss);
858 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure); 849 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure);
859 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); 850 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss);
860 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); 851 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss);
861 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); 852 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss);
862 853
863 854
864 } } // namespace v8::internal 855 } } // namespace v8::internal
865 856
866 #endif // V8_IC_H_ 857 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ic.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698