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

Side by Side Diff: src/handles.h

Issue 6613005: Implementation of strict mode in SetElement. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: SetElement and strict mode. Created 9 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
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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 PropertyAttributes attributes = NONE); 259 PropertyAttributes attributes = NONE);
260 260
261 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, 261 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object,
262 Handle<String> key, 262 Handle<String> key,
263 Handle<Object> value, 263 Handle<Object> value,
264 PropertyAttributes attributes, 264 PropertyAttributes attributes,
265 StrictModeFlag strict); 265 StrictModeFlag strict);
266 266
267 Handle<Object> SetElement(Handle<JSObject> object, 267 Handle<Object> SetElement(Handle<JSObject> object,
268 uint32_t index, 268 uint32_t index,
269 Handle<Object> value); 269 Handle<Object> value,
270 StrictModeFlag strict_mode);
270 271
271 Handle<Object> SetOwnElement(Handle<JSObject> object, 272 Handle<Object> SetOwnElement(Handle<JSObject> object,
272 uint32_t index, 273 uint32_t index,
273 Handle<Object> value); 274 Handle<Object> value,
275 StrictModeFlag strict_mode);
274 276
275 Handle<Object> GetProperty(Handle<JSObject> obj, 277 Handle<Object> GetProperty(Handle<JSObject> obj,
276 const char* name); 278 const char* name);
277 279
278 Handle<Object> GetProperty(Handle<Object> obj, 280 Handle<Object> GetProperty(Handle<Object> obj,
279 Handle<Object> key); 281 Handle<Object> key);
280 282
281 Handle<Object> GetElement(Handle<Object> obj, 283 Handle<Object> GetElement(Handle<Object> obj,
282 uint32_t index); 284 uint32_t index);
283 285
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 private: 417 private:
416 bool has_been_transformed_; // Tells whether the object has been transformed. 418 bool has_been_transformed_; // Tells whether the object has been transformed.
417 int unused_property_fields_; // Captures the unused number of field. 419 int unused_property_fields_; // Captures the unused number of field.
418 Handle<JSObject> object_; // The object being optimized. 420 Handle<JSObject> object_; // The object being optimized.
419 }; 421 };
420 422
421 423
422 } } // namespace v8::internal 424 } } // namespace v8::internal
423 425
424 #endif // V8_HANDLES_H_ 426 #endif // V8_HANDLES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698