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

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

Issue 2064993002: [stubs] Remove the is_jsarray bit from the TransitionElementsKindStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 4196 matching lines...) Expand 10 before | Expand all | Expand 10 after
4207 __ RecordWriteForMap(object_reg, 4207 __ RecordWriteForMap(object_reg,
4208 new_map_reg, 4208 new_map_reg,
4209 scratch, 4209 scratch,
4210 GetLinkRegisterState(), 4210 GetLinkRegisterState(),
4211 kDontSaveFPRegs); 4211 kDontSaveFPRegs);
4212 } else { 4212 } else {
4213 DCHECK(ToRegister(instr->context()).is(cp)); 4213 DCHECK(ToRegister(instr->context()).is(cp));
4214 DCHECK(object_reg.is(r0)); 4214 DCHECK(object_reg.is(r0));
4215 PushSafepointRegistersScope scope(this); 4215 PushSafepointRegistersScope scope(this);
4216 __ Move(r1, to_map); 4216 __ Move(r1, to_map);
4217 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; 4217 TransitionElementsKindStub stub(isolate(), from_kind, to_kind);
4218 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array);
4219 __ CallStub(&stub); 4218 __ CallStub(&stub);
4220 RecordSafepointWithRegisters( 4219 RecordSafepointWithRegisters(
4221 instr->pointer_map(), 0, Safepoint::kLazyDeopt); 4220 instr->pointer_map(), 0, Safepoint::kLazyDeopt);
4222 } 4221 }
4223 __ bind(&not_applicable); 4222 __ bind(&not_applicable);
4224 } 4223 }
4225 4224
4226 4225
4227 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4226 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4228 Register object = ToRegister(instr->object()); 4227 Register object = ToRegister(instr->object());
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
5552 __ ldr(result, FieldMemOperand(scratch, 5551 __ ldr(result, FieldMemOperand(scratch,
5553 FixedArray::kHeaderSize - kPointerSize)); 5552 FixedArray::kHeaderSize - kPointerSize));
5554 __ bind(deferred->exit()); 5553 __ bind(deferred->exit());
5555 __ bind(&done); 5554 __ bind(&done);
5556 } 5555 }
5557 5556
5558 #undef __ 5557 #undef __
5559 5558
5560 } // namespace internal 5559 } // namespace internal
5561 } // namespace v8 5560 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698