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

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') | src/hydrogen.cc » ('J')
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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 301 }
302 302
303 303
304 Handle<JSObject> Copy(Handle<JSObject> obj) { 304 Handle<JSObject> Copy(Handle<JSObject> obj) {
305 Isolate* isolate = obj->GetIsolate(); 305 Isolate* isolate = obj->GetIsolate();
306 CALL_HEAP_FUNCTION(isolate, 306 CALL_HEAP_FUNCTION(isolate,
307 isolate->heap()->CopyJSObject(*obj), JSObject); 307 isolate->heap()->CopyJSObject(*obj), JSObject);
308 } 308 }
309 309
310 310
311 Handle<JSObject> DeepCopy(Handle<JSObject> obj) {
312 Isolate* isolate = obj->GetIsolate();
313 CALL_HEAP_FUNCTION(isolate,
314 obj->DeepCopy(isolate),
315 JSObject);
316 }
317
318
311 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info) { 319 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info) {
312 CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->DefineAccessor(*info), Object); 320 CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->DefineAccessor(*info), Object);
313 } 321 }
314 322
315 323
316 // Wrappers for scripts are kept alive and cached in weak global 324 // Wrappers for scripts are kept alive and cached in weak global
317 // handles referred from foreign objects held by the scripts as long as 325 // handles referred from foreign objects held by the scripts as long as
318 // they are used. When they are not used anymore, the garbage 326 // they are used. When they are not used anymore, the garbage
319 // collector will call the weak callback on the global handle 327 // collector will call the weak callback on the global handle
320 // associated with the wrapper and get rid of both the wrapper and the 328 // 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
903 data->next = prev_next_; 911 data->next = prev_next_;
904 data->limit = prev_limit_; 912 data->limit = prev_limit_;
905 #ifdef DEBUG 913 #ifdef DEBUG
906 handles_detached_ = true; 914 handles_detached_ = true;
907 #endif 915 #endif
908 return deferred; 916 return deferred;
909 } 917 }
910 918
911 919
912 } } // namespace v8::internal 920 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/heap.h » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698