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

Side by Side Diff: src/ic.h

Issue 7037025: Fix handling of -0 in the unary-op IC and avoid repeated patching/transitions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 7 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 | « src/ia32/code-stubs-ia32.cc ('k') | src/ic.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 explicit TRUnaryOpIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { } 636 explicit TRUnaryOpIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { }
637 637
638 void patch(Code* code); 638 void patch(Code* code);
639 639
640 static const char* GetName(TypeInfo type_info); 640 static const char* GetName(TypeInfo type_info);
641 641
642 static State ToState(TypeInfo type_info); 642 static State ToState(TypeInfo type_info);
643 643
644 static TypeInfo GetTypeInfo(Handle<Object> operand); 644 static TypeInfo GetTypeInfo(Handle<Object> operand);
645 645
646 static TypeInfo JoinTypes(TypeInfo x, TypeInfo y); 646 static TypeInfo ComputeNewType(TypeInfo type, TypeInfo previous);
647 }; 647 };
648 648
649 649
650 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. 650 // Type Recording BinaryOpIC, that records the types of the inputs and outputs.
651 class TRBinaryOpIC: public IC { 651 class TRBinaryOpIC: public IC {
652 public: 652 public:
653 653
654 enum TypeInfo { 654 enum TypeInfo {
655 UNINITIALIZED, 655 UNINITIALIZED,
656 SMI, 656 SMI,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 715
716 Token::Value op_; 716 Token::Value op_;
717 }; 717 };
718 718
719 // Helper for TRBinaryOpIC and CompareIC. 719 // Helper for TRBinaryOpIC and CompareIC.
720 void PatchInlinedSmiCode(Address address); 720 void PatchInlinedSmiCode(Address address);
721 721
722 } } // namespace v8::internal 722 } } // namespace v8::internal
723 723
724 #endif // V8_IC_H_ 724 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698