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

Side by Side Diff: src/handles.cc

Issue 50016: Allow hidden properties and implement GetIdentityHash (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
« no previous file with comments | « src/handles.h ('k') | src/heap.h » ('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 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 Object); 254 Object);
255 } 255 }
256 256
257 257
258 Handle<Object> GetPrototype(Handle<Object> obj) { 258 Handle<Object> GetPrototype(Handle<Object> obj) {
259 Handle<Object> result(obj->GetPrototype()); 259 Handle<Object> result(obj->GetPrototype());
260 return result; 260 return result;
261 } 261 }
262 262
263 263
264 Handle<Object> GetHiddenProperties(Handle<JSObject> obj,
265 bool create_if_needed) {
266 CALL_HEAP_FUNCTION(obj->GetHiddenProperties(create_if_needed), Object);
267 }
268
269
264 Handle<Object> DeleteElement(Handle<JSObject> obj, 270 Handle<Object> DeleteElement(Handle<JSObject> obj,
265 uint32_t index) { 271 uint32_t index) {
266 CALL_HEAP_FUNCTION(obj->DeleteElement(index), Object); 272 CALL_HEAP_FUNCTION(obj->DeleteElement(index), Object);
267 } 273 }
268 274
269 275
270 Handle<Object> DeleteProperty(Handle<JSObject> obj, 276 Handle<Object> DeleteProperty(Handle<JSObject> obj,
271 Handle<String> prop) { 277 Handle<String> prop) {
272 CALL_HEAP_FUNCTION(obj->DeleteProperty(*prop), Object); 278 CALL_HEAP_FUNCTION(obj->DeleteProperty(*prop), Object);
273 } 279 }
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 Handle<Context> compile_context, 674 Handle<Context> compile_context,
669 Handle<Context> function_context) { 675 Handle<Context> function_context) {
670 Handle<FixedArray> arr = Factory::NewFixedArray(3); 676 Handle<FixedArray> arr = Factory::NewFixedArray(3);
671 arr->set(0, Smi::FromInt(index)); 677 arr->set(0, Smi::FromInt(index));
672 arr->set(1, *compile_context); // Compile in this context 678 arr->set(1, *compile_context); // Compile in this context
673 arr->set(2, *function_context); // Set function context to this 679 arr->set(2, *function_context); // Set function context to this
674 fun->shared()->set_lazy_load_data(*arr); 680 fun->shared()->set_lazy_load_data(*arr);
675 } 681 }
676 682
677 } } // namespace v8::internal 683 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698