| 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 19 matching lines...) Expand all Loading... |
| 30 #if defined(V8_TARGET_ARCH_ARM) | 30 #if defined(V8_TARGET_ARCH_ARM) |
| 31 | 31 |
| 32 #include "bootstrapper.h" | 32 #include "bootstrapper.h" |
| 33 #include "code-stubs.h" | 33 #include "code-stubs.h" |
| 34 #include "regexp-macro-assembler.h" | 34 #include "regexp-macro-assembler.h" |
| 35 | 35 |
| 36 namespace v8 { | 36 namespace v8 { |
| 37 namespace internal { | 37 namespace internal { |
| 38 | 38 |
| 39 | 39 |
| 40 CodeStubInterfaceDescriptor* | 40 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( |
| 41 KeyedLoadFastElementStub::GetInterfaceDescriptor(Isolate* isolate) { | 41 Isolate* isolate, |
| 42 static CodeStubInterfaceDescriptor* result = NULL; | 42 CodeStubInterfaceDescriptor* descriptor) { |
| 43 if (result == NULL) { | 43 static Register registers[] = { r1, r0 }; |
| 44 Handle<Code> miss = isolate->builtins()->KeyedLoadIC_Miss(); | 44 descriptor->register_param_count_ = 2; |
| 45 static Register registers[] = { r1, r0 }; | 45 descriptor->register_params_ = registers; |
| 46 static CodeStubInterfaceDescriptor info = { | 46 descriptor->deoptimization_handler_ = |
| 47 2, | 47 isolate->builtins()->KeyedLoadIC_Miss(); |
| 48 registers, | |
| 49 miss | |
| 50 }; | |
| 51 result = &info; | |
| 52 } | |
| 53 return result; | |
| 54 } | 48 } |
| 55 | 49 |
| 56 | 50 |
| 57 #define __ ACCESS_MASM(masm) | 51 #define __ ACCESS_MASM(masm) |
| 58 | 52 |
| 59 static void EmitIdenticalObjectComparison(MacroAssembler* masm, | 53 static void EmitIdenticalObjectComparison(MacroAssembler* masm, |
| 60 Label* slow, | 54 Label* slow, |
| 61 Condition cond); | 55 Condition cond); |
| 62 static void EmitSmiNonsmiComparison(MacroAssembler* masm, | 56 static void EmitSmiNonsmiComparison(MacroAssembler* masm, |
| 63 Register lhs, | 57 Register lhs, |
| (...skipping 7574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7638 | 7632 |
| 7639 __ Pop(lr, r5, r1); | 7633 __ Pop(lr, r5, r1); |
| 7640 __ Ret(); | 7634 __ Ret(); |
| 7641 } | 7635 } |
| 7642 | 7636 |
| 7643 #undef __ | 7637 #undef __ |
| 7644 | 7638 |
| 7645 } } // namespace v8::internal | 7639 } } // namespace v8::internal |
| 7646 | 7640 |
| 7647 #endif // V8_TARGET_ARCH_ARM | 7641 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |