| Index: src/x64/lithium-x64.cc
|
| diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
|
| index 6987d452fd4c0de4fcad35d327c8a91945516e05..c47cd726f5ebad1d62c0c9eb6ef9b056f961fc70 100644
|
| --- a/src/x64/lithium-x64.cc
|
| +++ b/src/x64/lithium-x64.cc
|
| @@ -1614,7 +1614,8 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) {
|
| bool needs_check = !instr->value()->type().IsSmi();
|
| if (needs_check) {
|
| LOperand* xmm_temp =
|
| - (instr->CanTruncateToInt32() && CpuFeatures::IsSupported(SSE3))
|
| + (instr->CanTruncateToInt32() &&
|
| + Isolate::Current()->cpu_features()->IsSupported(SSE3))
|
| ? NULL
|
| : FixedTemp(xmm1);
|
| LTaggedToI* res = new LTaggedToI(value, xmm_temp);
|
| @@ -1717,36 +1718,21 @@ LInstruction* LChunkBuilder::DoConstant(HConstant* instr) {
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
|
| - LLoadGlobalCell* result = new LLoadGlobalCell;
|
| +LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) {
|
| + LLoadGlobal* result = new LLoadGlobal;
|
| return instr->check_hole_value()
|
| ? AssignEnvironment(DefineAsRegister(result))
|
| : DefineAsRegister(result);
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
|
| - LOperand* global_object = UseFixed(instr->global_object(), rax);
|
| - LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object);
|
| - return MarkAsCall(DefineFixed(result, rax), instr);
|
| -}
|
| -
|
| -
|
| -LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
|
| - LStoreGlobalCell* result =
|
| - new LStoreGlobalCell(UseRegister(instr->value()), TempRegister());
|
| +LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
|
| + LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()),
|
| + TempRegister());
|
| return instr->check_hole_value() ? AssignEnvironment(result) : result;
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) {
|
| - LOperand* global_object = UseFixed(instr->global_object(), rdx);
|
| - LOperand* value = UseFixed(instr->value(), rax);
|
| - LStoreGlobalGeneric* result = new LStoreGlobalGeneric(global_object, value);
|
| - return MarkAsCall(result, instr);
|
| -}
|
| -
|
| -
|
| LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
|
| LOperand* context = UseRegisterAtStart(instr->value());
|
| return DefineAsRegister(new LLoadContextSlot(context));
|
|
|