| 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 "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 Register result1_; | 399 Register result1_; |
| 400 Register result2_; | 400 Register result2_; |
| 401 Register source_; | 401 Register source_; |
| 402 Register zeros_; | 402 Register zeros_; |
| 403 | 403 |
| 404 // Minor key encoding in 16 bits. | 404 // Minor key encoding in 16 bits. |
| 405 class ModeBits: public BitField<OverwriteMode, 0, 2> {}; | 405 class ModeBits: public BitField<OverwriteMode, 0, 2> {}; |
| 406 class OpBits: public BitField<Token::Value, 2, 14> {}; | 406 class OpBits: public BitField<Token::Value, 2, 14> {}; |
| 407 | 407 |
| 408 Major MajorKey() const { return ConvertToDouble; } | 408 Major MajorKey() const { return ConvertToDouble; } |
| 409 int MinorKey() const { | 409 uint32_t MinorKey() const { |
| 410 // Encode the parameters in a unique 16 bit value. | 410 // Encode the parameters in a unique 16 bit value. |
| 411 return result1_.code() + | 411 return result1_.code() + |
| 412 (result2_.code() << 4) + | 412 (result2_.code() << 4) + |
| 413 (source_.code() << 8) + | 413 (source_.code() << 8) + |
| 414 (zeros_.code() << 12); | 414 (zeros_.code() << 12); |
| 415 } | 415 } |
| 416 | 416 |
| 417 void Generate(MacroAssembler* masm); | 417 void Generate(MacroAssembler* masm); |
| 418 }; | 418 }; |
| 419 | 419 |
| (...skipping 4903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5323 MemOperand(fp, 6 * kPointerSize), | 5323 MemOperand(fp, 6 * kPointerSize), |
| 5324 NULL); | 5324 NULL); |
| 5325 } | 5325 } |
| 5326 | 5326 |
| 5327 | 5327 |
| 5328 #undef __ | 5328 #undef __ |
| 5329 | 5329 |
| 5330 } } // namespace v8::internal | 5330 } } // namespace v8::internal |
| 5331 | 5331 |
| 5332 #endif // V8_TARGET_ARCH_MIPS64 | 5332 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |