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

Side by Side Diff: src/handles.cc

Issue 12114054: Supporting AllocationSiteInfo for Nested arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Now with ports to arm and x64 Created 7 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 | Annotate | Revision Log
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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 332 }
333 333
334 334
335 Handle<JSObject> Copy(Handle<JSObject> obj) { 335 Handle<JSObject> Copy(Handle<JSObject> obj) {
336 Isolate* isolate = obj->GetIsolate(); 336 Isolate* isolate = obj->GetIsolate();
337 CALL_HEAP_FUNCTION(isolate, 337 CALL_HEAP_FUNCTION(isolate,
338 isolate->heap()->CopyJSObject(*obj), JSObject); 338 isolate->heap()->CopyJSObject(*obj), JSObject);
339 } 339 }
340 340
341 341
342 Handle<JSObject> DeepCopy(Handle<JSObject> obj) {
343 Isolate* isolate = obj->GetIsolate();
344 CALL_HEAP_FUNCTION(isolate,
345 Runtime::DeepCopyBoilerplate(isolate, *obj),
346 JSObject);
347 }
348
349
342 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info) { 350 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info) {
343 CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->DefineAccessor(*info), Object); 351 CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->DefineAccessor(*info), Object);
344 } 352 }
345 353
346 354
347 // Wrappers for scripts are kept alive and cached in weak global 355 // Wrappers for scripts are kept alive and cached in weak global
348 // handles referred from foreign objects held by the scripts as long as 356 // handles referred from foreign objects held by the scripts as long as
349 // they are used. When they are not used anymore, the garbage 357 // they are used. When they are not used anymore, the garbage
350 // collector will call the weak callback on the global handle 358 // collector will call the weak callback on the global handle
351 // associated with the wrapper and get rid of both the wrapper and the 359 // associated with the wrapper and get rid of both the wrapper and the
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 data->next = prev_next_; 940 data->next = prev_next_;
933 data->limit = prev_limit_; 941 data->limit = prev_limit_;
934 #ifdef DEBUG 942 #ifdef DEBUG
935 handles_detached_ = true; 943 handles_detached_ = true;
936 #endif 944 #endif
937 return deferred; 945 return deferred;
938 } 946 }
939 947
940 948
941 } } // namespace v8::internal 949 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698