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

Unified Diff: src/handles.cc

Issue 3473024: [Isolates] More handle improvements: (Closed)
Patch Set: Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/handles.h ('k') | src/handles-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.cc
diff --git a/src/handles.cc b/src/handles.cc
index 14f14305cb903a7621580eb9281e4c2a0f8f4e9c..4720da3b9f9f90efc4edff3a1e60b8a49e080b3e 100644
--- a/src/handles.cc
+++ b/src/handles.cc
@@ -257,9 +257,10 @@ Handle<Object> SetProperty(Handle<Object> object,
Handle<Object> key,
Handle<Object> value,
PropertyAttributes attributes) {
- Heap* heap = HEAP;
+ Isolate* isolate = Isolate::Current();
CALL_HEAP_FUNCTION(
- Runtime::SetObjectProperty(heap, object, key, value, attributes), Object);
+ Runtime::SetObjectProperty(isolate, object, key, value, attributes),
+ Object);
}
@@ -267,8 +268,10 @@ Handle<Object> ForceSetProperty(Handle<JSObject> object,
Handle<Object> key,
Handle<Object> value,
PropertyAttributes attributes) {
+ Isolate* isolate = object->GetIsolate();
CALL_HEAP_FUNCTION(
- Runtime::ForceSetObjectProperty(object, key, value, attributes), Object);
+ Runtime::ForceSetObjectProperty(isolate, object, key, value, attributes),
+ Object);
}
@@ -283,8 +286,8 @@ Handle<Object> SetNormalizedProperty(Handle<JSObject> object,
Handle<Object> ForceDeleteProperty(Handle<JSObject> object,
Handle<Object> key) {
- Heap* heap = HEAP;
- CALL_HEAP_FUNCTION(Runtime::ForceDeleteObjectProperty(heap, object, key),
+ Isolate* isolate = object->GetIsolate();
+ CALL_HEAP_FUNCTION(Runtime::ForceDeleteObjectProperty(isolate, object, key),
Object);
}
@@ -319,8 +322,8 @@ Handle<Object> GetProperty(Handle<JSObject> obj,
Handle<Object> GetProperty(Handle<Object> obj,
Handle<Object> key) {
- Heap* heap = HEAP;
- CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(heap, obj, key), Object);
+ Isolate* isolate = Isolate::Current();
+ CALL_HEAP_FUNCTION(Runtime::GetObjectProperty(isolate, obj, key), Object);
}
« no previous file with comments | « src/handles.h ('k') | src/handles-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698