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

Side by Side Diff: src/handles.cc

Issue 14425011: api: Object::CachedProperty Base URL: gh:v8/v8.git@master
Patch Set: globalize reference Created 7 years, 7 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
« no previous file with comments | « src/handles.h ('k') | src/objects.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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 NULL), 223 NULL),
224 Object); 224 Object);
225 } 225 }
226 226
227 227
228 Handle<Object> SetProperty(Isolate* isolate, 228 Handle<Object> SetProperty(Isolate* isolate,
229 Handle<Object> object, 229 Handle<Object> object,
230 Handle<Object> key, 230 Handle<Object> key,
231 Handle<Object> value, 231 Handle<Object> value,
232 PropertyAttributes attributes, 232 PropertyAttributes attributes,
233 StrictModeFlag strict_mode) { 233 StrictModeFlag strict_mode,
234 LookupCache* cache) {
234 CALL_HEAP_FUNCTION( 235 CALL_HEAP_FUNCTION(
235 isolate, 236 isolate,
236 Runtime::SetObjectProperty( 237 Runtime::SetObjectProperty(
237 isolate, object, key, value, attributes, strict_mode), 238 isolate, object, key, value, attributes, strict_mode, cache),
238 Object); 239 Object);
239 } 240 }
240 241
241 242
242 Handle<Object> ForceSetProperty(Handle<JSObject> object, 243 Handle<Object> ForceSetProperty(Handle<JSObject> object,
243 Handle<Object> key, 244 Handle<Object> key,
244 Handle<Object> value, 245 Handle<Object> value,
245 PropertyAttributes attributes) { 246 PropertyAttributes attributes) {
246 Isolate* isolate = object->GetIsolate(); 247 Isolate* isolate = object->GetIsolate();
247 CALL_HEAP_FUNCTION( 248 CALL_HEAP_FUNCTION(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 Handle<Object> GetProperty(Handle<JSReceiver> obj, 282 Handle<Object> GetProperty(Handle<JSReceiver> obj,
282 const char* name) { 283 const char* name) {
283 Isolate* isolate = obj->GetIsolate(); 284 Isolate* isolate = obj->GetIsolate();
284 Handle<String> str = isolate->factory()->InternalizeUtf8String(name); 285 Handle<String> str = isolate->factory()->InternalizeUtf8String(name);
285 CALL_HEAP_FUNCTION(isolate, obj->GetProperty(*str), Object); 286 CALL_HEAP_FUNCTION(isolate, obj->GetProperty(*str), Object);
286 } 287 }
287 288
288 289
289 Handle<Object> GetProperty(Isolate* isolate, 290 Handle<Object> GetProperty(Isolate* isolate,
290 Handle<Object> obj, 291 Handle<Object> obj,
291 Handle<Object> key) { 292 Handle<Object> key,
293 LookupCache* cache) {
292 CALL_HEAP_FUNCTION(isolate, 294 CALL_HEAP_FUNCTION(isolate,
293 Runtime::GetObjectProperty(isolate, obj, key), Object); 295 Runtime::GetObjectProperty(isolate, obj, key, cache),
296 Object);
294 } 297 }
295 298
296 299
297 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value) { 300 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value) {
298 const bool skip_hidden_prototypes = false; 301 const bool skip_hidden_prototypes = false;
299 CALL_HEAP_FUNCTION(obj->GetIsolate(), 302 CALL_HEAP_FUNCTION(obj->GetIsolate(),
300 obj->SetPrototype(*value, skip_hidden_prototypes), Object); 303 obj->SetPrototype(*value, skip_hidden_prototypes), Object);
301 } 304 }
302 305
303 306
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 data->next = prev_next_; 931 data->next = prev_next_;
929 data->limit = prev_limit_; 932 data->limit = prev_limit_;
930 #ifdef DEBUG 933 #ifdef DEBUG
931 handles_detached_ = true; 934 handles_detached_ = true;
932 #endif 935 #endif
933 return deferred; 936 return deferred;
934 } 937 }
935 938
936 939
937 } } // namespace v8::internal 940 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698