| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 7053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7064 __ pop(edi); // Pop return address and remember to put back later for tail | 7064 __ pop(edi); // Pop return address and remember to put back later for tail |
| 7065 // call. | 7065 // call. |
| 7066 __ push(ebx); | 7066 __ push(ebx); |
| 7067 __ push(ecx); | 7067 __ push(ecx); |
| 7068 __ push(eax); | 7068 __ push(eax); |
| 7069 __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); | 7069 __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
| 7070 __ push(FieldOperand(ebx, JSFunction::kLiteralsOffset)); | 7070 __ push(FieldOperand(ebx, JSFunction::kLiteralsOffset)); |
| 7071 __ push(edx); | 7071 __ push(edx); |
| 7072 __ push(edi); // Return return address so that tail call returns to right | 7072 __ push(edi); // Return return address so that tail call returns to right |
| 7073 // place. | 7073 // place. |
| 7074 __ TailCallRuntime(Runtime::kStoreArrayLiteralElement, 5, 1); | 7074 __ TailCallRuntime(Runtime::kStoreArrayLiteralElement, 5, 0); |
| 7075 | 7075 |
| 7076 if (!FLAG_trace_elements_transitions) { | 7076 if (!FLAG_trace_elements_transitions) { |
| 7077 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. | 7077 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. |
| 7078 __ bind(&double_elements); | 7078 __ bind(&double_elements); |
| 7079 | 7079 |
| 7080 __ push(edx); | 7080 __ push(edx); |
| 7081 __ mov(edx, FieldOperand(ebx, JSObject::kElementsOffset)); | 7081 __ mov(edx, FieldOperand(ebx, JSObject::kElementsOffset)); |
| 7082 __ StoreNumberToDoubleElements(eax, | 7082 __ StoreNumberToDoubleElements(eax, |
| 7083 edx, | 7083 edx, |
| 7084 ecx, | 7084 ecx, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7116 __ bind(&element_done); | 7116 __ bind(&element_done); |
| 7117 __ ret(0); | 7117 __ ret(0); |
| 7118 } | 7118 } |
| 7119 } | 7119 } |
| 7120 | 7120 |
| 7121 #undef __ | 7121 #undef __ |
| 7122 | 7122 |
| 7123 } } // namespace v8::internal | 7123 } } // namespace v8::internal |
| 7124 | 7124 |
| 7125 #endif // V8_TARGET_ARCH_IA32 | 7125 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |