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

Side by Side Diff: src/runtime.h

Issue 88026: Added ForceSet on objects (Closed)
Patch Set: Added docs for ForceSet Created 11 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
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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 366
367 // Support getting the characters in a string using [] notation as 367 // Support getting the characters in a string using [] notation as
368 // in Firefox/SpiderMonkey, Safari and Opera. 368 // in Firefox/SpiderMonkey, Safari and Opera.
369 static Object* GetElementOrCharAt(Handle<Object> object, uint32_t index); 369 static Object* GetElementOrCharAt(Handle<Object> object, uint32_t index);
370 370
371 static Object* SetObjectProperty(Handle<Object> object, 371 static Object* SetObjectProperty(Handle<Object> object,
372 Handle<Object> key, 372 Handle<Object> key,
373 Handle<Object> value, 373 Handle<Object> value,
374 PropertyAttributes attr); 374 PropertyAttributes attr);
375 375
376 static Object* ForceSetObjectProperty(Handle<JSObject> object,
377 Handle<Object> key,
378 Handle<Object> value,
379 PropertyAttributes attr);
380
376 static Object* GetObjectProperty(Handle<Object> object, Handle<Object> key); 381 static Object* GetObjectProperty(Handle<Object> object, Handle<Object> key);
377 382
378 // This function is used in FunctionNameUsing* tests. 383 // This function is used in FunctionNameUsing* tests.
379 static Object* FindSharedFunctionInfoInScript(Handle<Script> script, 384 static Object* FindSharedFunctionInfoInScript(Handle<Script> script,
380 int position); 385 int position);
381 386
382 // Helper functions used stubs. 387 // Helper functions used stubs.
383 static void PerformGC(Object* result); 388 static void PerformGC(Object* result);
384 }; 389 };
385 390
386 391
387 } } // namespace v8::internal 392 } } // namespace v8::internal
388 393
389 #endif // V8_RUNTIME_H_ 394 #endif // V8_RUNTIME_H_
OLDNEW
« src/objects.cc ('K') | « src/objects.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698