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/arm/code-stubs-arm.cc

Issue 14367018: Add monomorphic CompareNilICs and Crankshaft support (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 CodeStubInterfaceDescriptor* descriptor) { 89 CodeStubInterfaceDescriptor* descriptor) {
90 static Register registers[] = { r0, r1 }; 90 static Register registers[] = { r0, r1 };
91 descriptor->register_param_count_ = 2; 91 descriptor->register_param_count_ = 2;
92 descriptor->register_params_ = registers; 92 descriptor->register_params_ = registers;
93 Address entry = 93 Address entry =
94 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; 94 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry;
95 descriptor->deoptimization_handler_ = FUNCTION_ADDR(entry); 95 descriptor->deoptimization_handler_ = FUNCTION_ADDR(entry);
96 } 96 }
97 97
98 98
99 void CompareNilICStub::InitializeInterfaceDescriptor(
100 Isolate* isolate,
101 CodeStubInterfaceDescriptor* descriptor) {
102 static Register registers[] = { r0 };
103 descriptor->register_param_count_ = 1;
104 descriptor->register_params_ = registers;
105 descriptor->deoptimization_handler_ =
106 FUNCTION_ADDR(CompareNilIC_Miss);
107 descriptor->miss_handler_ =
108 ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate);
109 }
110
111
99 static void InitializeArrayConstructorDescriptor(Isolate* isolate, 112 static void InitializeArrayConstructorDescriptor(Isolate* isolate,
100 CodeStubInterfaceDescriptor* descriptor) { 113 CodeStubInterfaceDescriptor* descriptor) {
101 // register state 114 // register state
102 // r1 -- constructor function 115 // r1 -- constructor function
103 // r2 -- type info cell with elements kind 116 // r2 -- type info cell with elements kind
104 // r0 -- number of arguments to the constructor function 117 // r0 -- number of arguments to the constructor function
105 static Register registers[] = { r1, r2 }; 118 static Register registers[] = { r1, r2 };
106 descriptor->register_param_count_ = 2; 119 descriptor->register_param_count_ = 2;
107 // stack param count needs (constructor pointer, and single argument) 120 // stack param count needs (constructor pointer, and single argument)
108 descriptor->stack_parameter_count_ = &r0; 121 descriptor->stack_parameter_count_ = &r0;
(...skipping 7430 matching lines...) Expand 10 before | Expand all | Expand 10 after
7539 7552
7540 __ Pop(lr, r5, r1); 7553 __ Pop(lr, r5, r1);
7541 __ Ret(); 7554 __ Ret();
7542 } 7555 }
7543 7556
7544 #undef __ 7557 #undef __
7545 7558
7546 } } // namespace v8::internal 7559 } } // namespace v8::internal
7547 7560
7548 #endif // V8_TARGET_ARCH_ARM 7561 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698