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

Side by Side Diff: src/objects.h

Issue 10915062: Add checks to runtime functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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/lithium-mips.cc ('k') | src/objects.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 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 6066 matching lines...) Expand 10 before | Expand all | Expand 10 after
6077 // until an initial map is needed. 6077 // until an initial map is needed.
6078 inline bool has_prototype(); 6078 inline bool has_prototype();
6079 inline bool has_instance_prototype(); 6079 inline bool has_instance_prototype();
6080 inline Object* prototype(); 6080 inline Object* prototype();
6081 inline Object* instance_prototype(); 6081 inline Object* instance_prototype();
6082 MUST_USE_RESULT MaybeObject* SetInstancePrototype(Object* value); 6082 MUST_USE_RESULT MaybeObject* SetInstancePrototype(Object* value);
6083 MUST_USE_RESULT MaybeObject* SetPrototype(Object* value); 6083 MUST_USE_RESULT MaybeObject* SetPrototype(Object* value);
6084 6084
6085 // After prototype is removed, it will not be created when accessed, and 6085 // After prototype is removed, it will not be created when accessed, and
6086 // [[Construct]] from this function will not be allowed. 6086 // [[Construct]] from this function will not be allowed.
6087 Object* RemovePrototype(); 6087 void RemovePrototype();
6088 inline bool should_have_prototype(); 6088 inline bool should_have_prototype();
6089 6089
6090 // Accessor for this function's initial map's [[class]] 6090 // Accessor for this function's initial map's [[class]]
6091 // property. This is primarily used by ECMA native functions. This 6091 // property. This is primarily used by ECMA native functions. This
6092 // method sets the class_name field of this function's initial map 6092 // method sets the class_name field of this function's initial map
6093 // to a given value. It creates an initial map if this function does 6093 // to a given value. It creates an initial map if this function does
6094 // not have one. Note that this method does not copy the initial map 6094 // not have one. Note that this method does not copy the initial map
6095 // if it has one already, but simply replaces it with the new value. 6095 // if it has one already, but simply replaces it with the new value.
6096 // Instances created afterwards will have a map whose [[class]] is 6096 // Instances created afterwards will have a map whose [[class]] is
6097 // set to 'value', but there is no guarantees on instances created 6097 // set to 'value', but there is no guarantees on instances created
6098 // before. 6098 // before.
6099 Object* SetInstanceClassName(String* name); 6099 void SetInstanceClassName(String* name);
6100 6100
6101 // Returns if this function has been compiled to native code yet. 6101 // Returns if this function has been compiled to native code yet.
6102 inline bool is_compiled(); 6102 inline bool is_compiled();
6103 6103
6104 // [next_function_link]: Field for linking functions. This list is treated as 6104 // [next_function_link]: Field for linking functions. This list is treated as
6105 // a weak list by the GC. 6105 // a weak list by the GC.
6106 DECL_ACCESSORS(next_function_link, Object) 6106 DECL_ACCESSORS(next_function_link, Object)
6107 6107
6108 // Prints the name of the function using PrintF. 6108 // Prints the name of the function using PrintF.
6109 inline void PrintName() { 6109 inline void PrintName() {
(...skipping 2840 matching lines...) Expand 10 before | Expand all | Expand 10 after
8950 } else { 8950 } else {
8951 value &= ~(1 << bit_position); 8951 value &= ~(1 << bit_position);
8952 } 8952 }
8953 return value; 8953 return value;
8954 } 8954 }
8955 }; 8955 };
8956 8956
8957 } } // namespace v8::internal 8957 } } // namespace v8::internal
8958 8958
8959 #endif // V8_OBJECTS_H_ 8959 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698