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 3507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3518 ExternalReference new_space_allocation_top = | 3518 ExternalReference new_space_allocation_top = |
3519 ExternalReference::new_space_allocation_top_address(isolate()); | 3519 ExternalReference::new_space_allocation_top_address(isolate()); |
3520 | 3520 |
3521 lea(scratch_reg, Operand(receiver_reg, | 3521 lea(scratch_reg, Operand(receiver_reg, |
3522 JSArray::kSize + AllocationMemento::kSize - kHeapObjectTag)); | 3522 JSArray::kSize + AllocationMemento::kSize - kHeapObjectTag)); |
3523 cmp(scratch_reg, Immediate(new_space_start)); | 3523 cmp(scratch_reg, Immediate(new_space_start)); |
3524 j(less, &no_memento_available); | 3524 j(less, &no_memento_available); |
3525 cmp(scratch_reg, Operand::StaticVariable(new_space_allocation_top)); | 3525 cmp(scratch_reg, Operand::StaticVariable(new_space_allocation_top)); |
3526 j(greater, &no_memento_available); | 3526 j(greater, &no_memento_available); |
3527 cmp(MemOperand(scratch_reg, -AllocationMemento::kSize), | 3527 cmp(MemOperand(scratch_reg, -AllocationMemento::kSize), |
3528 Immediate(Handle<Map>(isolate()->heap()->allocation_memento_map()))); | 3528 Immediate(isolate()->factory()->allocation_memento_map())); |
3529 bind(&no_memento_available); | 3529 bind(&no_memento_available); |
3530 } | 3530 } |
3531 | 3531 |
3532 | 3532 |
3533 } } // namespace v8::internal | 3533 } } // namespace v8::internal |
3534 | 3534 |
3535 #endif // V8_TARGET_ARCH_IA32 | 3535 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |