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

Side by Side Diff: src/objects.h

Issue 12385082: Make sure builtin functions don't rely on __proto__. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/mips/full-codegen-mips.cc ('k') | src/proxy.js » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4834 matching lines...) Expand 10 before | Expand all | Expand 10 after
4845 inline void set_non_instance_prototype(bool value); 4845 inline void set_non_instance_prototype(bool value);
4846 inline bool has_non_instance_prototype(); 4846 inline bool has_non_instance_prototype();
4847 4847
4848 // Tells whether function has special prototype property. If not, prototype 4848 // Tells whether function has special prototype property. If not, prototype
4849 // property will not be created when accessed (will return undefined), 4849 // property will not be created when accessed (will return undefined),
4850 // and construction from this function will not be allowed. 4850 // and construction from this function will not be allowed.
4851 inline void set_function_with_prototype(bool value); 4851 inline void set_function_with_prototype(bool value);
4852 inline bool function_with_prototype(); 4852 inline bool function_with_prototype();
4853 4853
4854 // Tells whether the instance with this map should be ignored by the 4854 // Tells whether the instance with this map should be ignored by the
4855 // __proto__ accessor. 4855 // Object.getPrototypeOf() function and the __proto__ accessor.
4856 inline void set_is_hidden_prototype() { 4856 inline void set_is_hidden_prototype() {
4857 set_bit_field(bit_field() | (1 << kIsHiddenPrototype)); 4857 set_bit_field(bit_field() | (1 << kIsHiddenPrototype));
4858 } 4858 }
4859 4859
4860 inline bool is_hidden_prototype() { 4860 inline bool is_hidden_prototype() {
4861 return ((1 << kIsHiddenPrototype) & bit_field()) != 0; 4861 return ((1 << kIsHiddenPrototype) & bit_field()) != 0;
4862 } 4862 }
4863 4863
4864 // Records and queries whether the instance has a named interceptor. 4864 // Records and queries whether the instance has a named interceptor.
4865 inline void set_has_named_interceptor() { 4865 inline void set_has_named_interceptor() {
(...skipping 4203 matching lines...) Expand 10 before | Expand all | Expand 10 after
9069 } else { 9069 } else {
9070 value &= ~(1 << bit_position); 9070 value &= ~(1 << bit_position);
9071 } 9071 }
9072 return value; 9072 return value;
9073 } 9073 }
9074 }; 9074 };
9075 9075
9076 } } // namespace v8::internal 9076 } } // namespace v8::internal
9077 9077
9078 #endif // V8_OBJECTS_H_ 9078 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698