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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 private: | 411 private: |
412 Register result1_; | 412 Register result1_; |
413 Register result2_; | 413 Register result2_; |
414 Register source_; | 414 Register source_; |
415 Register zeros_; | 415 Register zeros_; |
416 | 416 |
417 // Minor key encoding in 16 bits. | 417 // Minor key encoding in 16 bits. |
418 class ModeBits: public BitField<OverwriteMode, 0, 2> {}; | 418 class ModeBits: public BitField<OverwriteMode, 0, 2> {}; |
419 class OpBits: public BitField<Token::Value, 2, 14> {}; | 419 class OpBits: public BitField<Token::Value, 2, 14> {}; |
420 | 420 |
421 Major MajorKey() { return ConvertToDouble; } | 421 Major MajorKey() const { return ConvertToDouble; } |
422 int MinorKey() { | 422 int MinorKey() const { |
423 // Encode the parameters in a unique 16 bit value. | 423 // Encode the parameters in a unique 16 bit value. |
424 return result1_.code() + | 424 return result1_.code() + |
425 (result2_.code() << 4) + | 425 (result2_.code() << 4) + |
426 (source_.code() << 8) + | 426 (source_.code() << 8) + |
427 (zeros_.code() << 12); | 427 (zeros_.code() << 12); |
428 } | 428 } |
429 | 429 |
430 void Generate(MacroAssembler* masm); | 430 void Generate(MacroAssembler* masm); |
431 }; | 431 }; |
432 | 432 |
(...skipping 4866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5299 MemOperand(fp, 6 * kPointerSize), | 5299 MemOperand(fp, 6 * kPointerSize), |
5300 NULL); | 5300 NULL); |
5301 } | 5301 } |
5302 | 5302 |
5303 | 5303 |
5304 #undef __ | 5304 #undef __ |
5305 | 5305 |
5306 } } // namespace v8::internal | 5306 } } // namespace v8::internal |
5307 | 5307 |
5308 #endif // V8_TARGET_ARCH_MIPS | 5308 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |