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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
251 Isolate* isolate, | 251 Isolate* isolate, |
252 CodeStubInterfaceDescriptor* descriptor) { | 252 CodeStubInterfaceDescriptor* descriptor) { |
253 static Register registers[] = { r1, r2, r0 }; | 253 static Register registers[] = { r1, r2, r0 }; |
254 descriptor->register_param_count_ = 3; | 254 descriptor->register_param_count_ = 3; |
255 descriptor->register_params_ = registers; | 255 descriptor->register_params_ = registers; |
256 descriptor->deoptimization_handler_ = | 256 descriptor->deoptimization_handler_ = |
257 FUNCTION_ADDR(StoreIC_MissFromStubFailure); | 257 FUNCTION_ADDR(StoreIC_MissFromStubFailure); |
258 } | 258 } |
259 | 259 |
260 | 260 |
261 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( | |
262 Isolate* isolate, | |
263 CodeStubInterfaceDescriptor* descriptor) { | |
264 static Register registers[] = { r0, r3, r1, r2 }; | |
265 descriptor->register_param_count_ = 4; | |
266 descriptor->register_params_ = registers; | |
267 switch (strict_mode_) { | |
268 case kNonStrictMode: | |
269 descriptor->deoptimization_handler_ = Runtime::FunctionForId( | |
danno
2013/07/10 09:52:37
Yikes. In general, you should access members of th
Benedikt Meurer
2013/07/10 12:23:09
Done.
| |
270 Runtime::kElementsTransitionAndStoreNonStrict)->entry; | |
271 break; | |
272 | |
273 case kStrictMode: | |
274 descriptor->deoptimization_handler_ = Runtime::FunctionForId( | |
275 Runtime::kElementsTransitionAndStoreStrict)->entry; | |
276 break; | |
277 } | |
278 } | |
279 | |
280 | |
261 #define __ ACCESS_MASM(masm) | 281 #define __ ACCESS_MASM(masm) |
262 | 282 |
263 | 283 |
264 static void EmitIdenticalObjectComparison(MacroAssembler* masm, | 284 static void EmitIdenticalObjectComparison(MacroAssembler* masm, |
265 Label* slow, | 285 Label* slow, |
266 Condition cond); | 286 Condition cond); |
267 static void EmitSmiNonsmiComparison(MacroAssembler* masm, | 287 static void EmitSmiNonsmiComparison(MacroAssembler* masm, |
268 Register lhs, | 288 Register lhs, |
269 Register rhs, | 289 Register rhs, |
270 Label* lhs_not_nan, | 290 Label* lhs_not_nan, |
(...skipping 6928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7199 __ bind(&fast_elements_case); | 7219 __ bind(&fast_elements_case); |
7200 GenerateCase(masm, FAST_ELEMENTS); | 7220 GenerateCase(masm, FAST_ELEMENTS); |
7201 } | 7221 } |
7202 | 7222 |
7203 | 7223 |
7204 #undef __ | 7224 #undef __ |
7205 | 7225 |
7206 } } // namespace v8::internal | 7226 } } // namespace v8::internal |
7207 | 7227 |
7208 #endif // V8_TARGET_ARCH_ARM | 7228 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |