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

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

Issue 12302017: Cleanup code-stub interface descriptor initialization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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/isolate.cc ('k') | no next file » | 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 27 matching lines...) Expand all
38 namespace v8 { 38 namespace v8 {
39 namespace internal { 39 namespace internal {
40 40
41 41
42 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( 42 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
43 Isolate* isolate, 43 Isolate* isolate,
44 CodeStubInterfaceDescriptor* descriptor) { 44 CodeStubInterfaceDescriptor* descriptor) {
45 static Register registers[] = { rdx, rax }; 45 static Register registers[] = { rdx, rax };
46 descriptor->register_param_count_ = 2; 46 descriptor->register_param_count_ = 2;
47 descriptor->register_params_ = registers; 47 descriptor->register_params_ = registers;
48 descriptor->stack_parameter_count_ = NULL;
49 descriptor->deoptimization_handler_ = 48 descriptor->deoptimization_handler_ =
50 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); 49 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
51 } 50 }
52 51
53 52
54 void TransitionElementsKindStub::InitializeInterfaceDescriptor( 53 void TransitionElementsKindStub::InitializeInterfaceDescriptor(
55 Isolate* isolate, 54 Isolate* isolate,
56 CodeStubInterfaceDescriptor* descriptor) { 55 CodeStubInterfaceDescriptor* descriptor) {
57 static Register registers[] = { rax, rbx }; 56 static Register registers[] = { rax, rbx };
58 descriptor->register_param_count_ = 2; 57 descriptor->register_param_count_ = 2;
(...skipping 6653 matching lines...) Expand 10 before | Expand all | Expand 10 after
6712 #endif 6711 #endif
6713 6712
6714 __ Ret(); 6713 __ Ret();
6715 } 6714 }
6716 6715
6717 #undef __ 6716 #undef __
6718 6717
6719 } } // namespace v8::internal 6718 } } // namespace v8::internal
6720 6719
6721 #endif // V8_TARGET_ARCH_X64 6720 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698