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

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

Issue 1304633002: Correctify instanceof and make it optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Add MIPS/MIPS64 ports. Created 5 years, 3 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/code-stubs-arm64.cc ('k') | src/arm64/lithium-arm64.h » ('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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 28 matching lines...) Expand all
39 const Register StoreTransitionDescriptor::MapRegister() { return x3; } 39 const Register StoreTransitionDescriptor::MapRegister() { return x3; }
40 40
41 41
42 const Register LoadGlobalViaContextDescriptor::SlotRegister() { return x2; } 42 const Register LoadGlobalViaContextDescriptor::SlotRegister() { return x2; }
43 43
44 44
45 const Register StoreGlobalViaContextDescriptor::SlotRegister() { return x2; } 45 const Register StoreGlobalViaContextDescriptor::SlotRegister() { return x2; }
46 const Register StoreGlobalViaContextDescriptor::ValueRegister() { return x0; } 46 const Register StoreGlobalViaContextDescriptor::ValueRegister() { return x0; }
47 47
48 48
49 const Register InstanceofDescriptor::left() { 49 const Register InstanceOfDescriptor::LeftRegister() { return x1; }
50 // Object to check (instanceof lhs). 50 const Register InstanceOfDescriptor::RightRegister() { return x0; }
51 return x11;
52 }
53
54
55 const Register InstanceofDescriptor::right() {
56 // Constructor function (instanceof rhs).
57 return x10;
58 }
59 51
60 52
61 const Register ArgumentsAccessReadDescriptor::index() { return x1; } 53 const Register ArgumentsAccessReadDescriptor::index() { return x1; }
62 const Register ArgumentsAccessReadDescriptor::parameter_count() { return x0; } 54 const Register ArgumentsAccessReadDescriptor::parameter_count() { return x0; }
63 55
64 56
65 const Register ApiGetterDescriptor::function_address() { return x2; } 57 const Register ApiGetterDescriptor::function_address() { return x2; }
66 58
67 59
68 const Register MathPowTaggedDescriptor::exponent() { return x11; } 60 const Register MathPowTaggedDescriptor::exponent() { return x11; }
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 x1, // math rounding function 417 x1, // math rounding function
426 x3, // vector slot id 418 x3, // vector slot id
427 x4, // type vector 419 x4, // type vector
428 }; 420 };
429 data->InitializePlatformSpecific(arraysize(registers), registers); 421 data->InitializePlatformSpecific(arraysize(registers), registers);
430 } 422 }
431 } // namespace internal 423 } // namespace internal
432 } // namespace v8 424 } // namespace v8
433 425
434 #endif // V8_TARGET_ARCH_ARM64 426 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/lithium-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698