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

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: Turn off by default Created 7 years 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 // 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 Isolate* isolate, 122 Isolate* isolate,
123 CodeStubInterfaceDescriptor* descriptor) { 123 CodeStubInterfaceDescriptor* descriptor) {
124 static Register registers[] = { edx, ecx }; 124 static Register registers[] = { edx, ecx };
125 descriptor->register_param_count_ = 2; 125 descriptor->register_param_count_ = 2;
126 descriptor->register_params_ = registers; 126 descriptor->register_params_ = registers;
127 descriptor->deoptimization_handler_ = 127 descriptor->deoptimization_handler_ =
128 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); 128 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
129 } 129 }
130 130
131 131
132 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor(
133 Isolate* isolate,
134 CodeStubInterfaceDescriptor* descriptor) {
135 static Register registers[] = { edx, ecx };
136 descriptor->register_param_count_ = 2;
137 descriptor->register_params_ = registers;
138 descriptor->deoptimization_handler_ =
139 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry;
140 }
141
142
132 void LoadFieldStub::InitializeInterfaceDescriptor( 143 void LoadFieldStub::InitializeInterfaceDescriptor(
133 Isolate* isolate, 144 Isolate* isolate,
134 CodeStubInterfaceDescriptor* descriptor) { 145 CodeStubInterfaceDescriptor* descriptor) {
135 static Register registers[] = { edx }; 146 static Register registers[] = { edx };
136 descriptor->register_param_count_ = 1; 147 descriptor->register_param_count_ = 1;
137 descriptor->register_params_ = registers; 148 descriptor->register_params_ = registers;
138 descriptor->deoptimization_handler_ = NULL; 149 descriptor->deoptimization_handler_ = NULL;
139 } 150 }
140 151
141 152
(...skipping 5929 matching lines...) Expand 10 before | Expand all | Expand 10 after
6071 __ bind(&fast_elements_case); 6082 __ bind(&fast_elements_case);
6072 GenerateCase(masm, FAST_ELEMENTS); 6083 GenerateCase(masm, FAST_ELEMENTS);
6073 } 6084 }
6074 6085
6075 6086
6076 #undef __ 6087 #undef __
6077 6088
6078 } } // namespace v8::internal 6089 } } // namespace v8::internal
6079 6090
6080 #endif // V8_TARGET_ARCH_IA32 6091 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698