| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 "src/code-stub-assembler.h" | 5 #include "src/code-stub-assembler.h" |
| 6 #include "src/code-factory.h" | 6 #include "src/code-factory.h" |
| 7 #include "src/frames-inl.h" | 7 #include "src/frames-inl.h" |
| 8 #include "src/frames.h" | 8 #include "src/frames.h" |
| 9 #include "src/ic/stub-cache.h" | 9 #include "src/ic/stub-cache.h" |
| 10 | 10 |
| (...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1763 Goto(&if_done); | 1763 Goto(&if_done); |
| 1764 } | 1764 } |
| 1765 | 1765 |
| 1766 Bind(&if_done); | 1766 Bind(&if_done); |
| 1767 return var_result.value(); | 1767 return var_result.value(); |
| 1768 } | 1768 } |
| 1769 | 1769 |
| 1770 Node* CodeStubAssembler::BitFieldDecode(Node* word32, uint32_t shift, | 1770 Node* CodeStubAssembler::BitFieldDecode(Node* word32, uint32_t shift, |
| 1771 uint32_t mask) { | 1771 uint32_t mask) { |
| 1772 return Word32Shr(Word32And(word32, Int32Constant(mask)), | 1772 return Word32Shr(Word32And(word32, Int32Constant(mask)), |
| 1773 Int32Constant(shift)); | 1773 static_cast<int>(shift)); |
| 1774 } | 1774 } |
| 1775 | 1775 |
| 1776 void CodeStubAssembler::SetCounter(StatsCounter* counter, int value) { | 1776 void CodeStubAssembler::SetCounter(StatsCounter* counter, int value) { |
| 1777 if (FLAG_native_code_counters && counter->Enabled()) { | 1777 if (FLAG_native_code_counters && counter->Enabled()) { |
| 1778 Node* counter_address = ExternalConstant(ExternalReference(counter)); | 1778 Node* counter_address = ExternalConstant(ExternalReference(counter)); |
| 1779 StoreNoWriteBarrier(MachineRepresentation::kWord32, counter_address, | 1779 StoreNoWriteBarrier(MachineRepresentation::kWord32, counter_address, |
| 1780 Int32Constant(value)); | 1780 Int32Constant(value)); |
| 1781 } | 1781 } |
| 1782 } | 1782 } |
| 1783 | 1783 |
| (...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3132 } | 3132 } |
| 3133 Bind(&miss); | 3133 Bind(&miss); |
| 3134 { | 3134 { |
| 3135 TailCallRuntime(Runtime::kLoadGlobalIC_Miss, p->context, p->slot, | 3135 TailCallRuntime(Runtime::kLoadGlobalIC_Miss, p->context, p->slot, |
| 3136 p->vector); | 3136 p->vector); |
| 3137 } | 3137 } |
| 3138 } | 3138 } |
| 3139 | 3139 |
| 3140 } // namespace internal | 3140 } // namespace internal |
| 3141 } // namespace v8 | 3141 } // namespace v8 |
| OLD | NEW |