OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" // NOLINT | 5 #include "vm/globals.h" // NOLINT |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/longjump.h" | 9 #include "vm/longjump.h" |
10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 void Assembler::LeaveStubFrame() { | 853 void Assembler::LeaveStubFrame() { |
854 LeaveDartFrame(); | 854 LeaveDartFrame(); |
855 } | 855 } |
856 | 856 |
857 | 857 |
858 void Assembler::LeaveStubFrameAndReturn(Register ra) { | 858 void Assembler::LeaveStubFrameAndReturn(Register ra) { |
859 LeaveDartFrameAndReturn(ra); | 859 LeaveDartFrameAndReturn(ra); |
860 } | 860 } |
861 | 861 |
862 | 862 |
863 void Assembler::NoMonomorphicCheckedEntry() { | |
864 buffer_.Reset(); | |
865 break_(0); | |
866 break_(0); | |
867 break_(0); | |
868 ASSERT(CodeSize() == Instructions::kCheckedEntryOffset); | |
869 } | |
870 | |
871 | |
872 // T0 receiver, S5 guarded cid as Smi | 863 // T0 receiver, S5 guarded cid as Smi |
873 void Assembler::MonomorphicCheckedEntry() { | 864 void Assembler::MonomorphicCheckedEntry() { |
| 865 ASSERT(has_single_entry_point_); |
| 866 has_single_entry_point_ = false; |
874 bool saved_use_far_branches = use_far_branches(); | 867 bool saved_use_far_branches = use_far_branches(); |
875 set_use_far_branches(false); | 868 set_use_far_branches(false); |
876 | 869 |
877 Label have_cid, miss; | 870 Label have_cid, miss; |
878 Bind(&miss); | 871 Bind(&miss); |
879 lw(T9, Address(THR, Thread::monomorphic_miss_entry_offset())); | 872 lw(T9, Address(THR, Thread::monomorphic_miss_entry_offset())); |
880 jr(T9); | 873 jr(T9); |
881 | 874 |
882 Comment("MonomorphicCheckedEntry"); | 875 Comment("MonomorphicCheckedEntry"); |
883 ASSERT(CodeSize() == Instructions::kCheckedEntryOffset); | 876 ASSERT(CodeSize() == Instructions::kCheckedEntryOffset); |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1297 Label stop; | 1290 Label stop; |
1298 b(&stop); | 1291 b(&stop); |
1299 Emit(reinterpret_cast<int32_t>(message)); | 1292 Emit(reinterpret_cast<int32_t>(message)); |
1300 Bind(&stop); | 1293 Bind(&stop); |
1301 break_(Instr::kStopMessageCode); | 1294 break_(Instr::kStopMessageCode); |
1302 } | 1295 } |
1303 | 1296 |
1304 } // namespace dart | 1297 } // namespace dart |
1305 | 1298 |
1306 #endif // defined TARGET_ARCH_MIPS | 1299 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |