| 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_IA32) | 30 #if defined(V8_TARGET_ARCH_IA32) |
| 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 "isolate.h" | 35 #include "isolate.h" |
| 35 #include "jsregexp.h" | 36 #include "jsregexp.h" |
| 36 #include "regexp-macro-assembler.h" | 37 #include "regexp-macro-assembler.h" |
| 37 #include "runtime.h" | 38 #include "runtime.h" |
| 38 #include "stub-cache.h" | 39 #include "stub-cache.h" |
| 39 #include "codegen.h" | 40 #include "codegen.h" |
| 40 #include "runtime.h" | 41 #include "runtime.h" |
| 41 | 42 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 Isolate* isolate, | 83 Isolate* isolate, |
| 83 CodeStubInterfaceDescriptor* descriptor) { | 84 CodeStubInterfaceDescriptor* descriptor) { |
| 84 static Register registers[] = { eax, ebx }; | 85 static Register registers[] = { eax, ebx }; |
| 85 descriptor->register_param_count_ = 2; | 86 descriptor->register_param_count_ = 2; |
| 86 descriptor->register_params_ = registers; | 87 descriptor->register_params_ = registers; |
| 87 descriptor->deoptimization_handler_ = | 88 descriptor->deoptimization_handler_ = |
| 88 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; | 89 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; |
| 89 } | 90 } |
| 90 | 91 |
| 91 | 92 |
| 93 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ArrayConstructor_StubFailure); |
| 92 static void InitializeArrayConstructorDescriptor(Isolate* isolate, | 94 static void InitializeArrayConstructorDescriptor(Isolate* isolate, |
| 93 CodeStubInterfaceDescriptor* descriptor) { | 95 CodeStubInterfaceDescriptor* descriptor) { |
| 94 // register state | 96 // register state |
| 95 // edi -- constructor function | 97 // edi -- constructor function |
| 96 // ebx -- type info cell with elements kind | 98 // ebx -- type info cell with elements kind |
| 97 // eax -- number of arguments to the constructor function | 99 // eax -- number of arguments to the constructor function |
| 98 static Register registers[] = { edi, ebx }; | 100 static Register registers[] = { edi, ebx }; |
| 99 descriptor->register_param_count_ = 2; | 101 descriptor->register_param_count_ = 2; |
| 100 // stack param count needs (constructor pointer, and single argument) | 102 // stack param count needs (constructor pointer, and single argument) |
| 101 descriptor->stack_parameter_count_ = &eax; | 103 descriptor->stack_parameter_count_ = &eax; |
| (...skipping 7760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7862 // Restore ecx. | 7864 // Restore ecx. |
| 7863 __ pop(ecx); | 7865 __ pop(ecx); |
| 7864 __ ret(0); | 7866 __ ret(0); |
| 7865 } | 7867 } |
| 7866 | 7868 |
| 7867 #undef __ | 7869 #undef __ |
| 7868 | 7870 |
| 7869 } } // namespace v8::internal | 7871 } } // namespace v8::internal |
| 7870 | 7872 |
| 7871 #endif // V8_TARGET_ARCH_IA32 | 7873 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |