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

Unified Diff: src/hydrogen-instructions.h

Issue 111613003: Load the global proxy from the context of the target function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: don't embed global object or receiver in hydrogen Created 7 years 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 df8d2dcb61d54a4a9d3c5cbb15c3387878394512..73b9976294fc0c1ecc4704fa1bb4acad5b60aea3 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -2399,7 +2399,8 @@ class HCallNamed V8_FINAL : public HUnaryCall {
enum CallMode {
NORMAL_CALL,
- TAIL_CALL
+ TAIL_CALL,
+ NORMAL_CONTEXTUAL_CALL
};
@@ -2410,7 +2411,7 @@ class HCallFunction V8_FINAL : public HBinaryCall {
HCallFunction, HValue*, int, CallMode);
bool IsTailCall() const { return call_mode_ == TAIL_CALL; }
-
+ bool IsContextualCall() const { return call_mode_ == NORMAL_CONTEXTUAL_CALL; }
HValue* context() { return first(); }
HValue* function() { return second(); }

Powered by Google App Engine
This is Rietveld 408576698