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_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 4291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4302 | 4302 |
4303 // Get the prototype from the initial map. | 4303 // Get the prototype from the initial map. |
4304 ld(result, FieldMemOperand(result, Map::kPrototypeOffset)); | 4304 ld(result, FieldMemOperand(result, Map::kPrototypeOffset)); |
4305 | 4305 |
4306 if (miss_on_bound_function) { | 4306 if (miss_on_bound_function) { |
4307 jmp(&done); | 4307 jmp(&done); |
4308 | 4308 |
4309 // Non-instance prototype: Fetch prototype from constructor field | 4309 // Non-instance prototype: Fetch prototype from constructor field |
4310 // in initial map. | 4310 // in initial map. |
4311 bind(&non_instance); | 4311 bind(&non_instance); |
4312 GetMapConstructor(result, result, scratch, at); | 4312 GetMapConstructor(result, result, scratch, scratch); |
4313 } | 4313 } |
4314 | 4314 |
4315 // All done. | 4315 // All done. |
4316 bind(&done); | 4316 bind(&done); |
4317 } | 4317 } |
4318 | 4318 |
4319 | 4319 |
4320 void MacroAssembler::GetObjectType(Register object, | 4320 void MacroAssembler::GetObjectType(Register object, |
4321 Register map, | 4321 Register map, |
4322 Register type_reg) { | 4322 Register type_reg) { |
(...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6191 } | 6191 } |
6192 if (mag.shift > 0) sra(result, result, mag.shift); | 6192 if (mag.shift > 0) sra(result, result, mag.shift); |
6193 srl(at, dividend, 31); | 6193 srl(at, dividend, 31); |
6194 Addu(result, result, Operand(at)); | 6194 Addu(result, result, Operand(at)); |
6195 } | 6195 } |
6196 | 6196 |
6197 | 6197 |
6198 } } // namespace v8::internal | 6198 } } // namespace v8::internal |
6199 | 6199 |
6200 #endif // V8_TARGET_ARCH_MIPS64 | 6200 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |