OLD | NEW |
1 | 1 |
2 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
3 // All Rights Reserved. | 3 // All Rights Reserved. |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // - Redistributions of source code must retain the above copyright notice, | 9 // - Redistributions of source code must retain the above copyright notice, |
10 // this list of conditions and the following disclaimer. | 10 // this list of conditions and the following disclaimer. |
(...skipping 21 matching lines...) Expand all Loading... |
32 // The original source code covered by the above license above has been | 32 // The original source code covered by the above license above has been |
33 // modified significantly by Google Inc. | 33 // modified significantly by Google Inc. |
34 // Copyright 2012 the V8 project authors. All rights reserved. | 34 // Copyright 2012 the V8 project authors. All rights reserved. |
35 | 35 |
36 | 36 |
37 #ifndef V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 37 #ifndef V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
38 #define V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 38 #define V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
39 | 39 |
40 #include "src/mips/assembler-mips.h" | 40 #include "src/mips/assembler-mips.h" |
41 | 41 |
42 #include "src/cpu.h" | 42 #include "src/assembler.h" |
43 #include "src/debug.h" | 43 #include "src/debug.h" |
44 | 44 |
45 | 45 |
46 namespace v8 { | 46 namespace v8 { |
47 namespace internal { | 47 namespace internal { |
48 | 48 |
49 | 49 |
50 bool CpuFeatures::SupportsCrankshaft() { return IsSupported(FPU); } | 50 bool CpuFeatures::SupportsCrankshaft() { return IsSupported(FPU); } |
51 | 51 |
52 | 52 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 uint32_t scope2 = reinterpret_cast<uint32_t>(pc_) & ~kImm28Mask; | 118 uint32_t scope2 = reinterpret_cast<uint32_t>(pc_) & ~kImm28Mask; |
119 | 119 |
120 if (scope1 != scope2) { | 120 if (scope1 != scope2) { |
121 Assembler::JumpLabelToJumpRegister(pc_); | 121 Assembler::JumpLabelToJumpRegister(pc_); |
122 } | 122 } |
123 } | 123 } |
124 if (IsInternalReference(rmode_)) { | 124 if (IsInternalReference(rmode_)) { |
125 // Absolute code pointer inside code object moves with the code object. | 125 // Absolute code pointer inside code object moves with the code object. |
126 byte* p = reinterpret_cast<byte*>(pc_); | 126 byte* p = reinterpret_cast<byte*>(pc_); |
127 int count = Assembler::RelocateInternalReference(p, delta); | 127 int count = Assembler::RelocateInternalReference(p, delta); |
128 CPU::FlushICache(p, count * sizeof(uint32_t)); | 128 CpuFeatures::FlushICache(p, count * sizeof(uint32_t)); |
129 } | 129 } |
130 } | 130 } |
131 | 131 |
132 | 132 |
133 Address RelocInfo::target_address() { | 133 Address RelocInfo::target_address() { |
134 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); | 134 ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); |
135 return Assembler::target_address_at(pc_, host_); | 135 return Assembler::target_address_at(pc_, host_); |
136 } | 136 } |
137 | 137 |
138 | 138 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 } | 437 } |
438 *reinterpret_cast<Instr*>(pc_) = x; | 438 *reinterpret_cast<Instr*>(pc_) = x; |
439 pc_ += kInstrSize; | 439 pc_ += kInstrSize; |
440 CheckTrampolinePoolQuick(); | 440 CheckTrampolinePoolQuick(); |
441 } | 441 } |
442 | 442 |
443 | 443 |
444 } } // namespace v8::internal | 444 } } // namespace v8::internal |
445 | 445 |
446 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 446 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
OLD | NEW |