Commit 5ac1f8da authored by ulan's avatar ulan Committed by Commit bot

MIPS64: Use weak cell in LoadGlobal handler.

Port bc0d2e23

BUG=v8:3629
LOG=N
TBR=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/814193004

Cr-Commit-Position: refs/heads/master@{#25906}
parent 31de0215
...@@ -702,7 +702,8 @@ Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( ...@@ -702,7 +702,8 @@ Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal(
// Get the value from the cell. // Get the value from the cell.
Register result = StoreDescriptor::ValueRegister(); Register result = StoreDescriptor::ValueRegister();
__ li(result, Operand(cell)); Handle<WeakCell> weak_cell = factory()->NewWeakCell(cell);
__ LoadWeakValue(result, weak_cell, &miss);
__ ld(result, FieldMemOperand(result, Cell::kValueOffset)); __ ld(result, FieldMemOperand(result, Cell::kValueOffset));
// Check for deleted property if property can actually be deleted. // Check for deleted property if property can actually be deleted.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment