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

Side by Side Diff: src/handles.cc

Issue 12880017: Build fast literals in hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | 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 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 } 318 }
319 319
320 320
321 Handle<JSObject> Copy(Handle<JSObject> obj) { 321 Handle<JSObject> Copy(Handle<JSObject> obj) {
322 Isolate* isolate = obj->GetIsolate(); 322 Isolate* isolate = obj->GetIsolate();
323 CALL_HEAP_FUNCTION(isolate, 323 CALL_HEAP_FUNCTION(isolate,
324 isolate->heap()->CopyJSObject(*obj), JSObject); 324 isolate->heap()->CopyJSObject(*obj), JSObject);
325 } 325 }
326 326
327 327
328 Handle<JSObject> DeepCopy(Handle<JSObject> obj) {
329 Isolate* isolate = obj->GetIsolate();
330 CALL_HEAP_FUNCTION(isolate,
331 obj->DeepCopy(isolate),
332 JSObject);
333 }
334
335
328 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info) { 336 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info) {
329 CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->DefineAccessor(*info), Object); 337 CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->DefineAccessor(*info), Object);
330 } 338 }
331 339
332 340
333 // Wrappers for scripts are kept alive and cached in weak global 341 // Wrappers for scripts are kept alive and cached in weak global
334 // handles referred from foreign objects held by the scripts as long as 342 // handles referred from foreign objects held by the scripts as long as
335 // they are used. When they are not used anymore, the garbage 343 // they are used. When they are not used anymore, the garbage
336 // collector will call the weak callback on the global handle 344 // collector will call the weak callback on the global handle
337 // associated with the wrapper and get rid of both the wrapper and the 345 // associated with the wrapper and get rid of both the wrapper and the
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 data->next = prev_next_; 928 data->next = prev_next_;
921 data->limit = prev_limit_; 929 data->limit = prev_limit_;
922 #ifdef DEBUG 930 #ifdef DEBUG
923 handles_detached_ = true; 931 handles_detached_ = true;
924 #endif 932 #endif
925 return deferred; 933 return deferred;
926 } 934 }
927 935
928 936
929 } } // namespace v8::internal 937 } } // 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