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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/ia32/code-stubs-ia32.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 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 FastCloneShallowArrayStub::InitializeInterfaceDescriptor( 42 void FastCloneShallowArrayStub::InitializeInterfaceDescriptor(
43 Isolate* isolate, 43 Isolate* isolate,
44 CodeStubInterfaceDescriptor* descriptor) { 44 CodeStubInterfaceDescriptor* descriptor) {
45 static Register registers[] = { r3, r2, r1 }; 45 static Register registers[] = { r3, r2, r1 };
46 descriptor->register_param_count_ = 3; 46 descriptor->register_param_count_ = 3;
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 Runtime::FunctionForId(Runtime::kCreateArrayLiteralShallow)->entry; 49 Runtime::FunctionForId(Runtime::kCreateArrayLiteralShallow)->entry;
51 } 50 }
52 51
53 52
54 void FastCloneShallowObjectStub::InitializeInterfaceDescriptor( 53 void FastCloneShallowObjectStub::InitializeInterfaceDescriptor(
55 Isolate* isolate, 54 Isolate* isolate,
56 CodeStubInterfaceDescriptor* descriptor) { 55 CodeStubInterfaceDescriptor* descriptor) {
57 static Register registers[] = { r3, r2, r1, r0 }; 56 static Register registers[] = { r3, r2, r1, r0 };
58 descriptor->register_param_count_ = 4; 57 descriptor->register_param_count_ = 4;
59 descriptor->register_params_ = registers; 58 descriptor->register_params_ = registers;
60 descriptor->stack_parameter_count_ = NULL;
61 descriptor->deoptimization_handler_ = 59 descriptor->deoptimization_handler_ =
62 Runtime::FunctionForId(Runtime::kCreateObjectLiteralShallow)->entry; 60 Runtime::FunctionForId(Runtime::kCreateObjectLiteralShallow)->entry;
63 } 61 }
64 62
65 63
66 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( 64 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
67 Isolate* isolate, 65 Isolate* isolate,
68 CodeStubInterfaceDescriptor* descriptor) { 66 CodeStubInterfaceDescriptor* descriptor) {
69 static Register registers[] = { r1, r0 }; 67 static Register registers[] = { r1, r0 };
70 descriptor->register_param_count_ = 2; 68 descriptor->register_param_count_ = 2;
71 descriptor->register_params_ = registers; 69 descriptor->register_params_ = registers;
72 descriptor->deoptimization_handler_ = 70 descriptor->deoptimization_handler_ =
73 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); 71 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
74 } 72 }
75 73
76 74
77 void LoadFieldStub::InitializeInterfaceDescriptor( 75 void LoadFieldStub::InitializeInterfaceDescriptor(
78 Isolate* isolate, 76 Isolate* isolate,
79 CodeStubInterfaceDescriptor* descriptor) { 77 CodeStubInterfaceDescriptor* descriptor) {
80 static Register registers[] = { r0 }; 78 static Register registers[] = { r0 };
81 descriptor->register_param_count_ = 1; 79 descriptor->register_param_count_ = 1;
82 descriptor->register_params_ = registers; 80 descriptor->register_params_ = registers;
83 descriptor->stack_parameter_count_ = NULL;
84 descriptor->deoptimization_handler_ = NULL; 81 descriptor->deoptimization_handler_ = NULL;
85 } 82 }
86 83
87 84
88 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( 85 void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
89 Isolate* isolate, 86 Isolate* isolate,
90 CodeStubInterfaceDescriptor* descriptor) { 87 CodeStubInterfaceDescriptor* descriptor) {
91 static Register registers[] = { r1 }; 88 static Register registers[] = { r1 };
92 descriptor->register_param_count_ = 1; 89 descriptor->register_param_count_ = 1;
93 descriptor->register_params_ = registers; 90 descriptor->register_params_ = registers;
94 descriptor->stack_parameter_count_ = NULL;
95 descriptor->deoptimization_handler_ = NULL; 91 descriptor->deoptimization_handler_ = NULL;
96 } 92 }
97 93
98 94
99 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( 95 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
100 Isolate* isolate, 96 Isolate* isolate,
101 CodeStubInterfaceDescriptor* descriptor) { 97 CodeStubInterfaceDescriptor* descriptor) {
102 static Register registers[] = { r2, r1, r0 }; 98 static Register registers[] = { r2, r1, r0 };
103 descriptor->register_param_count_ = 3; 99 descriptor->register_param_count_ = 3;
104 descriptor->register_params_ = registers; 100 descriptor->register_params_ = registers;
(...skipping 7329 matching lines...) Expand 10 before | Expand all | Expand 10 after
7434 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 7430 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
7435 } 7431 }
7436 } 7432 }
7437 7433
7438 7434
7439 #undef __ 7435 #undef __
7440 7436
7441 } } // namespace v8::internal 7437 } } // namespace v8::internal
7442 7438
7443 #endif // V8_TARGET_ARCH_ARM 7439 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698