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

Unified Diff: src/code-stubs.h

Issue 7039036: Fix calls of strict mode function with an implicit receiver. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix presubmit Created 9 years, 7 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
« no previous file with comments | « src/ast.cc ('k') | src/debug.cc » ('j') | src/ia32/builtins-ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index f16a8db82598446ad057d0825cd4850c65a7e3eb..f7a823591b8e52f28d8760fba94d6d2a70594f36 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -730,8 +730,8 @@ class CallFunctionStub: public CodeStub {
// Minor key encoding in 32 bits with Bitfield <Type, shift, size>.
class InLoopBits: public BitField<InLoopFlag, 0, 1> {};
- class FlagBits: public BitField<CallFunctionFlags, 1, 1> {};
- class ArgcBits: public BitField<int, 2, 32 - 2> {};
+ class FlagBits: public BitField<CallFunctionFlags, 1, 2> {};
+ class ArgcBits: public BitField<int, 3, 32 - 3> {};
Major MajorKey() { return CallFunction; }
int MinorKey() {
@@ -742,9 +742,14 @@ class CallFunctionStub: public CodeStub {
}
InLoopFlag InLoop() { return in_loop_; }
+
bool ReceiverMightBeValue() {
return (flags_ & RECEIVER_MIGHT_BE_VALUE) != 0;
}
+
+ bool NonValueReceiverMightBeImplicit() {
+ return (flags_ & NON_VALUE_RECEIVER_MIGHT_BE_IMPLICIT) != 0;
+ }
};
« no previous file with comments | « src/ast.cc ('k') | src/debug.cc » ('j') | src/ia32/builtins-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698