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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 if (op->IsStackSlot()) { | 945 if (op->IsStackSlot()) { |
946 if (is_tagged) { | 946 if (is_tagged) { |
947 translation->StoreStackSlot(op->index()); | 947 translation->StoreStackSlot(op->index()); |
948 } else if (is_uint32) { | 948 } else if (is_uint32) { |
949 translation->StoreUint32StackSlot(op->index()); | 949 translation->StoreUint32StackSlot(op->index()); |
950 } else { | 950 } else { |
951 translation->StoreInt32StackSlot(op->index()); | 951 translation->StoreInt32StackSlot(op->index()); |
952 } | 952 } |
953 } else if (op->IsDoubleStackSlot()) { | 953 } else if (op->IsDoubleStackSlot()) { |
954 translation->StoreDoubleStackSlot(op->index()); | 954 translation->StoreDoubleStackSlot(op->index()); |
955 } else if (op->IsArgument()) { | |
956 ASSERT(is_tagged); | |
957 int src_index = GetStackSlotCount() + op->index(); | |
958 translation->StoreStackSlot(src_index); | |
959 } else if (op->IsRegister()) { | 955 } else if (op->IsRegister()) { |
960 Register reg = ToRegister(op); | 956 Register reg = ToRegister(op); |
961 if (is_tagged) { | 957 if (is_tagged) { |
962 translation->StoreRegister(reg); | 958 translation->StoreRegister(reg); |
963 } else if (is_uint32) { | 959 } else if (is_uint32) { |
964 translation->StoreUint32Register(reg); | 960 translation->StoreUint32Register(reg); |
965 } else { | 961 } else { |
966 translation->StoreInt32Register(reg); | 962 translation->StoreInt32Register(reg); |
967 } | 963 } |
968 } else if (op->IsDoubleRegister()) { | 964 } else if (op->IsDoubleRegister()) { |
(...skipping 5312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6281 FixedArray::kHeaderSize - kPointerSize)); | 6277 FixedArray::kHeaderSize - kPointerSize)); |
6282 __ bind(&done); | 6278 __ bind(&done); |
6283 } | 6279 } |
6284 | 6280 |
6285 | 6281 |
6286 #undef __ | 6282 #undef __ |
6287 | 6283 |
6288 } } // namespace v8::internal | 6284 } } // namespace v8::internal |
6289 | 6285 |
6290 #endif // V8_TARGET_ARCH_IA32 | 6286 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |