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

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

Issue 279743002: Improve Array.shift() performance for small arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cosmetic fix Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "v8.h" 5 #include "v8.h"
6 6
7 #include "arm/lithium-codegen-arm.h" 7 #include "arm/lithium-codegen-arm.h"
8 #include "arm/lithium-gap-resolver-arm.h" 8 #include "arm/lithium-gap-resolver-arm.h"
9 #include "code-stubs.h" 9 #include "code-stubs.h"
10 #include "stub-cache.h" 10 #include "stub-cache.h"
(...skipping 4417 matching lines...) Expand 10 before | Expand all | Expand 10 after
4428 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; 4428 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE;
4429 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); 4429 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array);
4430 __ CallStub(&stub); 4430 __ CallStub(&stub);
4431 RecordSafepointWithRegistersAndDoubles( 4431 RecordSafepointWithRegistersAndDoubles(
4432 instr->pointer_map(), 0, Safepoint::kLazyDeopt); 4432 instr->pointer_map(), 0, Safepoint::kLazyDeopt);
4433 } 4433 }
4434 __ bind(&not_applicable); 4434 __ bind(&not_applicable);
4435 } 4435 }
4436 4436
4437 4437
4438 void LCodeGen::DoArrayShift(LArrayShift* instr) {
4439 ASSERT(ToRegister(instr->context()).is(cp));
4440 ASSERT(ToRegister(instr->object()).is(r0));
4441 ASSERT(ToRegister(instr->result()).is(r0));
4442 ArrayShiftStub stub(isolate(), instr->hydrogen()->kind());
4443 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
4444 }
4445
4446
4438 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4447 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4439 Register object = ToRegister(instr->object()); 4448 Register object = ToRegister(instr->object());
4440 Register temp = ToRegister(instr->temp()); 4449 Register temp = ToRegister(instr->temp());
4441 Label no_memento_found; 4450 Label no_memento_found;
4442 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found); 4451 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found);
4443 DeoptimizeIf(eq, instr->environment()); 4452 DeoptimizeIf(eq, instr->environment());
4444 __ bind(&no_memento_found); 4453 __ bind(&no_memento_found);
4445 } 4454 }
4446 4455
4447 4456
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after
5844 __ ldr(result, FieldMemOperand(scratch, 5853 __ ldr(result, FieldMemOperand(scratch,
5845 FixedArray::kHeaderSize - kPointerSize)); 5854 FixedArray::kHeaderSize - kPointerSize));
5846 __ bind(deferred->exit()); 5855 __ bind(deferred->exit());
5847 __ bind(&done); 5856 __ bind(&done);
5848 } 5857 }
5849 5858
5850 5859
5851 #undef __ 5860 #undef __
5852 5861
5853 } } // namespace v8::internal 5862 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698