| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 subu(rd, rs, rt); | 454 subu(rd, rs, rt); |
| 455 xor_(ro, rd, rs); | 455 xor_(ro, rd, rs); |
| 456 xor_(TMP, rs, rt); | 456 xor_(TMP, rs, rt); |
| 457 and_(ro, TMP, ro); | 457 and_(ro, TMP, ro); |
| 458 } | 458 } |
| 459 } | 459 } |
| 460 | 460 |
| 461 | 461 |
| 462 void Assembler::CheckCodePointer() { | 462 void Assembler::CheckCodePointer() { |
| 463 #ifdef DEBUG | 463 #ifdef DEBUG |
| 464 Comment("CheckCodePointer"); |
| 464 Label cid_ok, instructions_ok; | 465 Label cid_ok, instructions_ok; |
| 465 Push(CMPRES1); | 466 Push(CMPRES1); |
| 466 Push(CMPRES2); | 467 Push(CMPRES2); |
| 467 LoadClassId(CMPRES1, CODE_REG); | 468 LoadClassId(CMPRES1, CODE_REG); |
| 468 BranchEqual(CMPRES1, Immediate(kCodeCid), &cid_ok); | 469 BranchEqual(CMPRES1, Immediate(kCodeCid), &cid_ok); |
| 469 break_(0); | 470 break_(0); |
| 470 Bind(&cid_ok); | 471 Bind(&cid_ok); |
| 471 GetNextPC(CMPRES1, TMP); | 472 GetNextPC(CMPRES1, TMP); |
| 472 const intptr_t entry_offset = CodeSize() - Instr::kInstrSize + | 473 const intptr_t entry_offset = CodeSize() - Instr::kInstrSize + |
| 473 Instructions::HeaderSize() - kHeapObjectTag; | 474 Instructions::HeaderSize() - kHeapObjectTag; |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 Label stop; | 1332 Label stop; |
| 1332 b(&stop); | 1333 b(&stop); |
| 1333 Emit(reinterpret_cast<int32_t>(message)); | 1334 Emit(reinterpret_cast<int32_t>(message)); |
| 1334 Bind(&stop); | 1335 Bind(&stop); |
| 1335 break_(Instr::kStopMessageCode); | 1336 break_(Instr::kStopMessageCode); |
| 1336 } | 1337 } |
| 1337 | 1338 |
| 1338 } // namespace dart | 1339 } // namespace dart |
| 1339 | 1340 |
| 1340 #endif // defined TARGET_ARCH_MIPS | 1341 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |