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 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 4369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4380 | 4380 |
4381 // Get the prototype from the initial map. | 4381 // Get the prototype from the initial map. |
4382 lw(result, FieldMemOperand(result, Map::kPrototypeOffset)); | 4382 lw(result, FieldMemOperand(result, Map::kPrototypeOffset)); |
4383 | 4383 |
4384 if (miss_on_bound_function) { | 4384 if (miss_on_bound_function) { |
4385 jmp(&done); | 4385 jmp(&done); |
4386 | 4386 |
4387 // Non-instance prototype: Fetch prototype from constructor field | 4387 // Non-instance prototype: Fetch prototype from constructor field |
4388 // in initial map. | 4388 // in initial map. |
4389 bind(&non_instance); | 4389 bind(&non_instance); |
4390 GetMapConstructor(result, result, scratch, at); | 4390 GetMapConstructor(result, result, scratch, scratch); |
4391 } | 4391 } |
4392 | 4392 |
4393 // All done. | 4393 // All done. |
4394 bind(&done); | 4394 bind(&done); |
4395 } | 4395 } |
4396 | 4396 |
4397 | 4397 |
4398 void MacroAssembler::GetObjectType(Register object, | 4398 void MacroAssembler::GetObjectType(Register object, |
4399 Register map, | 4399 Register map, |
4400 Register type_reg) { | 4400 Register type_reg) { |
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6171 } | 6171 } |
6172 if (mag.shift > 0) sra(result, result, mag.shift); | 6172 if (mag.shift > 0) sra(result, result, mag.shift); |
6173 srl(at, dividend, 31); | 6173 srl(at, dividend, 31); |
6174 Addu(result, result, Operand(at)); | 6174 Addu(result, result, Operand(at)); |
6175 } | 6175 } |
6176 | 6176 |
6177 | 6177 |
6178 } } // namespace v8::internal | 6178 } } // namespace v8::internal |
6179 | 6179 |
6180 #endif // V8_TARGET_ARCH_MIPS | 6180 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |