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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 339663008: Revert "Create a RegisterSpec class inside of the IC that provides:" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | « src/ic.h ('k') | src/mips/ic-mips.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( 83 void CreateAllocationSiteStub::InitializeInterfaceDescriptor(
84 CodeStubInterfaceDescriptor* descriptor) { 84 CodeStubInterfaceDescriptor* descriptor) {
85 static Register registers[] = { a2, a3 }; 85 static Register registers[] = { a2, a3 };
86 descriptor->register_param_count_ = 2; 86 descriptor->register_param_count_ = 2;
87 descriptor->register_params_ = registers; 87 descriptor->register_params_ = registers;
88 descriptor->deoptimization_handler_ = NULL; 88 descriptor->deoptimization_handler_ = NULL;
89 } 89 }
90 90
91 91
92 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
93 CodeStubInterfaceDescriptor* descriptor) {
94 static Register registers[] = { a1, a0 };
95 descriptor->register_param_count_ = 2;
96 descriptor->register_params_ = registers;
97 descriptor->deoptimization_handler_ =
98 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
99 }
100
101
102 void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor(
103 CodeStubInterfaceDescriptor* descriptor) {
104 static Register registers[] = {a1, a0 };
105 descriptor->register_param_count_ = 2;
106 descriptor->register_params_ = registers;
107 descriptor->deoptimization_handler_ =
108 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
109 }
110
111
92 void RegExpConstructResultStub::InitializeInterfaceDescriptor( 112 void RegExpConstructResultStub::InitializeInterfaceDescriptor(
93 CodeStubInterfaceDescriptor* descriptor) { 113 CodeStubInterfaceDescriptor* descriptor) {
94 static Register registers[] = { a2, a1, a0 }; 114 static Register registers[] = { a2, a1, a0 };
95 descriptor->register_param_count_ = 3; 115 descriptor->register_param_count_ = 3;
96 descriptor->register_params_ = registers; 116 descriptor->register_params_ = registers;
97 descriptor->deoptimization_handler_ = 117 descriptor->deoptimization_handler_ =
98 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; 118 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry;
99 } 119 }
100 120
101 121
122 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor(
123 CodeStubInterfaceDescriptor* descriptor) {
124 static Register registers[] = { a1, a0 };
125 descriptor->register_param_count_ = 2;
126 descriptor->register_params_ = registers;
127 descriptor->deoptimization_handler_ =
128 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry;
129 }
130
131
102 void LoadFieldStub::InitializeInterfaceDescriptor( 132 void LoadFieldStub::InitializeInterfaceDescriptor(
103 CodeStubInterfaceDescriptor* descriptor) { 133 CodeStubInterfaceDescriptor* descriptor) {
104 static Register registers[] = { a0 }; 134 static Register registers[] = { a0 };
105 descriptor->register_param_count_ = 1; 135 descriptor->register_param_count_ = 1;
106 descriptor->register_params_ = registers; 136 descriptor->register_params_ = registers;
107 descriptor->deoptimization_handler_ = NULL; 137 descriptor->deoptimization_handler_ = NULL;
108 } 138 }
109 139
110 140
111 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( 141 void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
(...skipping 5265 matching lines...) Expand 10 before | Expand all | Expand 10 after
5377 MemOperand(fp, 6 * kPointerSize), 5407 MemOperand(fp, 6 * kPointerSize),
5378 NULL); 5408 NULL);
5379 } 5409 }
5380 5410
5381 5411
5382 #undef __ 5412 #undef __
5383 5413
5384 } } // namespace v8::internal 5414 } } // namespace v8::internal
5385 5415
5386 #endif // V8_TARGET_ARCH_MIPS 5416 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698