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

Unified Diff: src/ia32/lithium-ia32.h

Issue 12208013: Separated smi check from HBoundsCheck. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: src/ia32/lithium-ia32.h
diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h
index dbe54bddaf7cbbe8e6ffb24c511b1dc9423031c7..70ac76b41d167f696990d9d95caa6f2a56fe2fe1 100644
--- a/src/ia32/lithium-ia32.h
+++ b/src/ia32/lithium-ia32.h
@@ -86,6 +86,7 @@ class LCodeGen;
V(DeclareGlobals) \
V(DeleteProperty) \
V(Deoptimize) \
+ V(DeoptimizeIfTaggedIsNotSmi) \
V(DivI) \
V(DoubleToI) \
V(DummyUse) \
@@ -2275,6 +2276,19 @@ class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
};
+class LDeoptimizeIfTaggedIsNotSmi: public LTemplateInstruction<0, 1, 0> {
Jakob Kummerow 2013/02/06 13:43:59 I think we don't need a new LInstruction. Instead,
Massi 2013/02/06 19:12:31 Done.
+ public:
+ explicit LDeoptimizeIfTaggedIsNotSmi(LOperand* value) {
+ inputs_[0] = value;
+ }
+
+ LOperand* value() { return inputs_[0]; }
+
+ DECLARE_CONCRETE_INSTRUCTION(DeoptimizeIfTaggedIsNotSmi,
+ "deoptimize-if-tagged-is-not-smi")
+};
+
+
class LClampDToUint8: public LTemplateInstruction<1, 1, 0> {
public:
explicit LClampDToUint8(LOperand* value) {

Powered by Google App Engine
This is Rietveld 408576698