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 2867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2878 __ mov(ecx, instr->name()); | 2878 __ mov(ecx, instr->name()); |
2879 RelocInfo::Mode mode = instr->for_typeof() ? RelocInfo::CODE_TARGET : | 2879 RelocInfo::Mode mode = instr->for_typeof() ? RelocInfo::CODE_TARGET : |
2880 RelocInfo::CODE_TARGET_CONTEXT; | 2880 RelocInfo::CODE_TARGET_CONTEXT; |
2881 Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); | 2881 Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); |
2882 CallCode(ic, mode, instr); | 2882 CallCode(ic, mode, instr); |
2883 } | 2883 } |
2884 | 2884 |
2885 | 2885 |
2886 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) { | 2886 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) { |
2887 Register value = ToRegister(instr->value()); | 2887 Register value = ToRegister(instr->value()); |
2888 Handle<JSGlobalPropertyCell> cell_handle = instr->hydrogen()->cell(); | 2888 Handle<PropertyCell> cell_handle = instr->hydrogen()->cell(); |
2889 | 2889 |
2890 // If the cell we are storing to contains the hole it could have | 2890 // If the cell we are storing to contains the hole it could have |
2891 // been deleted from the property dictionary. In that case, we need | 2891 // been deleted from the property dictionary. In that case, we need |
2892 // to update the property details in the property dictionary to mark | 2892 // to update the property details in the property dictionary to mark |
2893 // it as no longer deleted. We deoptimize in that case. | 2893 // it as no longer deleted. We deoptimize in that case. |
2894 if (instr->hydrogen()->RequiresHoleCheck()) { | 2894 if (instr->hydrogen()->RequiresHoleCheck()) { |
2895 __ cmp(Operand::ForCell(cell_handle), factory()->the_hole_value()); | 2895 __ cmp(Operand::ForCell(cell_handle), factory()->the_hole_value()); |
2896 DeoptimizeIf(equal, instr->environment()); | 2896 DeoptimizeIf(equal, instr->environment()); |
2897 } | 2897 } |
2898 | 2898 |
(...skipping 3605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6504 FixedArray::kHeaderSize - kPointerSize)); | 6504 FixedArray::kHeaderSize - kPointerSize)); |
6505 __ bind(&done); | 6505 __ bind(&done); |
6506 } | 6506 } |
6507 | 6507 |
6508 | 6508 |
6509 #undef __ | 6509 #undef __ |
6510 | 6510 |
6511 } } // namespace v8::internal | 6511 } } // namespace v8::internal |
6512 | 6512 |
6513 #endif // V8_TARGET_ARCH_IA32 | 6513 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |