OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 TranscendentalCache::Type type_; | 51 TranscendentalCache::Type type_; |
52 ArgumentType argument_type_; | 52 ArgumentType argument_type_; |
53 void GenerateCallCFunction(MacroAssembler* masm, Register scratch); | 53 void GenerateCallCFunction(MacroAssembler* masm, Register scratch); |
54 | 54 |
55 Major MajorKey() { return TranscendentalCache; } | 55 Major MajorKey() { return TranscendentalCache; } |
56 int MinorKey() { return type_ | argument_type_; } | 56 int MinorKey() { return type_ | argument_type_; } |
57 Runtime::FunctionId RuntimeFunction(); | 57 Runtime::FunctionId RuntimeFunction(); |
58 }; | 58 }; |
59 | 59 |
60 | 60 |
61 class ToBooleanStub: public CodeStub { | |
62 public: | |
63 explicit ToBooleanStub(Register tos) : tos_(tos) { } | |
64 | |
65 void Generate(MacroAssembler* masm); | |
66 | |
67 private: | |
68 Register tos_; | |
69 Major MajorKey() { return ToBoolean; } | |
70 int MinorKey() { return tos_.code(); } | |
71 }; | |
72 | |
73 | |
74 class UnaryOpStub: public CodeStub { | 61 class UnaryOpStub: public CodeStub { |
75 public: | 62 public: |
76 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode) | 63 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode) |
77 : op_(op), | 64 : op_(op), |
78 mode_(mode), | 65 mode_(mode), |
79 operand_type_(UnaryOpIC::UNINITIALIZED), | 66 operand_type_(UnaryOpIC::UNINITIALIZED), |
80 name_(NULL) { | 67 name_(NULL) { |
81 } | 68 } |
82 | 69 |
83 UnaryOpStub( | 70 UnaryOpStub( |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 | 650 |
664 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 651 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
665 | 652 |
666 LookupMode mode_; | 653 LookupMode mode_; |
667 }; | 654 }; |
668 | 655 |
669 | 656 |
670 } } // namespace v8::internal | 657 } } // namespace v8::internal |
671 | 658 |
672 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 659 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
OLD | NEW |