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 11 matching lines...) Expand all Loading... |
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #include "v8.h" | 28 #include "v8.h" |
29 | 29 |
30 #if defined(V8_TARGET_ARCH_ARM) | 30 #if defined(V8_TARGET_ARCH_ARM) |
31 | 31 |
| 32 #include "arguments.h" |
32 #include "bootstrapper.h" | 33 #include "bootstrapper.h" |
33 #include "code-stubs.h" | 34 #include "code-stubs.h" |
34 #include "regexp-macro-assembler.h" | 35 #include "regexp-macro-assembler.h" |
35 #include "stub-cache.h" | 36 #include "stub-cache.h" |
36 | 37 |
37 namespace v8 { | 38 namespace v8 { |
38 namespace internal { | 39 namespace internal { |
39 | 40 |
40 | 41 |
41 void FastCloneShallowObjectStub::InitializeInterfaceDescriptor( | 42 void FastCloneShallowObjectStub::InitializeInterfaceDescriptor( |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 CodeStubInterfaceDescriptor* descriptor) { | 78 CodeStubInterfaceDescriptor* descriptor) { |
78 static Register registers[] = { r0, r1 }; | 79 static Register registers[] = { r0, r1 }; |
79 descriptor->register_param_count_ = 2; | 80 descriptor->register_param_count_ = 2; |
80 descriptor->register_params_ = registers; | 81 descriptor->register_params_ = registers; |
81 Address entry = | 82 Address entry = |
82 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; | 83 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; |
83 descriptor->deoptimization_handler_ = FUNCTION_ADDR(entry); | 84 descriptor->deoptimization_handler_ = FUNCTION_ADDR(entry); |
84 } | 85 } |
85 | 86 |
86 | 87 |
| 88 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ArrayConstructor_StubFailure); |
87 static void InitializeArrayConstructorDescriptor(Isolate* isolate, | 89 static void InitializeArrayConstructorDescriptor(Isolate* isolate, |
88 CodeStubInterfaceDescriptor* descriptor) { | 90 CodeStubInterfaceDescriptor* descriptor) { |
89 // register state | 91 // register state |
90 // r1 -- constructor function | 92 // r1 -- constructor function |
91 // r2 -- type info cell with elements kind | 93 // r2 -- type info cell with elements kind |
92 // r0 -- number of arguments to the constructor function | 94 // r0 -- number of arguments to the constructor function |
93 static Register registers[] = { r1, r2 }; | 95 static Register registers[] = { r1, r2 }; |
94 descriptor->register_param_count_ = 2; | 96 descriptor->register_param_count_ = 2; |
95 // stack param count needs (constructor pointer, and single argument) | 97 // stack param count needs (constructor pointer, and single argument) |
96 descriptor->stack_parameter_count_ = &r0; | 98 descriptor->stack_parameter_count_ = &r0; |
(...skipping 7932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8029 | 8031 |
8030 __ Pop(lr, r5, r1); | 8032 __ Pop(lr, r5, r1); |
8031 __ Ret(); | 8033 __ Ret(); |
8032 } | 8034 } |
8033 | 8035 |
8034 #undef __ | 8036 #undef __ |
8035 | 8037 |
8036 } } // namespace v8::internal | 8038 } } // namespace v8::internal |
8037 | 8039 |
8038 #endif // V8_TARGET_ARCH_ARM | 8040 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |