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

Unified Diff: src/x64/lithium-x64.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/x64/lithium-x64.h
diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h
index 061a305354e4aafe4107a3a39dca8651692759a0..200d5f5e93da9f8812a72fc40a6b2a269366ba58 100644
--- a/src/x64/lithium-x64.h
+++ b/src/x64/lithium-x64.h
@@ -92,6 +92,7 @@ class LCodeGen;
V(DeclareGlobals) \
V(DeleteProperty) \
V(Deoptimize) \
+ V(DeoptimizeIfTaggedIsNotSmi) \
V(DivI) \
V(DoubleToI) \
V(DummyUse) \
@@ -2143,6 +2144,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 LClampDToUint8: public LTemplateInstruction<1, 1, 0> {
public:
explicit LClampDToUint8(LOperand* unclamped) {

Powered by Google App Engine
This is Rietveld 408576698