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

Side by Side Diff: src/handles.cc

Issue 12893014: Remove some obsolete handle operation wrappers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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') | no next file » | 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, 255 Handle<Object> ForceDeleteProperty(Handle<JSObject> object,
256 Handle<Object> key) { 256 Handle<Object> key) {
257 Isolate* isolate = object->GetIsolate(); 257 Isolate* isolate = object->GetIsolate();
258 CALL_HEAP_FUNCTION(isolate, 258 CALL_HEAP_FUNCTION(isolate,
259 Runtime::ForceDeleteObjectProperty(isolate, object, key), 259 Runtime::ForceDeleteObjectProperty(isolate, object, key),
260 Object); 260 Object);
261 } 261 }
262 262
263 263
264 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object,
265 Handle<Name> key,
266 Handle<Object> value,
267 PropertyAttributes attributes,
268 StrictModeFlag strict_mode) {
269 CALL_HEAP_FUNCTION(object->GetIsolate(),
270 object->SetPropertyWithInterceptor(*key,
271 *value,
272 attributes,
273 strict_mode),
274 Object);
275 }
276
277
278 Handle<Object> GetProperty(Handle<JSReceiver> obj, 264 Handle<Object> GetProperty(Handle<JSReceiver> obj,
279 const char* name) { 265 const char* name) {
280 Isolate* isolate = obj->GetIsolate(); 266 Isolate* isolate = obj->GetIsolate();
281 Handle<String> str = isolate->factory()->InternalizeUtf8String(name); 267 Handle<String> str = isolate->factory()->InternalizeUtf8String(name);
282 CALL_HEAP_FUNCTION(isolate, obj->GetProperty(*str), Object); 268 CALL_HEAP_FUNCTION(isolate, obj->GetProperty(*str), Object);
283 } 269 }
284 270
285 271
286 Handle<Object> GetProperty(Isolate* isolate, 272 Handle<Object> GetProperty(Isolate* isolate,
287 Handle<Object> obj, 273 Handle<Object> obj,
288 Handle<Object> key) { 274 Handle<Object> key) {
289 CALL_HEAP_FUNCTION(isolate, 275 CALL_HEAP_FUNCTION(isolate,
290 Runtime::GetObjectProperty(isolate, obj, key), Object); 276 Runtime::GetObjectProperty(isolate, obj, key), Object);
291 } 277 }
292 278
293 279
294 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver,
295 Handle<JSObject> holder,
296 Handle<Name> name,
297 PropertyAttributes* attributes) {
298 Isolate* isolate = receiver->GetIsolate();
299 CALL_HEAP_FUNCTION(isolate,
300 holder->GetPropertyWithInterceptor(*receiver,
301 *name,
302 attributes),
303 Object);
304 }
305
306
307 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value) { 280 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value) {
308 const bool skip_hidden_prototypes = false; 281 const bool skip_hidden_prototypes = false;
309 CALL_HEAP_FUNCTION(obj->GetIsolate(), 282 CALL_HEAP_FUNCTION(obj->GetIsolate(),
310 obj->SetPrototype(*value, skip_hidden_prototypes), Object); 283 obj->SetPrototype(*value, skip_hidden_prototypes), Object);
311 } 284 }
312 285
313 286
314 Handle<Object> LookupSingleCharacterStringFromCode(Isolate* isolate, 287 Handle<Object> LookupSingleCharacterStringFromCode(Isolate* isolate,
315 uint32_t index) { 288 uint32_t index) {
316 CALL_HEAP_FUNCTION( 289 CALL_HEAP_FUNCTION(
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 data->next = prev_next_; 903 data->next = prev_next_;
931 data->limit = prev_limit_; 904 data->limit = prev_limit_;
932 #ifdef DEBUG 905 #ifdef DEBUG
933 handles_detached_ = true; 906 handles_detached_ = true;
934 #endif 907 #endif
935 return deferred; 908 return deferred;
936 } 909 }
937 910
938 911
939 } } // namespace v8::internal 912 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698