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

Side by Side 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: Address comments. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ast.cc ('k') | src/compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 738
739 Major MajorKey() { return CallFunction; } 739 Major MajorKey() { return CallFunction; }
740 int MinorKey() { 740 int MinorKey() {
741 // Encode the parameters in a unique 32 bit value. 741 // Encode the parameters in a unique 32 bit value.
742 return InLoopBits::encode(in_loop_) 742 return InLoopBits::encode(in_loop_)
743 | FlagBits::encode(flags_) 743 | FlagBits::encode(flags_)
744 | ArgcBits::encode(argc_); 744 | ArgcBits::encode(argc_);
745 } 745 }
746 746
747 InLoopFlag InLoop() { return in_loop_; } 747 InLoopFlag InLoop() { return in_loop_; }
748 bool ReceiverMightBeValue() { 748
749 return (flags_ & RECEIVER_MIGHT_BE_VALUE) != 0; 749 bool ReceiverMightBeImplicit() {
750 return (flags_ & RECEIVER_MIGHT_BE_IMPLICIT) != 0;
750 } 751 }
751 }; 752 };
752 753
753 754
754 enum StringIndexFlags { 755 enum StringIndexFlags {
755 // Accepts smis or heap numbers. 756 // Accepts smis or heap numbers.
756 STRING_INDEX_IS_NUMBER, 757 STRING_INDEX_IS_NUMBER,
757 758
758 // Accepts smis or heap numbers that are valid array indices 759 // Accepts smis or heap numbers that are valid array indices
759 // (ECMA-262 15.4). Invalid indices are reported as being out of 760 // (ECMA-262 15.4). Invalid indices are reported as being out of
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 DECLARE_ARRAY_STUB_PRINT(KeyedStoreExternalArrayStub) 1002 DECLARE_ARRAY_STUB_PRINT(KeyedStoreExternalArrayStub)
1002 1003
1003 protected: 1004 protected:
1004 ExternalArrayType array_type_; 1005 ExternalArrayType array_type_;
1005 }; 1006 };
1006 1007
1007 1008
1008 } } // namespace v8::internal 1009 } } // namespace v8::internal
1009 1010
1010 #endif // V8_CODE_STUBS_H_ 1011 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698