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

Side by Side Diff: src/objects.h

Issue 13540003: Remove code duplication in JSObject::HasRealNamedProperty (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Pass Isolate through Created 7 years, 8 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/api.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 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 MUST_USE_RESULT MaybeObject* SetFastDoubleElementsCapacityAndLength( 2027 MUST_USE_RESULT MaybeObject* SetFastDoubleElementsCapacityAndLength(
2028 int capacity, 2028 int capacity,
2029 int length); 2029 int length);
2030 2030
2031 // Lookup interceptors are used for handling properties controlled by host 2031 // Lookup interceptors are used for handling properties controlled by host
2032 // objects. 2032 // objects.
2033 inline bool HasNamedInterceptor(); 2033 inline bool HasNamedInterceptor();
2034 inline bool HasIndexedInterceptor(); 2034 inline bool HasIndexedInterceptor();
2035 2035
2036 // Support functions for v8 api (needed for correct interceptor behavior). 2036 // Support functions for v8 api (needed for correct interceptor behavior).
2037 bool HasRealNamedProperty(Name* key); 2037 bool HasRealNamedProperty(Isolate* isolate, Name* key);
2038 bool HasRealElementProperty(uint32_t index); 2038 bool HasRealElementProperty(Isolate* isolate, uint32_t index);
2039 bool HasRealNamedCallbackProperty(Name* key); 2039 bool HasRealNamedCallbackProperty(Isolate* isolate, Name* key);
2040 2040
2041 // Get the header size for a JSObject. Used to compute the index of 2041 // Get the header size for a JSObject. Used to compute the index of
2042 // internal fields as well as the number of internal fields. 2042 // internal fields as well as the number of internal fields.
2043 inline int GetHeaderSize(); 2043 inline int GetHeaderSize();
2044 2044
2045 inline int GetInternalFieldCount(); 2045 inline int GetInternalFieldCount();
2046 inline int GetInternalFieldOffset(int index); 2046 inline int GetInternalFieldOffset(int index);
2047 inline Object* GetInternalField(int index); 2047 inline Object* GetInternalField(int index);
2048 inline void SetInternalField(int index, Object* value); 2048 inline void SetInternalField(int index, Object* value);
2049 inline void SetInternalField(int index, Smi* value); 2049 inline void SetInternalField(int index, Smi* value);
(...skipping 7253 matching lines...) Expand 10 before | Expand all | Expand 10 after
9303 } else { 9303 } else {
9304 value &= ~(1 << bit_position); 9304 value &= ~(1 << bit_position);
9305 } 9305 }
9306 return value; 9306 return value;
9307 } 9307 }
9308 }; 9308 };
9309 9309
9310 } } // namespace v8::internal 9310 } } // namespace v8::internal
9311 9311
9312 #endif // V8_OBJECTS_H_ 9312 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698