| Index: src/x64/stub-cache-x64.cc
|
| diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc
|
| index 579ede542d34cc4e0c7354a110a288025438a726..28e2a89627f4bc82519f1756d14836a8e4156605 100644
|
| --- a/src/x64/stub-cache-x64.cc
|
| +++ b/src/x64/stub-cache-x64.cc
|
| @@ -774,12 +774,12 @@ void StoreStubCompiler::GenerateRestoreName(MacroAssembler* masm,
|
|
|
|
|
| void StubCompiler::GenerateCheckPropertyCell(MacroAssembler* masm,
|
| - Handle<GlobalObject> global,
|
| + Handle<JSGlobalObject> global,
|
| Handle<Name> name,
|
| Register scratch,
|
| Label* miss) {
|
| Handle<PropertyCell> cell =
|
| - GlobalObject::EnsurePropertyCell(global, name);
|
| + JSGlobalObject::EnsurePropertyCell(global, name);
|
| ASSERT(cell->value()->IsTheHole());
|
| __ Move(scratch, cell);
|
| __ Cmp(FieldOperand(scratch, Cell::kValueOffset),
|
| @@ -796,7 +796,7 @@ void StoreStubCompiler::GenerateNegativeHolderLookup(
|
| Label* miss) {
|
| if (holder->IsJSGlobalObject()) {
|
| GenerateCheckPropertyCell(
|
| - masm, Handle<GlobalObject>::cast(holder), name, scratch1(), miss);
|
| + masm, Handle<JSGlobalObject>::cast(holder), name, scratch1(), miss);
|
| } else if (!holder->HasFastProperties() && !holder->IsJSGlobalProxy()) {
|
| GenerateDictionaryNegativeLookup(
|
| masm, miss, holder_reg, name, scratch1(), scratch2());
|
| @@ -1055,9 +1055,9 @@ void StubCompiler::GenerateCheckPropertyCells(MacroAssembler* masm,
|
| Label* miss) {
|
| Handle<JSObject> current = object;
|
| while (!current.is_identical_to(holder)) {
|
| - if (current->IsGlobalObject()) {
|
| + if (current->IsJSGlobalObject()) {
|
| GenerateCheckPropertyCell(masm,
|
| - Handle<GlobalObject>::cast(current),
|
| + Handle<JSGlobalObject>::cast(current),
|
| name,
|
| scratch,
|
| miss);
|
| @@ -2928,7 +2928,7 @@ Handle<Code> LoadStubCompiler::CompileLoadNonexistent(
|
| Handle<JSObject> object,
|
| Handle<JSObject> last,
|
| Handle<Name> name,
|
| - Handle<GlobalObject> global) {
|
| + Handle<JSGlobalObject> global) {
|
| Label success;
|
|
|
| NonexistentHandlerFrontend(object, last, name, &success, global);
|
|
|