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

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

Issue 12221064: Implement many KeyedStoreStubs using Crankshaft (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Final review feedback Created 7 years, 9 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/hydrogen.cc ('k') | src/ic.h » ('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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 CodeStubInterfaceDescriptor* descriptor) { 60 CodeStubInterfaceDescriptor* descriptor) {
61 static Register registers[] = { edx, ecx }; 61 static Register registers[] = { edx, ecx };
62 descriptor->register_param_count_ = 2; 62 descriptor->register_param_count_ = 2;
63 descriptor->register_params_ = registers; 63 descriptor->register_params_ = registers;
64 descriptor->stack_parameter_count_ = NULL; 64 descriptor->stack_parameter_count_ = NULL;
65 descriptor->deoptimization_handler_ = 65 descriptor->deoptimization_handler_ =
66 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); 66 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
67 } 67 }
68 68
69 69
70 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
71 Isolate* isolate,
72 CodeStubInterfaceDescriptor* descriptor) {
73 static Register registers[] = { edx, ecx, eax };
74 descriptor->register_param_count_ = 3;
75 descriptor->register_params_ = registers;
76 descriptor->deoptimization_handler_ =
77 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure);
78 }
79
80
70 void TransitionElementsKindStub::InitializeInterfaceDescriptor( 81 void TransitionElementsKindStub::InitializeInterfaceDescriptor(
71 Isolate* isolate, 82 Isolate* isolate,
72 CodeStubInterfaceDescriptor* descriptor) { 83 CodeStubInterfaceDescriptor* descriptor) {
73 static Register registers[] = { eax, ebx }; 84 static Register registers[] = { eax, ebx };
74 descriptor->register_param_count_ = 2; 85 descriptor->register_param_count_ = 2;
75 descriptor->register_params_ = registers; 86 descriptor->register_params_ = registers;
76 descriptor->deoptimization_handler_ = 87 descriptor->deoptimization_handler_ =
77 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; 88 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry;
78 } 89 }
79 90
(...skipping 7780 matching lines...) Expand 10 before | Expand all | Expand 10 after
7860 // Restore ecx. 7871 // Restore ecx.
7861 __ pop(ecx); 7872 __ pop(ecx);
7862 __ ret(0); 7873 __ ret(0);
7863 } 7874 }
7864 7875
7865 #undef __ 7876 #undef __
7866 7877
7867 } } // namespace v8::internal 7878 } } // namespace v8::internal
7868 7879
7869 #endif // V8_TARGET_ARCH_IA32 7880 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698