| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 if (details.type() == CONSTANT) { | 524 if (details.type() == CONSTANT) { |
| 525 Handle<Object> constant(descriptors->GetValue(descriptor), masm->isolate()); | 525 Handle<Object> constant(descriptors->GetValue(descriptor), masm->isolate()); |
| 526 __ CmpObject(value_reg, constant); | 526 __ CmpObject(value_reg, constant); |
| 527 __ j(not_equal, miss_label); | 527 __ j(not_equal, miss_label); |
| 528 } else if (representation.IsSmi()) { | 528 } else if (representation.IsSmi()) { |
| 529 __ JumpIfNotSmi(value_reg, miss_label); | 529 __ JumpIfNotSmi(value_reg, miss_label); |
| 530 } else if (representation.IsHeapObject()) { | 530 } else if (representation.IsHeapObject()) { |
| 531 __ JumpIfSmi(value_reg, miss_label); | 531 __ JumpIfSmi(value_reg, miss_label); |
| 532 } else if (representation.IsDouble()) { | 532 } else if (representation.IsDouble()) { |
| 533 Label do_store, heap_number; | 533 Label do_store, heap_number; |
| 534 __ AllocateHeapNumber(storage_reg, scratch1, scratch2, slow); | 534 __ AllocateHeapNumber(storage_reg, scratch1, scratch2, slow, MUTABLE); |
| 535 | 535 |
| 536 __ JumpIfNotSmi(value_reg, &heap_number); | 536 __ JumpIfNotSmi(value_reg, &heap_number); |
| 537 __ SmiUntag(value_reg); | 537 __ SmiUntag(value_reg); |
| 538 if (CpuFeatures::IsSupported(SSE2)) { | 538 if (CpuFeatures::IsSupported(SSE2)) { |
| 539 CpuFeatureScope use_sse2(masm, SSE2); | 539 CpuFeatureScope use_sse2(masm, SSE2); |
| 540 __ Cvtsi2sd(xmm0, value_reg); | 540 __ Cvtsi2sd(xmm0, value_reg); |
| 541 } else { | 541 } else { |
| 542 __ push(value_reg); | 542 __ push(value_reg); |
| 543 __ fild_s(Operand(esp, 0)); | 543 __ fild_s(Operand(esp, 0)); |
| 544 __ pop(value_reg); | 544 __ pop(value_reg); |
| (...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1535 // ----------------------------------- | 1535 // ----------------------------------- |
| 1536 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1536 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1537 } | 1537 } |
| 1538 | 1538 |
| 1539 | 1539 |
| 1540 #undef __ | 1540 #undef __ |
| 1541 | 1541 |
| 1542 } } // namespace v8::internal | 1542 } } // namespace v8::internal |
| 1543 | 1543 |
| 1544 #endif // V8_TARGET_ARCH_IA32 | 1544 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |