| Index: src/handles.cc
|
| ===================================================================
|
| --- src/handles.cc (revision 8618)
|
| +++ src/handles.cc (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2009 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -214,9 +214,10 @@
|
| }
|
|
|
|
|
| -void NormalizeElements(Handle<JSObject> object) {
|
| - CALL_HEAP_FUNCTION_VOID(object->GetIsolate(),
|
| - object->NormalizeElements());
|
| +Handle<NumberDictionary> NormalizeElements(Handle<JSObject> object) {
|
| + CALL_HEAP_FUNCTION(object->GetIsolate(),
|
| + object->NormalizeElements(),
|
| + NumberDictionary);
|
| }
|
|
|
|
|
| @@ -228,12 +229,14 @@
|
| }
|
|
|
|
|
| -void NumberDictionarySet(Handle<NumberDictionary> dictionary,
|
| - uint32_t index,
|
| - Handle<Object> value,
|
| - PropertyDetails details) {
|
| - CALL_HEAP_FUNCTION_VOID(dictionary->GetIsolate(),
|
| - dictionary->Set(index, *value, details));
|
| +Handle<NumberDictionary> NumberDictionarySet(
|
| + Handle<NumberDictionary> dictionary,
|
| + uint32_t index,
|
| + Handle<Object> value,
|
| + PropertyDetails details) {
|
| + CALL_HEAP_FUNCTION(dictionary->GetIsolate(),
|
| + dictionary->Set(index, *value, details),
|
| + NumberDictionary);
|
| }
|
|
|
|
|
| @@ -258,7 +261,7 @@
|
| }
|
|
|
|
|
| -Handle<Object> SetProperty(Handle<JSObject> object,
|
| +Handle<Object> SetProperty(Handle<JSReceiver> object,
|
| Handle<String> key,
|
| Handle<Object> value,
|
| PropertyAttributes attributes,
|
| @@ -353,7 +356,7 @@
|
| }
|
|
|
|
|
| -Handle<Object> GetProperty(Handle<JSObject> obj,
|
| +Handle<Object> GetProperty(Handle<JSReceiver> obj,
|
| const char* name) {
|
| Isolate* isolate = obj->GetIsolate();
|
| Handle<String> str = isolate->factory()->LookupAsciiSymbol(name);
|
| @@ -362,17 +365,6 @@
|
|
|
|
|
| Handle<Object> GetProperty(Handle<Object> obj,
|
| - const char* name,
|
| - LookupResult* result) {
|
| - Isolate* isolate = Isolate::Current();
|
| - Handle<String> str = isolate->factory()->LookupAsciiSymbol(name);
|
| - PropertyAttributes attributes;
|
| - CALL_HEAP_FUNCTION(
|
| - isolate, obj->GetProperty(*obj, result, *str, &attributes), Object);
|
| -}
|
| -
|
| -
|
| -Handle<Object> GetProperty(Handle<Object> obj,
|
| Handle<Object> key) {
|
| Isolate* isolate = Isolate::Current();
|
| CALL_HEAP_FUNCTION(isolate,
|
| @@ -380,7 +372,7 @@
|
| }
|
|
|
|
|
| -Handle<Object> GetProperty(Handle<JSObject> obj,
|
| +Handle<Object> GetProperty(Handle<JSReceiver> obj,
|
| Handle<String> name,
|
| LookupResult* result) {
|
| PropertyAttributes attributes;
|
| @@ -516,7 +508,8 @@
|
| }
|
| }
|
| CALL_HEAP_FUNCTION(object->GetIsolate(),
|
| - object->SetElement(index, *value, strict_mode), Object);
|
| + object->SetElement(index, *value, strict_mode, true),
|
| + Object);
|
| }
|
|
|
|
|
|
|