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

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

Issue 1006173003: [stubs] Add missing interface descriptor for the CompareIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/interface-descriptors-arm.cc ('k') | src/code-factory.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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 CallInterfaceDescriptorData* data) { 254 CallInterfaceDescriptorData* data) {
255 // stack param count needs (constructor pointer, and single argument) 255 // stack param count needs (constructor pointer, and single argument)
256 Register registers[] = {cp, x1, x0}; 256 Register registers[] = {cp, x1, x0};
257 Representation representations[] = {Representation::Tagged(), 257 Representation representations[] = {Representation::Tagged(),
258 Representation::Tagged(), 258 Representation::Tagged(),
259 Representation::Integer32()}; 259 Representation::Integer32()};
260 data->Initialize(arraysize(registers), registers, representations); 260 data->Initialize(arraysize(registers), registers, representations);
261 } 261 }
262 262
263 263
264 void CompareDescriptor::Initialize(CallInterfaceDescriptorData* data) {
265 // cp: context
266 // x1: left operand
267 // x0: right operand
268 Register registers[] = {cp, x1, x0};
269 data->Initialize(arraysize(registers), registers, NULL);
270 }
271
272
264 void CompareNilDescriptor::Initialize(CallInterfaceDescriptorData* data) { 273 void CompareNilDescriptor::Initialize(CallInterfaceDescriptorData* data) {
265 // cp: context 274 // cp: context
266 // x0: value to compare 275 // x0: value to compare
267 Register registers[] = {cp, x0}; 276 Register registers[] = {cp, x0};
268 data->Initialize(arraysize(registers), registers, NULL); 277 data->Initialize(arraysize(registers), registers, NULL);
269 } 278 }
270 279
271 280
272 void ToBooleanDescriptor::Initialize(CallInterfaceDescriptorData* data) { 281 void ToBooleanDescriptor::Initialize(CallInterfaceDescriptorData* data) {
273 // cp: context 282 // cp: context
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 Representation::Tagged(), // holder 430 Representation::Tagged(), // holder
422 Representation::External(), // api_function_address 431 Representation::External(), // api_function_address
423 }; 432 };
424 data->Initialize(arraysize(registers), registers, representations, 433 data->Initialize(arraysize(registers), registers, representations,
425 &default_descriptor); 434 &default_descriptor);
426 } 435 }
427 } 436 }
428 } // namespace v8::internal 437 } // namespace v8::internal
429 438
430 #endif // V8_TARGET_ARCH_ARM64 439 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/interface-descriptors-arm.cc ('k') | src/code-factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698