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

Side by Side Diff: src/ic.h

Issue 6580038: [Isolates] Merge from bleeding_edge, revisions 5934-6100. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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/stub-cache-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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 // Helper function for computing the condition for a compare operation. 605 // Helper function for computing the condition for a compare operation.
606 static Condition ComputeCondition(Token::Value op); 606 static Condition ComputeCondition(Token::Value op);
607 607
608 // Helper function for determining the state of a compare IC. 608 // Helper function for determining the state of a compare IC.
609 static State ComputeState(Code* target); 609 static State ComputeState(Code* target);
610 610
611 static const char* GetStateName(State state); 611 static const char* GetStateName(State state);
612 612
613 private: 613 private:
614 State TargetState(Handle<Object> x, Handle<Object> y); 614 State TargetState(State state, bool has_inlined_smi_code,
615 Handle<Object> x, Handle<Object> y);
615 616
616 bool strict() const { return op_ == Token::EQ_STRICT; } 617 bool strict() const { return op_ == Token::EQ_STRICT; }
617 Condition GetCondition() const { return ComputeCondition(op_); } 618 Condition GetCondition() const { return ComputeCondition(op_); }
618 State GetState() { return ComputeState(target()); } 619 State GetState() { return ComputeState(target()); }
619 620
620 Token::Value op_; 621 Token::Value op_;
621 }; 622 };
622 623
624 // Helper for TRBinaryOpIC and CompareIC.
625 void PatchInlinedSmiCode(Address address);
623 626
624 } } // namespace v8::internal 627 } } // namespace v8::internal
625 628
626 #endif // V8_IC_H_ 629 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698