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

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

Issue 57123002: Reland 21774: Generate KeyedLoadGeneric with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Feedback addressed 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
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_IA32 7 #if V8_TARGET_ARCH_IA32
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void RegExpConstructResultStub::InitializeInterfaceDescriptor( 116 void RegExpConstructResultStub::InitializeInterfaceDescriptor(
117 CodeStubInterfaceDescriptor* descriptor) { 117 CodeStubInterfaceDescriptor* descriptor) {
118 static Register registers[] = { ecx, ebx, eax }; 118 static Register registers[] = { ecx, ebx, eax };
119 descriptor->register_param_count_ = 3; 119 descriptor->register_param_count_ = 3;
120 descriptor->register_params_ = registers; 120 descriptor->register_params_ = registers;
121 descriptor->deoptimization_handler_ = 121 descriptor->deoptimization_handler_ =
122 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; 122 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry;
123 } 123 }
124 124
125 125
126 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor(
127 CodeStubInterfaceDescriptor* descriptor) {
128 static Register registers[] = { edx, ecx };
129 descriptor->register_param_count_ = 2;
130 descriptor->register_params_ = registers;
131 descriptor->deoptimization_handler_ =
132 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry;
133 }
134
135
126 void LoadFieldStub::InitializeInterfaceDescriptor( 136 void LoadFieldStub::InitializeInterfaceDescriptor(
127 CodeStubInterfaceDescriptor* descriptor) { 137 CodeStubInterfaceDescriptor* descriptor) {
128 static Register registers[] = { edx }; 138 static Register registers[] = { edx };
129 descriptor->register_param_count_ = 1; 139 descriptor->register_param_count_ = 1;
130 descriptor->register_params_ = registers; 140 descriptor->register_params_ = registers;
131 descriptor->deoptimization_handler_ = NULL; 141 descriptor->deoptimization_handler_ = NULL;
132 } 142 }
133 143
134 144
135 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( 145 void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
(...skipping 4970 matching lines...) Expand 10 before | Expand all | Expand 10 after
5106 Operand(ebp, 7 * kPointerSize), 5116 Operand(ebp, 7 * kPointerSize),
5107 NULL); 5117 NULL);
5108 } 5118 }
5109 5119
5110 5120
5111 #undef __ 5121 #undef __
5112 5122
5113 } } // namespace v8::internal 5123 } } // namespace v8::internal
5114 5124
5115 #endif // V8_TARGET_ARCH_IA32 5125 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/hydrogen.cc ('K') | « src/hydrogen-instructions.h ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698