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

Side by Side Diff: src/objects.h

Issue 159583: Change the check for builtin functions to not be based on identity,... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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/debug.cc ('k') | src/objects-inl.h » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after
3168 // when the function is invoked, e.g. foo() or new foo(). See 3168 // when the function is invoked, e.g. foo() or new foo(). See
3169 // [[Call]] and [[Construct]] description in ECMA-262, section 3169 // [[Call]] and [[Construct]] description in ECMA-262, section
3170 // 8.6.2, page 27. 3170 // 8.6.2, page 27.
3171 inline Code* code(); 3171 inline Code* code();
3172 inline void set_code(Code* value); 3172 inline void set_code(Code* value);
3173 3173
3174 // Tells whether this function is a context-independent boilerplate 3174 // Tells whether this function is a context-independent boilerplate
3175 // function. 3175 // function.
3176 inline bool IsBoilerplate(); 3176 inline bool IsBoilerplate();
3177 3177
3178 // Tells whether this function is builtin.
3179 inline bool IsBuiltin();
3180
3178 // [literals]: Fixed array holding the materialized literals. 3181 // [literals]: Fixed array holding the materialized literals.
3179 // 3182 //
3180 // If the function contains object, regexp or array literals, the 3183 // If the function contains object, regexp or array literals, the
3181 // literals array prefix contains the object, regexp, and array 3184 // literals array prefix contains the object, regexp, and array
3182 // function to be used when creating these literals. This is 3185 // function to be used when creating these literals. This is
3183 // necessary so that we do not dynamically lookup the object, regexp 3186 // necessary so that we do not dynamically lookup the object, regexp
3184 // or array functions. Performing a dynamic lookup, we might end up 3187 // or array functions. Performing a dynamic lookup, we might end up
3185 // using the functions from a new context that we should not have 3188 // using the functions from a new context that we should not have
3186 // access to. 3189 // access to.
3187 DECL_ACCESSORS(literals, FixedArray) 3190 DECL_ACCESSORS(literals, FixedArray)
(...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
4785 } else { 4788 } else {
4786 value &= ~(1 << bit_position); 4789 value &= ~(1 << bit_position);
4787 } 4790 }
4788 return value; 4791 return value;
4789 } 4792 }
4790 }; 4793 };
4791 4794
4792 } } // namespace v8::internal 4795 } } // namespace v8::internal
4793 4796
4794 #endif // V8_OBJECTS_H_ 4797 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698