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

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

Issue 7348008: Merge up to 8597 to experimental/gc from the bleeding edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 5 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/code-stubs.h ('k') | src/codegen.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 Activate(code); 167 Activate(code);
168 } 168 }
169 169
170 return code; 170 return code;
171 } 171 }
172 172
173 173
174 const char* CodeStub::MajorName(CodeStub::Major major_key, 174 const char* CodeStub::MajorName(CodeStub::Major major_key,
175 bool allow_unknown_keys) { 175 bool allow_unknown_keys) {
176 switch (major_key) { 176 switch (major_key) {
177 #define DEF_CASE(name) case name: return #name; 177 #define DEF_CASE(name) case name: return #name "Stub";
178 CODE_STUB_LIST(DEF_CASE) 178 CODE_STUB_LIST(DEF_CASE)
179 #undef DEF_CASE 179 #undef DEF_CASE
180 default: 180 default:
181 if (!allow_unknown_keys) { 181 if (!allow_unknown_keys) {
182 UNREACHABLE(); 182 UNREACHABLE();
183 } 183 }
184 return NULL; 184 return NULL;
185 } 185 }
186 } 186 }
187 187
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 OS::SNPrintF(Vector<char>(name_, kMaxNameLength), 242 OS::SNPrintF(Vector<char>(name_, kMaxNameLength),
243 "InstanceofStub%s%s%s", 243 "InstanceofStub%s%s%s",
244 args, 244 args,
245 inline_check, 245 inline_check,
246 return_true_false_object); 246 return_true_false_object);
247 return name_; 247 return name_;
248 } 248 }
249 249
250 250
251 void KeyedLoadFastElementStub::Generate(MacroAssembler* masm) { 251 void KeyedLoadElementStub::Generate(MacroAssembler* masm) {
252 KeyedLoadStubCompiler::GenerateLoadFastElement(masm); 252 switch (elements_kind_) {
253 case JSObject::FAST_ELEMENTS:
254 KeyedLoadStubCompiler::GenerateLoadFastElement(masm);
255 break;
256 case JSObject::FAST_DOUBLE_ELEMENTS:
257 UNIMPLEMENTED();
258 break;
259 case JSObject::EXTERNAL_BYTE_ELEMENTS:
260 case JSObject::EXTERNAL_UNSIGNED_BYTE_ELEMENTS:
261 case JSObject::EXTERNAL_SHORT_ELEMENTS:
262 case JSObject::EXTERNAL_UNSIGNED_SHORT_ELEMENTS:
263 case JSObject::EXTERNAL_INT_ELEMENTS:
264 case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS:
265 case JSObject::EXTERNAL_FLOAT_ELEMENTS:
266 case JSObject::EXTERNAL_DOUBLE_ELEMENTS:
267 case JSObject::EXTERNAL_PIXEL_ELEMENTS:
268 KeyedLoadStubCompiler::GenerateLoadExternalArray(masm, elements_kind_);
269 break;
270 case JSObject::DICTIONARY_ELEMENTS:
271 KeyedLoadStubCompiler::GenerateLoadDictionaryElement(masm);
272 break;
273 case JSObject::NON_STRICT_ARGUMENTS_ELEMENTS:
274 UNREACHABLE();
275 break;
276 }
253 } 277 }
254 278
255 279
256 void KeyedStoreFastElementStub::Generate(MacroAssembler* masm) { 280 void KeyedStoreElementStub::Generate(MacroAssembler* masm) {
257 KeyedStoreStubCompiler::GenerateStoreFastElement(masm, is_js_array_); 281 switch (elements_kind_) {
258 } 282 case JSObject::FAST_ELEMENTS:
259 283 KeyedStoreStubCompiler::GenerateStoreFastElement(masm, is_js_array_);
260 284 break;
261 void KeyedLoadExternalArrayStub::Generate(MacroAssembler* masm) { 285 case JSObject::FAST_DOUBLE_ELEMENTS:
262 KeyedLoadStubCompiler::GenerateLoadExternalArray(masm, array_type_); 286 UNIMPLEMENTED();
263 } 287 break;
264 288 case JSObject::EXTERNAL_BYTE_ELEMENTS:
265 289 case JSObject::EXTERNAL_UNSIGNED_BYTE_ELEMENTS:
266 void KeyedStoreExternalArrayStub::Generate(MacroAssembler* masm) { 290 case JSObject::EXTERNAL_SHORT_ELEMENTS:
267 KeyedStoreStubCompiler::GenerateStoreExternalArray(masm, array_type_); 291 case JSObject::EXTERNAL_UNSIGNED_SHORT_ELEMENTS:
292 case JSObject::EXTERNAL_INT_ELEMENTS:
293 case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS:
294 case JSObject::EXTERNAL_FLOAT_ELEMENTS:
295 case JSObject::EXTERNAL_DOUBLE_ELEMENTS:
296 case JSObject::EXTERNAL_PIXEL_ELEMENTS:
297 KeyedStoreStubCompiler::GenerateStoreExternalArray(masm, elements_kind_);
298 break;
299 case JSObject::DICTIONARY_ELEMENTS:
300 KeyedStoreStubCompiler::GenerateStoreDictionaryElement(masm);
301 break;
302 case JSObject::NON_STRICT_ARGUMENTS_ELEMENTS:
303 UNREACHABLE();
304 break;
305 }
268 } 306 }
269 307
270 308
271 } } // namespace v8::internal 309 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698