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

Side by Side Diff: src/crankshaft/arm/lithium-codegen-arm.cc

Issue 1845553002: [crankshaft] Get rid of the StoreFrameContext instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/crankshaft/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
(...skipping 5523 matching lines...) Expand 10 before | Expand all | Expand 10 after
5534 __ ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5534 __ ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5535 // Index is equal to negated out of object property index plus 1. 5535 // Index is equal to negated out of object property index plus 1.
5536 STATIC_ASSERT(kSmiTag == 0 && kSmiTagSize < kPointerSizeLog2); 5536 STATIC_ASSERT(kSmiTag == 0 && kSmiTagSize < kPointerSizeLog2);
5537 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5537 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5538 __ ldr(result, FieldMemOperand(scratch, 5538 __ ldr(result, FieldMemOperand(scratch,
5539 FixedArray::kHeaderSize - kPointerSize)); 5539 FixedArray::kHeaderSize - kPointerSize));
5540 __ bind(deferred->exit()); 5540 __ bind(deferred->exit());
5541 __ bind(&done); 5541 __ bind(&done);
5542 } 5542 }
5543 5543
5544
5545 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5546 Register context = ToRegister(instr->context());
5547 __ str(context, MemOperand(fp, StandardFrameConstants::kContextOffset));
5548 }
5549
5550
5551 #undef __ 5544 #undef __
5552 5545
5553 } // namespace internal 5546 } // namespace internal
5554 } // namespace v8 5547 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698