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

Unified Diff: src/hydrogen-instructions.h

Issue 23537067: Add support for keyed-call on arrays of fast elements (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Compare with actual map loaded from the context Created 7 years, 3 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/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index 71bdb33ccd12d66fd1988b9badf38192c5ce6de1..5f860cb20c2bb639fc60b85cf82b5273b781abec 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -2188,21 +2188,30 @@ class HCallNamed V8_FINAL : public HUnaryCall {
class HCallFunction V8_FINAL : public HBinaryCall {
public:
- HCallFunction(HValue* context, HValue* function, int argument_count)
- : HBinaryCall(context, function, argument_count) {
+ HCallFunction(HValue* context,
+ HValue* function,
+ int argument_count,
+ bool tailcall)
danno 2013/10/02 08:49:11 Can you please turn this boolean into an enum so t
Toon Verwaest 2013/10/02 16:28:16 Done.
+ : HBinaryCall(context, function, argument_count), tailcall_(tailcall) {
}
static HCallFunction* New(Zone* zone,
HValue* context,
HValue* function,
- int argument_count) {
- return new(zone) HCallFunction(context, function, argument_count);
+ int argument_count,
+ bool tailcall = false) {
+ return new(zone) HCallFunction(context, function, argument_count, tailcall);
}
+ bool tailcall() { return tailcall_; }
+
HValue* context() { return first(); }
HValue* function() { return second(); }
DECLARE_CONCRETE_INSTRUCTION(CallFunction)
+
+ private:
+ bool tailcall_;
};
@@ -6885,6 +6894,8 @@ class HCheckMapValue V8_FINAL : public HTemplateInstruction<2> {
DECLARE_CONCRETE_INSTRUCTION(CheckMapValue)
protected:
+ virtual int RedefinedOperandIndex() { return 0; }
+
virtual bool DataEquals(HValue* other) V8_OVERRIDE {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698