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 3145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3156 mov(ecx, FieldOperand(ecx, JSObject::kElementsOffset)); | 3156 mov(ecx, FieldOperand(ecx, JSObject::kElementsOffset)); |
3157 cmp(ecx, isolate()->factory()->empty_fixed_array()); | 3157 cmp(ecx, isolate()->factory()->empty_fixed_array()); |
3158 j(not_equal, call_runtime); | 3158 j(not_equal, call_runtime); |
3159 | 3159 |
3160 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); | 3160 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); |
3161 cmp(ecx, isolate()->factory()->null_value()); | 3161 cmp(ecx, isolate()->factory()->null_value()); |
3162 j(not_equal, &next); | 3162 j(not_equal, &next); |
3163 } | 3163 } |
3164 | 3164 |
3165 | 3165 |
3166 void MacroAssembler::TestJSArrayForAllocationSiteInfo( | 3166 void MacroAssembler::TestJSArrayForAllocationMemento( |
3167 Register receiver_reg, | 3167 Register receiver_reg, |
3168 Register scratch_reg) { | 3168 Register scratch_reg) { |
3169 Label no_info_available; | 3169 Label no_memento_available; |
3170 | 3170 |
3171 ExternalReference new_space_start = | 3171 ExternalReference new_space_start = |
3172 ExternalReference::new_space_start(isolate()); | 3172 ExternalReference::new_space_start(isolate()); |
3173 ExternalReference new_space_allocation_top = | 3173 ExternalReference new_space_allocation_top = |
3174 ExternalReference::new_space_allocation_top_address(isolate()); | 3174 ExternalReference::new_space_allocation_top_address(isolate()); |
3175 | 3175 |
3176 lea(scratch_reg, Operand(receiver_reg, | 3176 lea(scratch_reg, Operand(receiver_reg, |
3177 JSArray::kSize + AllocationSiteInfo::kSize - kHeapObjectTag)); | 3177 JSArray::kSize + AllocationMemento::kSize - kHeapObjectTag)); |
3178 cmp(scratch_reg, Immediate(new_space_start)); | 3178 cmp(scratch_reg, Immediate(new_space_start)); |
3179 j(less, &no_info_available); | 3179 j(less, &no_memento_available); |
3180 cmp(scratch_reg, Operand::StaticVariable(new_space_allocation_top)); | 3180 cmp(scratch_reg, Operand::StaticVariable(new_space_allocation_top)); |
3181 j(greater, &no_info_available); | 3181 j(greater, &no_memento_available); |
3182 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), | 3182 cmp(MemOperand(scratch_reg, -AllocationMemento::kSize), |
3183 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); | 3183 Immediate(Handle<Map>(isolate()->heap()->allocation_memento_map()))); |
3184 bind(&no_info_available); | 3184 bind(&no_memento_available); |
3185 } | 3185 } |
3186 | 3186 |
3187 | 3187 |
3188 } } // namespace v8::internal | 3188 } } // namespace v8::internal |
3189 | 3189 |
3190 #endif // V8_TARGET_ARCH_IA32 | 3190 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |