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

Side by Side Diff: src/arm64/code-stubs-arm64.cc

Issue 306513002: Convert ElementsKind into a BitField (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/macro-assembler-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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "bootstrapper.h" 9 #include "bootstrapper.h"
10 #include "code-stubs.h" 10 #include "code-stubs.h"
(...skipping 4669 matching lines...) Expand 10 before | Expand all | Expand 10 after
4680 STATIC_ASSERT(FAST_SMI_ELEMENTS == 0); 4680 STATIC_ASSERT(FAST_SMI_ELEMENTS == 0);
4681 STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1); 4681 STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1);
4682 STATIC_ASSERT(FAST_ELEMENTS == 2); 4682 STATIC_ASSERT(FAST_ELEMENTS == 2);
4683 STATIC_ASSERT(FAST_HOLEY_ELEMENTS == 3); 4683 STATIC_ASSERT(FAST_HOLEY_ELEMENTS == 3);
4684 __ Cmp(bitfield2, Map::kMaximumBitField2FastHoleyElementValue); 4684 __ Cmp(bitfield2, Map::kMaximumBitField2FastHoleyElementValue);
4685 __ B(hi, &double_elements); 4685 __ B(hi, &double_elements);
4686 4686
4687 __ JumpIfSmi(value, &smi_element); 4687 __ JumpIfSmi(value, &smi_element);
4688 4688
4689 // Jump if array's ElementsKind is not FAST_ELEMENTS or FAST_HOLEY_ELEMENTS. 4689 // Jump if array's ElementsKind is not FAST_ELEMENTS or FAST_HOLEY_ELEMENTS.
4690 __ Tbnz(bitfield2, MaskToBit(FAST_ELEMENTS << Map::kElementsKindShift), 4690 __ Tbnz(bitfield2, MaskToBit(FAST_ELEMENTS << Map::ElementsKindBits::kShift),
4691 &fast_elements); 4691 &fast_elements);
4692 4692
4693 // Store into the array literal requires an elements transition. Call into 4693 // Store into the array literal requires an elements transition. Call into
4694 // the runtime. 4694 // the runtime.
4695 __ Bind(&slow_elements); 4695 __ Bind(&slow_elements);
4696 __ Push(array, index_smi, value); 4696 __ Push(array, index_smi, value);
4697 __ Ldr(x10, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 4697 __ Ldr(x10, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
4698 __ Ldr(x11, FieldMemOperand(x10, JSFunction::kLiteralsOffset)); 4698 __ Ldr(x11, FieldMemOperand(x10, JSFunction::kLiteralsOffset));
4699 __ Push(x11, array_index_smi); 4699 __ Push(x11, array_index_smi);
4700 __ TailCallRuntime(Runtime::kStoreArrayLiteralElement, 5, 1); 4700 __ TailCallRuntime(Runtime::kStoreArrayLiteralElement, 5, 1);
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
5565 MemOperand(fp, 6 * kPointerSize), 5565 MemOperand(fp, 6 * kPointerSize),
5566 NULL); 5566 NULL);
5567 } 5567 }
5568 5568
5569 5569
5570 #undef __ 5570 #undef __
5571 5571
5572 } } // namespace v8::internal 5572 } } // namespace v8::internal
5573 5573
5574 #endif // V8_TARGET_ARCH_ARM64 5574 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698