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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 const int kNextOffset = 0; | 690 const int kNextOffset = 0; |
691 const int kLimitOffset = Offset( | 691 const int kLimitOffset = Offset( |
692 ExternalReference::handle_scope_limit_address(isolate()), | 692 ExternalReference::handle_scope_limit_address(isolate()), |
693 next_address); | 693 next_address); |
694 const int kLevelOffset = Offset( | 694 const int kLevelOffset = Offset( |
695 ExternalReference::handle_scope_level_address(isolate()), | 695 ExternalReference::handle_scope_level_address(isolate()), |
696 next_address); | 696 next_address); |
697 ExternalReference scheduled_exception_address = | 697 ExternalReference scheduled_exception_address = |
698 ExternalReference::scheduled_exception_address(isolate()); | 698 ExternalReference::scheduled_exception_address(isolate()); |
699 | 699 |
700 ASSERT(rdx.is(function_address)); | 700 ASSERT(rdx.is(function_address) || r8.is(function_address)); |
701 // Allocate HandleScope in callee-save registers. | 701 // Allocate HandleScope in callee-save registers. |
702 Register prev_next_address_reg = r14; | 702 Register prev_next_address_reg = r14; |
703 Register prev_limit_reg = rbx; | 703 Register prev_limit_reg = rbx; |
704 Register base_reg = r15; | 704 Register base_reg = r15; |
705 Move(base_reg, next_address); | 705 Move(base_reg, next_address); |
706 movp(prev_next_address_reg, Operand(base_reg, kNextOffset)); | 706 movp(prev_next_address_reg, Operand(base_reg, kNextOffset)); |
707 movp(prev_limit_reg, Operand(base_reg, kLimitOffset)); | 707 movp(prev_limit_reg, Operand(base_reg, kLimitOffset)); |
708 addl(Operand(base_reg, kLevelOffset), Immediate(1)); | 708 addl(Operand(base_reg, kLevelOffset), Immediate(1)); |
709 | 709 |
710 if (FLAG_log_timer_events) { | 710 if (FLAG_log_timer_events) { |
(...skipping 4282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4993 j(equal, found); | 4993 j(equal, found); |
4994 movp(current, FieldOperand(current, Map::kPrototypeOffset)); | 4994 movp(current, FieldOperand(current, Map::kPrototypeOffset)); |
4995 CompareRoot(current, Heap::kNullValueRootIndex); | 4995 CompareRoot(current, Heap::kNullValueRootIndex); |
4996 j(not_equal, &loop_again); | 4996 j(not_equal, &loop_again); |
4997 } | 4997 } |
4998 | 4998 |
4999 | 4999 |
5000 } } // namespace v8::internal | 5000 } } // namespace v8::internal |
5001 | 5001 |
5002 #endif // V8_TARGET_ARCH_X64 | 5002 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |