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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 void GenerateGenericStubSub(MacroAssembler* masm); | 140 void GenerateGenericStubSub(MacroAssembler* masm); |
141 void GenerateGenericStubBitNot(MacroAssembler* masm); | 141 void GenerateGenericStubBitNot(MacroAssembler* masm); |
142 void GenerateGenericCodeFallback(MacroAssembler* masm); | 142 void GenerateGenericCodeFallback(MacroAssembler* masm); |
143 | 143 |
144 virtual int GetCodeKind() { return Code::UNARY_OP_IC; } | 144 virtual int GetCodeKind() { return Code::UNARY_OP_IC; } |
145 | 145 |
146 virtual InlineCacheState GetICState() { | 146 virtual InlineCacheState GetICState() { |
147 return UnaryOpIC::ToState(operand_type_); | 147 return UnaryOpIC::ToState(operand_type_); |
148 } | 148 } |
149 | 149 |
150 virtual void FinishCode(Code* code) { | 150 virtual void FinishCode(Handle<Code> code) { |
151 code->set_unary_op_type(operand_type_); | 151 code->set_unary_op_type(operand_type_); |
152 } | 152 } |
153 }; | 153 }; |
154 | 154 |
155 | 155 |
156 class BinaryOpStub: public CodeStub { | 156 class BinaryOpStub: public CodeStub { |
157 public: | 157 public: |
158 BinaryOpStub(Token::Value op, OverwriteMode mode) | 158 BinaryOpStub(Token::Value op, OverwriteMode mode) |
159 : op_(op), | 159 : op_(op), |
160 mode_(mode), | 160 mode_(mode), |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 void GenerateRegisterArgsPush(MacroAssembler* masm); | 227 void GenerateRegisterArgsPush(MacroAssembler* masm); |
228 void GenerateTypeTransition(MacroAssembler* masm); | 228 void GenerateTypeTransition(MacroAssembler* masm); |
229 void GenerateTypeTransitionWithSavedArgs(MacroAssembler* masm); | 229 void GenerateTypeTransitionWithSavedArgs(MacroAssembler* masm); |
230 | 230 |
231 virtual int GetCodeKind() { return Code::BINARY_OP_IC; } | 231 virtual int GetCodeKind() { return Code::BINARY_OP_IC; } |
232 | 232 |
233 virtual InlineCacheState GetICState() { | 233 virtual InlineCacheState GetICState() { |
234 return BinaryOpIC::ToState(operands_type_); | 234 return BinaryOpIC::ToState(operands_type_); |
235 } | 235 } |
236 | 236 |
237 virtual void FinishCode(Code* code) { | 237 virtual void FinishCode(Handle<Code> code) { |
238 code->set_binary_op_type(operands_type_); | 238 code->set_binary_op_type(operands_type_); |
239 code->set_binary_op_result_type(result_type_); | 239 code->set_binary_op_result_type(result_type_); |
240 } | 240 } |
241 | 241 |
242 friend class CodeGenerator; | 242 friend class CodeGenerator; |
243 }; | 243 }; |
244 | 244 |
245 | 245 |
246 class StringHelper : public AllStatic { | 246 class StringHelper : public AllStatic { |
247 public: | 247 public: |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 Register address_; | 726 Register address_; |
727 RememberedSetAction remembered_set_action_; | 727 RememberedSetAction remembered_set_action_; |
728 SaveFPRegsMode save_fp_regs_mode_; | 728 SaveFPRegsMode save_fp_regs_mode_; |
729 RegisterAllocation regs_; | 729 RegisterAllocation regs_; |
730 }; | 730 }; |
731 | 731 |
732 | 732 |
733 } } // namespace v8::internal | 733 } } // namespace v8::internal |
734 | 734 |
735 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 735 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
OLD | NEW |