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_ARM | 7 #if V8_TARGET_ARCH_ARM |
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 private: | 419 private: |
420 Register result1_; | 420 Register result1_; |
421 Register result2_; | 421 Register result2_; |
422 Register source_; | 422 Register source_; |
423 Register zeros_; | 423 Register zeros_; |
424 | 424 |
425 // Minor key encoding in 16 bits. | 425 // Minor key encoding in 16 bits. |
426 class ModeBits: public BitField<OverwriteMode, 0, 2> {}; | 426 class ModeBits: public BitField<OverwriteMode, 0, 2> {}; |
427 class OpBits: public BitField<Token::Value, 2, 14> {}; | 427 class OpBits: public BitField<Token::Value, 2, 14> {}; |
428 | 428 |
429 Major MajorKey() { return ConvertToDouble; } | 429 Major MajorKey() const { return ConvertToDouble; } |
430 int MinorKey() { | 430 int MinorKey() const { |
431 // Encode the parameters in a unique 16 bit value. | 431 // Encode the parameters in a unique 16 bit value. |
432 return result1_.code() + | 432 return result1_.code() + |
433 (result2_.code() << 4) + | 433 (result2_.code() << 4) + |
434 (source_.code() << 8) + | 434 (source_.code() << 8) + |
435 (zeros_.code() << 12); | 435 (zeros_.code() << 12); |
436 } | 436 } |
437 | 437 |
438 void Generate(MacroAssembler* masm); | 438 void Generate(MacroAssembler* masm); |
439 }; | 439 }; |
440 | 440 |
(...skipping 4631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5072 MemOperand(fp, 6 * kPointerSize), | 5072 MemOperand(fp, 6 * kPointerSize), |
5073 NULL); | 5073 NULL); |
5074 } | 5074 } |
5075 | 5075 |
5076 | 5076 |
5077 #undef __ | 5077 #undef __ |
5078 | 5078 |
5079 } } // namespace v8::internal | 5079 } } // namespace v8::internal |
5080 | 5080 |
5081 #endif // V8_TARGET_ARCH_ARM | 5081 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |