OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 <limits.h> // For LONG_MIN, LONG_MAX. | 5 #include <limits.h> // For LONG_MIN, LONG_MAX. |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
(...skipping 5334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5345 nop(); // Pad the empty space. | 5345 nop(); // Pad the empty space. |
5346 } else { | 5346 } else { |
5347 PushStandardFrame(a1); | 5347 PushStandardFrame(a1); |
5348 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 5348 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
5349 } | 5349 } |
5350 } | 5350 } |
5351 | 5351 |
5352 | 5352 |
5353 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 5353 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
5354 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 5354 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
5355 lw(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); | 5355 lw(vector, FieldMemOperand(vector, JSFunction::kFeedbackVectorOffset)); |
5356 lw(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | |
5357 } | 5356 } |
5358 | 5357 |
5359 | 5358 |
5360 void MacroAssembler::EnterFrame(StackFrame::Type type, | 5359 void MacroAssembler::EnterFrame(StackFrame::Type type, |
5361 bool load_constant_pool_pointer_reg) { | 5360 bool load_constant_pool_pointer_reg) { |
5362 // Out-of-line constant pool not implemented on mips. | 5361 // Out-of-line constant pool not implemented on mips. |
5363 UNREACHABLE(); | 5362 UNREACHABLE(); |
5364 } | 5363 } |
5365 | 5364 |
5366 | 5365 |
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6535 if (mag.shift > 0) sra(result, result, mag.shift); | 6534 if (mag.shift > 0) sra(result, result, mag.shift); |
6536 srl(at, dividend, 31); | 6535 srl(at, dividend, 31); |
6537 Addu(result, result, Operand(at)); | 6536 Addu(result, result, Operand(at)); |
6538 } | 6537 } |
6539 | 6538 |
6540 | 6539 |
6541 } // namespace internal | 6540 } // namespace internal |
6542 } // namespace v8 | 6541 } // namespace v8 |
6543 | 6542 |
6544 #endif // V8_TARGET_ARCH_MIPS | 6543 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |