Index: test/cctest/test-mark-compact.cc |
diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc |
index f09a3ce42fca3bc88fc98d29641ef638d7a9541b..18c63b2fd0673039a86a4952856d7c4a8ba08efb 100644 |
--- a/test/cctest/test-mark-compact.cc |
+++ b/test/cctest/test-mark-compact.cc |
@@ -194,7 +194,7 @@ TEST(MarkCompactCollector) { |
Map::cast(HEAP->AllocateMap(JS_OBJECT_TYPE, |
JSObject::kHeaderSize)->ToObjectChecked()); |
function->set_initial_map(initial_map); |
- Isolate::Current()->context()->global()->SetProperty( |
+ Isolate::Current()->context()->global_object()->SetProperty( |
func_name, function, NONE, kNonStrictMode)->ToObjectChecked(); |
JSObject* obj = JSObject::cast( |
@@ -203,8 +203,9 @@ TEST(MarkCompactCollector) { |
func_name = |
String::cast(HEAP->LookupAsciiSymbol("theFunction")->ToObjectChecked()); |
- CHECK(Isolate::Current()->context()->global()->HasLocalProperty(func_name)); |
- Object* func_value = Isolate::Current()->context()->global()-> |
+ CHECK(Isolate::Current()->context()->global_object()-> |
+ HasLocalProperty(func_name)); |
+ Object* func_value = Isolate::Current()->context()->global_object()-> |
GetProperty(func_name)->ToObjectChecked(); |
CHECK(func_value->IsJSFunction()); |
function = JSFunction::cast(func_value); |
@@ -212,7 +213,7 @@ TEST(MarkCompactCollector) { |
obj = JSObject::cast(HEAP->AllocateJSObject(function)->ToObjectChecked()); |
String* obj_name = |
String::cast(HEAP->LookupAsciiSymbol("theObject")->ToObjectChecked()); |
- Isolate::Current()->context()->global()->SetProperty( |
+ Isolate::Current()->context()->global_object()->SetProperty( |
obj_name, obj, NONE, kNonStrictMode)->ToObjectChecked(); |
String* prop_name = |
String::cast(HEAP->LookupAsciiSymbol("theSlot")->ToObjectChecked()); |
@@ -225,10 +226,11 @@ TEST(MarkCompactCollector) { |
obj_name = |
String::cast(HEAP->LookupAsciiSymbol("theObject")->ToObjectChecked()); |
- CHECK(Isolate::Current()->context()->global()->HasLocalProperty(obj_name)); |
- CHECK(Isolate::Current()->context()->global()-> |
+ CHECK(Isolate::Current()->context()->global_object()-> |
+ HasLocalProperty(obj_name)); |
+ CHECK(Isolate::Current()->context()->global_object()-> |
GetProperty(obj_name)->ToObjectChecked()->IsJSObject()); |
- obj = JSObject::cast(Isolate::Current()->context()->global()-> |
+ obj = JSObject::cast(Isolate::Current()->context()->global_object()-> |
GetProperty(obj_name)->ToObjectChecked()); |
prop_name = |
String::cast(HEAP->LookupAsciiSymbol("theSlot")->ToObjectChecked()); |