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

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: Ports. 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 86
87 void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) { 87 void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) {
88 // cp: context 88 // cp: context
89 // x0: value 89 // x0: value
90 Register registers[] = {cp, x0}; 90 Register registers[] = {cp, x0};
91 data->Initialize(arraysize(registers), registers, NULL); 91 data->Initialize(arraysize(registers), registers, NULL);
92 } 92 }
93 93
94 94
95 void TypeofDescriptor::Initialize(CallInterfaceDescriptorData* data) {
96 Register registers[] = {cp, x3};
97 data->Initialize(arraysize(registers), registers, NULL);
98 }
99
100
95 void FastCloneShallowArrayDescriptor::Initialize( 101 void FastCloneShallowArrayDescriptor::Initialize(
96 CallInterfaceDescriptorData* data) { 102 CallInterfaceDescriptorData* data) {
97 // cp: context 103 // cp: context
98 // x3: array literals array 104 // x3: array literals array
99 // x2: array literal index 105 // x2: array literal index
100 // x1: constant elements 106 // x1: constant elements
101 Register registers[] = {cp, x3, x2, x1}; 107 Register registers[] = {cp, x3, x2, x1};
102 Representation representations[] = { 108 Representation representations[] = {
103 Representation::Tagged(), Representation::Tagged(), Representation::Smi(), 109 Representation::Tagged(), Representation::Tagged(), Representation::Smi(),
104 Representation::Tagged()}; 110 Representation::Tagged()};
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 Representation::Tagged(), // holder 436 Representation::Tagged(), // holder
431 Representation::External(), // api_function_address 437 Representation::External(), // api_function_address
432 }; 438 };
433 data->Initialize(arraysize(registers), registers, representations, 439 data->Initialize(arraysize(registers), registers, representations,
434 &default_descriptor); 440 &default_descriptor);
435 } 441 }
436 } 442 }
437 } // namespace v8::internal 443 } // namespace v8::internal
438 444
439 #endif // V8_TARGET_ARCH_ARM64 445 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698