OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <assert.h> // For assert | 5 #include <assert.h> // For assert |
6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
7 | 7 |
8 #if V8_TARGET_ARCH_PPC | 8 #if V8_TARGET_ARCH_PPC |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 } | 746 } |
747 } | 747 } |
748 if (FLAG_enable_embedded_constant_pool) { | 748 if (FLAG_enable_embedded_constant_pool) { |
749 // ip contains prologue address | 749 // ip contains prologue address |
750 LoadConstantPoolPointerRegister(ip, -prologue_offset); | 750 LoadConstantPoolPointerRegister(ip, -prologue_offset); |
751 set_constant_pool_available(true); | 751 set_constant_pool_available(true); |
752 } | 752 } |
753 } | 753 } |
754 | 754 |
755 | 755 |
| 756 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
| 757 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 758 LoadP(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
| 759 LoadP(vector, |
| 760 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
| 761 } |
| 762 |
| 763 |
756 void MacroAssembler::EnterFrame(StackFrame::Type type, | 764 void MacroAssembler::EnterFrame(StackFrame::Type type, |
757 bool load_constant_pool_pointer_reg) { | 765 bool load_constant_pool_pointer_reg) { |
758 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { | 766 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { |
759 PushFixedFrame(); | 767 PushFixedFrame(); |
760 // This path should not rely on ip containing code entry. | 768 // This path should not rely on ip containing code entry. |
761 LoadConstantPoolPointerRegister(); | 769 LoadConstantPoolPointerRegister(); |
762 LoadSmiLiteral(ip, Smi::FromInt(type)); | 770 LoadSmiLiteral(ip, Smi::FromInt(type)); |
763 push(ip); | 771 push(ip); |
764 } else { | 772 } else { |
765 LoadSmiLiteral(ip, Smi::FromInt(type)); | 773 LoadSmiLiteral(ip, Smi::FromInt(type)); |
(...skipping 3608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4374 } | 4382 } |
4375 if (mag.shift > 0) srawi(result, result, mag.shift); | 4383 if (mag.shift > 0) srawi(result, result, mag.shift); |
4376 ExtractBit(r0, dividend, 31); | 4384 ExtractBit(r0, dividend, 31); |
4377 add(result, result, r0); | 4385 add(result, result, r0); |
4378 } | 4386 } |
4379 | 4387 |
4380 } // namespace internal | 4388 } // namespace internal |
4381 } // namespace v8 | 4389 } // namespace v8 |
4382 | 4390 |
4383 #endif // V8_TARGET_ARCH_PPC | 4391 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |