OLD | NEW |
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 Loading... |
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[] = { a3, a2, a1 }; | 46 static Register registers[] = { a3, a2, a1 }; |
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[] = { a3, a2, a1, a0 }; | 57 static Register registers[] = { a3, a2, a1, a0 }; |
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[] = { a1, a0 }; | 68 static Register registers[] = { a1, a0 }; |
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[] = { a0 }; | 79 static Register registers[] = { a0 }; |
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[] = { a1 }; | 89 static Register registers[] = { a1 }; |
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[] = { a2, a1, a0 }; | 99 static Register registers[] = { a2, a1, a0 }; |
104 descriptor->register_param_count_ = 3; | 100 descriptor->register_param_count_ = 3; |
105 descriptor->register_params_ = registers; | 101 descriptor->register_params_ = registers; |
(...skipping 7741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7847 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 7843 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
7848 } | 7844 } |
7849 } | 7845 } |
7850 | 7846 |
7851 | 7847 |
7852 #undef __ | 7848 #undef __ |
7853 | 7849 |
7854 } } // namespace v8::internal | 7850 } } // namespace v8::internal |
7855 | 7851 |
7856 #endif // V8_TARGET_ARCH_MIPS | 7852 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |