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

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

Issue 1221713003: Distinguish slow from fast sloppy arguments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-codegen-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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1873 Register global_object = x10; 1873 Register global_object = x10;
1874 Register global_ctx = x10; 1874 Register global_ctx = x10;
1875 Register sloppy_args_map = x11; 1875 Register sloppy_args_map = x11;
1876 Register aliased_args_map = x10; 1876 Register aliased_args_map = x10;
1877 __ Ldr(global_object, GlobalObjectMemOperand()); 1877 __ Ldr(global_object, GlobalObjectMemOperand());
1878 __ Ldr(global_ctx, FieldMemOperand(global_object, 1878 __ Ldr(global_ctx, FieldMemOperand(global_object,
1879 GlobalObject::kNativeContextOffset)); 1879 GlobalObject::kNativeContextOffset));
1880 1880
1881 __ Ldr(sloppy_args_map, 1881 __ Ldr(sloppy_args_map,
1882 ContextMemOperand(global_ctx, Context::SLOPPY_ARGUMENTS_MAP_INDEX)); 1882 ContextMemOperand(global_ctx, Context::SLOPPY_ARGUMENTS_MAP_INDEX));
1883 __ Ldr(aliased_args_map, 1883 __ Ldr(
1884 ContextMemOperand(global_ctx, Context::ALIASED_ARGUMENTS_MAP_INDEX)); 1884 aliased_args_map,
1885 ContextMemOperand(global_ctx, Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX));
1885 __ Cmp(mapped_params, 0); 1886 __ Cmp(mapped_params, 0);
1886 __ CmovX(sloppy_args_map, aliased_args_map, ne); 1887 __ CmovX(sloppy_args_map, aliased_args_map, ne);
1887 1888
1888 // Copy the JS object part. 1889 // Copy the JS object part.
1889 __ Str(sloppy_args_map, FieldMemOperand(alloc_obj, JSObject::kMapOffset)); 1890 __ Str(sloppy_args_map, FieldMemOperand(alloc_obj, JSObject::kMapOffset));
1890 __ LoadRoot(x10, Heap::kEmptyFixedArrayRootIndex); 1891 __ LoadRoot(x10, Heap::kEmptyFixedArrayRootIndex);
1891 __ Str(x10, FieldMemOperand(alloc_obj, JSObject::kPropertiesOffset)); 1892 __ Str(x10, FieldMemOperand(alloc_obj, JSObject::kPropertiesOffset));
1892 __ Str(x10, FieldMemOperand(alloc_obj, JSObject::kElementsOffset)); 1893 __ Str(x10, FieldMemOperand(alloc_obj, JSObject::kElementsOffset));
1893 1894
1894 // Set up the callee in-object property. 1895 // Set up the callee in-object property.
(...skipping 3931 matching lines...) Expand 10 before | Expand all | Expand 10 after
5826 MemOperand(fp, 6 * kPointerSize), NULL); 5827 MemOperand(fp, 6 * kPointerSize), NULL);
5827 } 5828 }
5828 5829
5829 5830
5830 #undef __ 5831 #undef __
5831 5832
5832 } // namespace internal 5833 } // namespace internal
5833 } // namespace v8 5834 } // namespace v8
5834 5835
5835 #endif // V8_TARGET_ARCH_ARM64 5836 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698