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

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

Issue 16097004: Remove duplicated initialization of stack_parameter_count_ of hydrogen stub descriptor. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 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
« no previous file with comments | « src/mips/code-stubs-mips.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 28 matching lines...) Expand all
39 namespace v8 { 39 namespace v8 {
40 namespace internal { 40 namespace internal {
41 41
42 42
43 void FastCloneShallowArrayStub::InitializeInterfaceDescriptor( 43 void FastCloneShallowArrayStub::InitializeInterfaceDescriptor(
44 Isolate* isolate, 44 Isolate* isolate,
45 CodeStubInterfaceDescriptor* descriptor) { 45 CodeStubInterfaceDescriptor* descriptor) {
46 static Register registers[] = { rax, rbx, rcx }; 46 static Register registers[] = { rax, rbx, rcx };
47 descriptor->register_param_count_ = 3; 47 descriptor->register_param_count_ = 3;
48 descriptor->register_params_ = registers; 48 descriptor->register_params_ = registers;
49 descriptor->stack_parameter_count_ = NULL;
50 descriptor->deoptimization_handler_ = 49 descriptor->deoptimization_handler_ =
51 Runtime::FunctionForId(Runtime::kCreateArrayLiteralShallow)->entry; 50 Runtime::FunctionForId(Runtime::kCreateArrayLiteralShallow)->entry;
52 } 51 }
53 52
54 53
55 void FastCloneShallowObjectStub::InitializeInterfaceDescriptor( 54 void FastCloneShallowObjectStub::InitializeInterfaceDescriptor(
56 Isolate* isolate, 55 Isolate* isolate,
57 CodeStubInterfaceDescriptor* descriptor) { 56 CodeStubInterfaceDescriptor* descriptor) {
58 static Register registers[] = { rax, rbx, rcx, rdx }; 57 static Register registers[] = { rax, rbx, rcx, rdx };
59 descriptor->register_param_count_ = 4; 58 descriptor->register_param_count_ = 4;
60 descriptor->register_params_ = registers; 59 descriptor->register_params_ = registers;
61 descriptor->stack_parameter_count_ = NULL;
62 descriptor->deoptimization_handler_ = 60 descriptor->deoptimization_handler_ =
63 Runtime::FunctionForId(Runtime::kCreateObjectLiteralShallow)->entry; 61 Runtime::FunctionForId(Runtime::kCreateObjectLiteralShallow)->entry;
64 } 62 }
65 63
66 64
67 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( 65 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
68 Isolate* isolate, 66 Isolate* isolate,
69 CodeStubInterfaceDescriptor* descriptor) { 67 CodeStubInterfaceDescriptor* descriptor) {
70 static Register registers[] = { rdx, rax }; 68 static Register registers[] = { rdx, rax };
71 descriptor->register_param_count_ = 2; 69 descriptor->register_param_count_ = 2;
72 descriptor->register_params_ = registers; 70 descriptor->register_params_ = registers;
73 descriptor->deoptimization_handler_ = 71 descriptor->deoptimization_handler_ =
74 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); 72 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
75 } 73 }
76 74
77 75
78 void LoadFieldStub::InitializeInterfaceDescriptor( 76 void LoadFieldStub::InitializeInterfaceDescriptor(
79 Isolate* isolate, 77 Isolate* isolate,
80 CodeStubInterfaceDescriptor* descriptor) { 78 CodeStubInterfaceDescriptor* descriptor) {
81 static Register registers[] = { rax }; 79 static Register registers[] = { rax };
82 descriptor->register_param_count_ = 1; 80 descriptor->register_param_count_ = 1;
83 descriptor->register_params_ = registers; 81 descriptor->register_params_ = registers;
84 descriptor->stack_parameter_count_ = NULL;
85 descriptor->deoptimization_handler_ = NULL; 82 descriptor->deoptimization_handler_ = NULL;
86 } 83 }
87 84
88 85
89 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( 86 void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
90 Isolate* isolate, 87 Isolate* isolate,
91 CodeStubInterfaceDescriptor* descriptor) { 88 CodeStubInterfaceDescriptor* descriptor) {
92 static Register registers[] = { rdx }; 89 static Register registers[] = { rdx };
93 descriptor->register_param_count_ = 1; 90 descriptor->register_param_count_ = 1;
94 descriptor->register_params_ = registers; 91 descriptor->register_params_ = registers;
95 descriptor->stack_parameter_count_ = NULL;
96 descriptor->deoptimization_handler_ = NULL; 92 descriptor->deoptimization_handler_ = NULL;
97 } 93 }
98 94
99 95
100 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( 96 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
101 Isolate* isolate, 97 Isolate* isolate,
102 CodeStubInterfaceDescriptor* descriptor) { 98 CodeStubInterfaceDescriptor* descriptor) {
103 static Register registers[] = { rdx, rcx, rax }; 99 static Register registers[] = { rdx, rcx, rax };
104 descriptor->register_param_count_ = 3; 100 descriptor->register_param_count_ = 3;
105 descriptor->register_params_ = registers; 101 descriptor->register_params_ = registers;
(...skipping 6948 matching lines...) Expand 10 before | Expand all | Expand 10 after
7054 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET); 7050 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET);
7055 } 7051 }
7056 } 7052 }
7057 7053
7058 7054
7059 #undef __ 7055 #undef __
7060 7056
7061 } } // namespace v8::internal 7057 } } // namespace v8::internal
7062 7058
7063 #endif // V8_TARGET_ARCH_X64 7059 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698