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

Side by Side Diff: src/handles.cc

Issue 6603028: Merge revisions 7030:7051 from bleeding_edge to isolates branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 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') | src/hydrogen.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 *prototype, 255 *prototype,
256 NULL), 256 NULL),
257 Object); 257 Object);
258 } 258 }
259 259
260 260
261 Handle<Object> SetProperty(Handle<JSObject> object, 261 Handle<Object> SetProperty(Handle<JSObject> object,
262 Handle<String> key, 262 Handle<String> key,
263 Handle<Object> value, 263 Handle<Object> value,
264 PropertyAttributes attributes, 264 PropertyAttributes attributes,
265 StrictModeFlag strict) { 265 StrictModeFlag strict_mode) {
266 CALL_HEAP_FUNCTION(object->GetHeap()->isolate(), 266 CALL_HEAP_FUNCTION(object->GetHeap()->isolate(),
267 object->SetProperty(*key, *value, attributes, strict), 267 object->SetProperty(*key, *value, attributes, strict_mode),
268 Object); 268 Object);
269 } 269 }
270 270
271 271
272 Handle<Object> SetProperty(Handle<Object> object, 272 Handle<Object> SetProperty(Handle<Object> object,
273 Handle<Object> key, 273 Handle<Object> key,
274 Handle<Object> value, 274 Handle<Object> value,
275 PropertyAttributes attributes, 275 PropertyAttributes attributes,
276 StrictModeFlag strict) { 276 StrictModeFlag strict_mode) {
277 Isolate* isolate = Isolate::Current(); 277 Isolate* isolate = Isolate::Current();
278 CALL_HEAP_FUNCTION( 278 CALL_HEAP_FUNCTION(
279 isolate, 279 isolate,
280 Runtime::SetObjectProperty( 280 Runtime::SetObjectProperty(
281 isolate, object, key, value, attributes, strict), 281 isolate, object, key, value, attributes, strict_mode),
282 Object); 282 Object);
283 } 283 }
284 284
285 285
286 Handle<Object> ForceSetProperty(Handle<JSObject> object, 286 Handle<Object> ForceSetProperty(Handle<JSObject> object,
287 Handle<Object> key, 287 Handle<Object> key,
288 Handle<Object> value, 288 Handle<Object> value,
289 PropertyAttributes attributes) { 289 PropertyAttributes attributes) {
290 Isolate* isolate = object->GetIsolate(); 290 Isolate* isolate = object->GetIsolate();
291 CALL_HEAP_FUNCTION( 291 CALL_HEAP_FUNCTION(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 CHECK(!SetLocalPropertyIgnoreAttributes( 334 CHECK(!SetLocalPropertyIgnoreAttributes(
335 object, key, value, attributes).is_null()); 335 object, key, value, attributes).is_null());
336 CHECK(!object->GetIsolate()->has_pending_exception()); 336 CHECK(!object->GetIsolate()->has_pending_exception());
337 } 337 }
338 338
339 339
340 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, 340 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object,
341 Handle<String> key, 341 Handle<String> key,
342 Handle<Object> value, 342 Handle<Object> value,
343 PropertyAttributes attributes, 343 PropertyAttributes attributes,
344 StrictModeFlag strict) { 344 StrictModeFlag strict_mode) {
345 CALL_HEAP_FUNCTION(object->GetIsolate(), 345 CALL_HEAP_FUNCTION(object->GetIsolate(),
346 object->SetPropertyWithInterceptor(*key, 346 object->SetPropertyWithInterceptor(*key,
347 *value, 347 *value,
348 attributes, 348 attributes,
349 strict), 349 strict_mode),
350 Object); 350 Object);
351 } 351 }
352 352
353 353
354 Handle<Object> GetProperty(Handle<JSObject> obj, 354 Handle<Object> GetProperty(Handle<JSObject> obj,
355 const char* name) { 355 const char* name) {
356 Isolate* isolate = obj->GetIsolate(); 356 Isolate* isolate = obj->GetIsolate();
357 Handle<String> str = isolate->factory()->LookupAsciiSymbol(name); 357 Handle<String> str = isolate->factory()->LookupAsciiSymbol(name);
358 CALL_HEAP_FUNCTION(isolate, obj->GetProperty(*str), Object); 358 CALL_HEAP_FUNCTION(isolate, obj->GetProperty(*str), Object);
359 } 359 }
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 975
976 OptimizedObjectForAddingMultipleProperties:: 976 OptimizedObjectForAddingMultipleProperties::
977 ~OptimizedObjectForAddingMultipleProperties() { 977 ~OptimizedObjectForAddingMultipleProperties() {
978 // Reoptimize the object to allow fast property access. 978 // Reoptimize the object to allow fast property access.
979 if (has_been_transformed_) { 979 if (has_been_transformed_) {
980 TransformToFastProperties(object_, unused_property_fields_); 980 TransformToFastProperties(object_, unused_property_fields_);
981 } 981 }
982 } 982 }
983 983
984 } } // namespace v8::internal 984 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698