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

Side by Side Diff: src/arm64/interface-descriptors-arm64.cc

Issue 1114563003: Optimize the typeof operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 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
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/arm64/lithium-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 "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/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 91
92 void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) { 92 void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) {
93 // cp: context 93 // cp: context
94 // x0: value 94 // x0: value
95 Register registers[] = {cp, x0}; 95 Register registers[] = {cp, x0};
96 data->Initialize(arraysize(registers), registers, NULL); 96 data->Initialize(arraysize(registers), registers, NULL);
97 } 97 }
98 98
99 99
100 void TypeofDescriptor::Initialize(CallInterfaceDescriptorData* data) {
101 Register registers[] = {cp, x3};
102 data->Initialize(arraysize(registers), registers, NULL);
103 }
104
105
100 void FastCloneShallowArrayDescriptor::Initialize( 106 void FastCloneShallowArrayDescriptor::Initialize(
101 CallInterfaceDescriptorData* data) { 107 CallInterfaceDescriptorData* data) {
102 // cp: context 108 // cp: context
103 // x3: array literals array 109 // x3: array literals array
104 // x2: array literal index 110 // x2: array literal index
105 // x1: constant elements 111 // x1: constant elements
106 Register registers[] = {cp, x3, x2, x1}; 112 Register registers[] = {cp, x3, x2, x1};
107 Representation representations[] = { 113 Representation representations[] = {
108 Representation::Tagged(), Representation::Tagged(), Representation::Smi(), 114 Representation::Tagged(), Representation::Tagged(), Representation::Smi(),
109 Representation::Tagged()}; 115 Representation::Tagged()};
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 Representation::Tagged(), // holder 441 Representation::Tagged(), // holder
436 Representation::External(), // api_function_address 442 Representation::External(), // api_function_address
437 }; 443 };
438 data->Initialize(arraysize(registers), registers, representations, 444 data->Initialize(arraysize(registers), registers, representations,
439 &default_descriptor); 445 &default_descriptor);
440 } 446 }
441 } 447 }
442 } // namespace v8::internal 448 } // namespace v8::internal
443 449
444 #endif // V8_TARGET_ARCH_ARM64 450 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698