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

Unified Diff: src/mips/lithium-mips.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/mips/lithium-mips.h
diff --git a/src/mips/lithium-mips.h b/src/mips/lithium-mips.h
index 45754aa437ad14370e5a38081261614d83be94c7..d5138c289b337c832dbeb1fe6fad4ec996728b6e 100644
--- a/src/mips/lithium-mips.h
+++ b/src/mips/lithium-mips.h
@@ -91,6 +91,7 @@ class LCodeGen;
V(DeclareGlobals) \
V(DeleteProperty) \
V(Deoptimize) \
+ V(DeoptimizeIfTaggedIsNotSmi) \
V(DivI) \
V(DoubleToI) \
V(DummyUse) \
@@ -2151,6 +2152,19 @@ class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
};
+class LDeoptimizeIfTaggedIsNotSmi: public LTemplateInstruction<0, 1, 0> {
+ public:
+ explicit LDeoptimizeIfTaggedIsNotSmi(LOperand* value) {
+ inputs_[0] = value;
+ }
+
+ LOperand* value() { return inputs_[0]; }
+
+ DECLARE_CONCRETE_INSTRUCTION(DeoptimizeIfTaggedIsNotSmi,
+ "deoptimize-if-tagged-is-not-smi")
+};
+
+
class LCheckNonSmi: public LTemplateInstruction<0, 1, 0> {
public:
explicit LCheckNonSmi(LOperand* value) {

Powered by Google App Engine
This is Rietveld 408576698