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

Unified Diff: src/ic.cc

Issue 8417035: Introduce extended mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased version. Created 9 years, 1 month 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/ic.cc
diff --git a/src/ic.cc b/src/ic.cc
index fbe77b09d23fa7daccabb0a842ae49221adf9b77..1c4b8ddbaa8a770086d766c4e26c5e82a74149d6 100644
--- a/src/ic.cc
+++ b/src/ic.cc
@@ -435,7 +435,8 @@ void CallICBase::ReceiverToObjectIfRequired(Handle<Object> callee,
if (callee->IsJSFunction()) {
Handle<JSFunction> function = Handle<JSFunction>::cast(callee);
- if (function->shared()->strict_mode() || function->IsBuiltin()) {
+ if (function->shared()->is_strict_or_extended_mode() ||
+ function->IsBuiltin()) {
// Do not wrap receiver for strict mode functions or for builtins.
return;
}

Powered by Google App Engine
This is Rietveld 408576698