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

Side by Side Diff: src/ic.h

Issue 22184004: Desugar bitwise negation into XOR and kill all UnaryOp stuff. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Feedback. 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 DECLARE_RUNTIME_FUNCTION(MaybeObject*, UnaryOpIC_Miss); 849 DECLARE_RUNTIME_FUNCTION(MaybeObject*, UnaryOpIC_Miss);
858 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure); 850 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure);
859 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); 851 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss);
860 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); 852 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss);
861 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); 853 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss);
862 854
863 855
864 } } // namespace v8::internal 856 } } // namespace v8::internal
865 857
866 #endif // V8_IC_H_ 858 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ic.cc » ('j') | src/x64/lithium-codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698