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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 void GenerateGenericStubSub(MacroAssembler* masm); | 129 void GenerateGenericStubSub(MacroAssembler* masm); |
130 void GenerateGenericStubBitNot(MacroAssembler* masm); | 130 void GenerateGenericStubBitNot(MacroAssembler* masm); |
131 void GenerateGenericCodeFallback(MacroAssembler* masm); | 131 void GenerateGenericCodeFallback(MacroAssembler* masm); |
132 | 132 |
133 virtual int GetCodeKind() { return Code::UNARY_OP_IC; } | 133 virtual int GetCodeKind() { return Code::UNARY_OP_IC; } |
134 | 134 |
135 virtual InlineCacheState GetICState() { | 135 virtual InlineCacheState GetICState() { |
136 return UnaryOpIC::ToState(operand_type_); | 136 return UnaryOpIC::ToState(operand_type_); |
137 } | 137 } |
138 | 138 |
139 virtual void FinishCode(Code* code) { | 139 virtual void FinishCode(Handle<Code> code) { |
140 code->set_unary_op_type(operand_type_); | 140 code->set_unary_op_type(operand_type_); |
141 } | 141 } |
142 }; | 142 }; |
143 | 143 |
144 | 144 |
145 class BinaryOpStub: public CodeStub { | 145 class BinaryOpStub: public CodeStub { |
146 public: | 146 public: |
147 BinaryOpStub(Token::Value op, OverwriteMode mode) | 147 BinaryOpStub(Token::Value op, OverwriteMode mode) |
148 : op_(op), | 148 : op_(op), |
149 mode_(mode), | 149 mode_(mode), |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 void GenerateRegisterArgsPush(MacroAssembler* masm); | 228 void GenerateRegisterArgsPush(MacroAssembler* masm); |
229 void GenerateTypeTransition(MacroAssembler* masm); | 229 void GenerateTypeTransition(MacroAssembler* masm); |
230 void GenerateTypeTransitionWithSavedArgs(MacroAssembler* masm); | 230 void GenerateTypeTransitionWithSavedArgs(MacroAssembler* masm); |
231 | 231 |
232 virtual int GetCodeKind() { return Code::BINARY_OP_IC; } | 232 virtual int GetCodeKind() { return Code::BINARY_OP_IC; } |
233 | 233 |
234 virtual InlineCacheState GetICState() { | 234 virtual InlineCacheState GetICState() { |
235 return BinaryOpIC::ToState(operands_type_); | 235 return BinaryOpIC::ToState(operands_type_); |
236 } | 236 } |
237 | 237 |
238 virtual void FinishCode(Code* code) { | 238 virtual void FinishCode(Handle<Code> code) { |
239 code->set_binary_op_type(operands_type_); | 239 code->set_binary_op_type(operands_type_); |
240 code->set_binary_op_result_type(result_type_); | 240 code->set_binary_op_result_type(result_type_); |
241 } | 241 } |
242 | 242 |
243 friend class CodeGenerator; | 243 friend class CodeGenerator; |
244 }; | 244 }; |
245 | 245 |
246 | 246 |
247 class StringHelper : public AllStatic { | 247 class StringHelper : public AllStatic { |
248 public: | 248 public: |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 | 894 |
895 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 895 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
896 | 896 |
897 LookupMode mode_; | 897 LookupMode mode_; |
898 }; | 898 }; |
899 | 899 |
900 | 900 |
901 } } // namespace v8::internal | 901 } } // namespace v8::internal |
902 | 902 |
903 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 903 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
OLD | NEW |