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

Side by Side Diff: src/ic.h

Issue 6852015: Support string add in crankshaft: (Closed)
Patch Set: Review fixes and ports Created 9 years, 8 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
« no previous file with comments | « src/ia32/lithium-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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. 579 // Type Recording BinaryOpIC, that records the types of the inputs and outputs.
580 class TRBinaryOpIC: public IC { 580 class TRBinaryOpIC: public IC {
581 public: 581 public:
582 582
583 enum TypeInfo { 583 enum TypeInfo {
584 UNINITIALIZED, 584 UNINITIALIZED,
585 SMI, 585 SMI,
586 INT32, 586 INT32,
587 HEAP_NUMBER, 587 HEAP_NUMBER,
588 ODDBALL, 588 ODDBALL,
589 BOTH_STRING, // Only used for addition operation.
589 STRING, // Only used for addition operation. At least one string operand. 590 STRING, // Only used for addition operation. At least one string operand.
590 GENERIC 591 GENERIC
591 }; 592 };
592 593
593 explicit TRBinaryOpIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { } 594 explicit TRBinaryOpIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { }
594 595
595 void patch(Code* code); 596 void patch(Code* code);
596 597
597 static const char* GetName(TypeInfo type_info); 598 static const char* GetName(TypeInfo type_info);
598 599
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 642
642 Token::Value op_; 643 Token::Value op_;
643 }; 644 };
644 645
645 // Helper for TRBinaryOpIC and CompareIC. 646 // Helper for TRBinaryOpIC and CompareIC.
646 void PatchInlinedSmiCode(Address address); 647 void PatchInlinedSmiCode(Address address);
647 648
648 } } // namespace v8::internal 649 } } // namespace v8::internal
649 650
650 #endif // V8_IC_H_ 651 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698