| 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 3043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3054 Register receiver_reg, | 3054 Register receiver_reg, |
| 3055 Register scratch_reg, | 3055 Register scratch_reg, |
| 3056 Label* allocation_info_present) { | 3056 Label* allocation_info_present) { |
| 3057 Label no_info_available; | 3057 Label no_info_available; |
| 3058 ExternalReference new_space_start = | 3058 ExternalReference new_space_start = |
| 3059 ExternalReference::new_space_start(isolate()); | 3059 ExternalReference::new_space_start(isolate()); |
| 3060 ExternalReference new_space_allocation_top = | 3060 ExternalReference new_space_allocation_top = |
| 3061 ExternalReference::new_space_allocation_top_address(isolate()); | 3061 ExternalReference::new_space_allocation_top_address(isolate()); |
| 3062 | 3062 |
| 3063 lea(scratch_reg, Operand(receiver_reg, | 3063 lea(scratch_reg, Operand(receiver_reg, |
| 3064 JSArray::kSize + AllocationSiteInfo::kSize)); | 3064 JSArray::kSize + AllocationSiteInfo::kSize - kHeapObjectTag)); |
| 3065 cmp(scratch_reg, Immediate(new_space_start)); | 3065 cmp(scratch_reg, Immediate(new_space_start)); |
| 3066 j(less, &no_info_available); | 3066 j(less, &no_info_available); |
| 3067 cmp(scratch_reg, Operand::StaticVariable(new_space_allocation_top)); | 3067 cmp(scratch_reg, Operand::StaticVariable(new_space_allocation_top)); |
| 3068 j(greater_equal, &no_info_available); | 3068 j(greater, &no_info_available); |
| 3069 cmp(MemOperand(scratch_reg, 0), | 3069 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), |
| 3070 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); | 3070 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); |
| 3071 j(equal, allocation_info_present); | 3071 j(equal, allocation_info_present); |
| 3072 bind(&no_info_available); | 3072 bind(&no_info_available); |
| 3073 } | 3073 } |
| 3074 | 3074 |
| 3075 | 3075 |
| 3076 } } // namespace v8::internal | 3076 } } // namespace v8::internal |
| 3077 | 3077 |
| 3078 #endif // V8_TARGET_ARCH_IA32 | 3078 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |