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

Side by Side Diff: src/handles.h

Issue 660243: Small API improvements: (Closed)
Patch Set: Created 10 years, 10 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
« no previous file with comments | « src/api.cc ('k') | src/handles.cc » ('j') | src/runtime.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 Handle<Object> SetElement(Handle<JSObject> object, 226 Handle<Object> SetElement(Handle<JSObject> object,
227 uint32_t index, 227 uint32_t index,
228 Handle<Object> value); 228 Handle<Object> value);
229 229
230 Handle<Object> GetProperty(Handle<JSObject> obj, 230 Handle<Object> GetProperty(Handle<JSObject> obj,
231 const char* name); 231 const char* name);
232 232
233 Handle<Object> GetProperty(Handle<Object> obj, 233 Handle<Object> GetProperty(Handle<Object> obj,
234 Handle<Object> key); 234 Handle<Object> key);
235 235
236 Handle<Object> GetElement(Handle<Object> obj,
237 uint32_t index);
238
236 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, 239 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver,
237 Handle<JSObject> holder, 240 Handle<JSObject> holder,
238 Handle<String> name, 241 Handle<String> name,
239 PropertyAttributes* attributes); 242 PropertyAttributes* attributes);
240 243
241 Handle<Object> GetPrototype(Handle<Object> obj); 244 Handle<Object> GetPrototype(Handle<Object> obj);
242 245
243 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value); 246 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value);
244 247
245 // Return the object's hidden properties object. If the object has no hidden 248 // Return the object's hidden properties object. If the object has no hidden
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 private: 373 private:
371 bool has_been_transformed_; // Tells whether the object has been transformed. 374 bool has_been_transformed_; // Tells whether the object has been transformed.
372 int unused_property_fields_; // Captures the unused number of field. 375 int unused_property_fields_; // Captures the unused number of field.
373 Handle<JSObject> object_; // The object being optimized. 376 Handle<JSObject> object_; // The object being optimized.
374 }; 377 };
375 378
376 379
377 } } // namespace v8::internal 380 } } // namespace v8::internal
378 381
379 #endif // V8_HANDLES_H_ 382 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/handles.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698