OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 2568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2579 | 2579 |
2580 // Check that the map of the global has not changed. | 2580 // Check that the map of the global has not changed. |
2581 __ cmp(FieldOperand(edx, HeapObject::kMapOffset), | 2581 __ cmp(FieldOperand(edx, HeapObject::kMapOffset), |
2582 Immediate(Handle<Map>(object->map()))); | 2582 Immediate(Handle<Map>(object->map()))); |
2583 __ j(not_equal, &miss, not_taken); | 2583 __ j(not_equal, &miss, not_taken); |
2584 | 2584 |
2585 | 2585 |
2586 // Compute the cell operand to use. | 2586 // Compute the cell operand to use. |
2587 Operand cell_operand = Operand::Cell(Handle<JSGlobalPropertyCell>(cell)); | 2587 Operand cell_operand = Operand::Cell(Handle<JSGlobalPropertyCell>(cell)); |
2588 if (Serializer::enabled()) { | 2588 if (Serializer::enabled()) { |
2589 __ mov(ecx, Immediate(Handle<JSGlobalPropertyCell>(cell))); | 2589 __ mov(ebx, Immediate(Handle<JSGlobalPropertyCell>(cell))); |
2590 cell_operand = FieldOperand(ecx, JSGlobalPropertyCell::kValueOffset); | 2590 cell_operand = FieldOperand(ebx, JSGlobalPropertyCell::kValueOffset); |
2591 } | 2591 } |
2592 | 2592 |
2593 // Check that the value in the cell is not the hole. If it is, this | 2593 // Check that the value in the cell is not the hole. If it is, this |
2594 // cell could have been deleted and reintroducing the global needs | 2594 // cell could have been deleted and reintroducing the global needs |
2595 // to update the property details in the property dictionary of the | 2595 // to update the property details in the property dictionary of the |
2596 // global object. We bail out to the runtime system to do that. | 2596 // global object. We bail out to the runtime system to do that. |
2597 __ cmp(cell_operand, Factory::the_hole_value()); | 2597 __ cmp(cell_operand, Factory::the_hole_value()); |
2598 __ j(equal, &miss); | 2598 __ j(equal, &miss); |
2599 | 2599 |
2600 // Store the value in the cell. | 2600 // Store the value in the cell. |
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3716 | 3716 |
3717 return GetCode(flags); | 3717 return GetCode(flags); |
3718 } | 3718 } |
3719 | 3719 |
3720 | 3720 |
3721 #undef __ | 3721 #undef __ |
3722 | 3722 |
3723 } } // namespace v8::internal | 3723 } } // namespace v8::internal |
3724 | 3724 |
3725 #endif // V8_TARGET_ARCH_IA32 | 3725 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |