| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1582 ExternalReference ExternalReference::debug_is_active_address( | 1582 ExternalReference ExternalReference::debug_is_active_address( |
| 1583 Isolate* isolate) { | 1583 Isolate* isolate) { |
| 1584 return ExternalReference(isolate->debug()->is_active_address()); | 1584 return ExternalReference(isolate->debug()->is_active_address()); |
| 1585 } | 1585 } |
| 1586 | 1586 |
| 1587 ExternalReference ExternalReference::debug_hook_on_function_call_address( | 1587 ExternalReference ExternalReference::debug_hook_on_function_call_address( |
| 1588 Isolate* isolate) { | 1588 Isolate* isolate) { |
| 1589 return ExternalReference(isolate->debug()->hook_on_function_call_address()); | 1589 return ExternalReference(isolate->debug()->hook_on_function_call_address()); |
| 1590 } | 1590 } |
| 1591 | 1591 |
| 1592 ExternalReference ExternalReference::debug_after_break_target_address( | |
| 1593 Isolate* isolate) { | |
| 1594 return ExternalReference(isolate->debug()->after_break_target_address()); | |
| 1595 } | |
| 1596 | |
| 1597 | |
| 1598 ExternalReference ExternalReference::runtime_function_table_address( | 1592 ExternalReference ExternalReference::runtime_function_table_address( |
| 1599 Isolate* isolate) { | 1593 Isolate* isolate) { |
| 1600 return ExternalReference( | 1594 return ExternalReference( |
| 1601 const_cast<Runtime::Function*>(Runtime::RuntimeFunctionTable(isolate))); | 1595 const_cast<Runtime::Function*>(Runtime::RuntimeFunctionTable(isolate))); |
| 1602 } | 1596 } |
| 1603 | 1597 |
| 1604 | 1598 |
| 1605 double power_helper(Isolate* isolate, double x, double y) { | 1599 double power_helper(Isolate* isolate, double x, double y) { |
| 1606 int y_int = static_cast<int>(y); | 1600 int y_int = static_cast<int>(y); |
| 1607 if (y == y_int) { | 1601 if (y == y_int) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 ExternalReference ExternalReference::debug_last_step_action_address( | 1662 ExternalReference ExternalReference::debug_last_step_action_address( |
| 1669 Isolate* isolate) { | 1663 Isolate* isolate) { |
| 1670 return ExternalReference(isolate->debug()->last_step_action_address()); | 1664 return ExternalReference(isolate->debug()->last_step_action_address()); |
| 1671 } | 1665 } |
| 1672 | 1666 |
| 1673 ExternalReference ExternalReference::debug_suspended_generator_address( | 1667 ExternalReference ExternalReference::debug_suspended_generator_address( |
| 1674 Isolate* isolate) { | 1668 Isolate* isolate) { |
| 1675 return ExternalReference(isolate->debug()->suspended_generator_address()); | 1669 return ExternalReference(isolate->debug()->suspended_generator_address()); |
| 1676 } | 1670 } |
| 1677 | 1671 |
| 1672 ExternalReference ExternalReference::debug_new_fp_address(Isolate* isolate) { |
| 1673 return ExternalReference(isolate->debug()->new_fp_address()); |
| 1674 } |
| 1675 |
| 1678 ExternalReference ExternalReference::fixed_typed_array_base_data_offset() { | 1676 ExternalReference ExternalReference::fixed_typed_array_base_data_offset() { |
| 1679 return ExternalReference(reinterpret_cast<void*>( | 1677 return ExternalReference(reinterpret_cast<void*>( |
| 1680 FixedTypedArrayBase::kDataOffset - kHeapObjectTag)); | 1678 FixedTypedArrayBase::kDataOffset - kHeapObjectTag)); |
| 1681 } | 1679 } |
| 1682 | 1680 |
| 1683 | 1681 |
| 1684 bool operator==(ExternalReference lhs, ExternalReference rhs) { | 1682 bool operator==(ExternalReference lhs, ExternalReference rhs) { |
| 1685 return lhs.address() == rhs.address(); | 1683 return lhs.address() == rhs.address(); |
| 1686 } | 1684 } |
| 1687 | 1685 |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1936 | 1934 |
| 1937 | 1935 |
| 1938 void Assembler::DataAlign(int m) { | 1936 void Assembler::DataAlign(int m) { |
| 1939 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1937 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
| 1940 while ((pc_offset() & (m - 1)) != 0) { | 1938 while ((pc_offset() & (m - 1)) != 0) { |
| 1941 db(0); | 1939 db(0); |
| 1942 } | 1940 } |
| 1943 } | 1941 } |
| 1944 } // namespace internal | 1942 } // namespace internal |
| 1945 } // namespace v8 | 1943 } // namespace v8 |
| OLD | NEW |