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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 void GenerateGenericStubSub(MacroAssembler* masm); | 143 void GenerateGenericStubSub(MacroAssembler* masm); |
144 void GenerateGenericStubBitNot(MacroAssembler* masm); | 144 void GenerateGenericStubBitNot(MacroAssembler* masm); |
145 void GenerateGenericCodeFallback(MacroAssembler* masm); | 145 void GenerateGenericCodeFallback(MacroAssembler* masm); |
146 | 146 |
147 virtual int GetCodeKind() { return Code::UNARY_OP_IC; } | 147 virtual int GetCodeKind() { return Code::UNARY_OP_IC; } |
148 | 148 |
149 virtual InlineCacheState GetICState() { | 149 virtual InlineCacheState GetICState() { |
150 return UnaryOpIC::ToState(operand_type_); | 150 return UnaryOpIC::ToState(operand_type_); |
151 } | 151 } |
152 | 152 |
153 virtual void FinishCode(Code* code) { | 153 virtual void FinishCode(Handle<Code> code) { |
154 code->set_unary_op_type(operand_type_); | 154 code->set_unary_op_type(operand_type_); |
155 } | 155 } |
156 }; | 156 }; |
157 | 157 |
158 | 158 |
159 class BinaryOpStub: public CodeStub { | 159 class BinaryOpStub: public CodeStub { |
160 public: | 160 public: |
161 BinaryOpStub(Token::Value op, OverwriteMode mode) | 161 BinaryOpStub(Token::Value op, OverwriteMode mode) |
162 : op_(op), | 162 : op_(op), |
163 mode_(mode), | 163 mode_(mode), |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 void GenerateRegisterArgsPush(MacroAssembler* masm); | 229 void GenerateRegisterArgsPush(MacroAssembler* masm); |
230 void GenerateTypeTransition(MacroAssembler* masm); | 230 void GenerateTypeTransition(MacroAssembler* masm); |
231 void GenerateTypeTransitionWithSavedArgs(MacroAssembler* masm); | 231 void GenerateTypeTransitionWithSavedArgs(MacroAssembler* masm); |
232 | 232 |
233 virtual int GetCodeKind() { return Code::BINARY_OP_IC; } | 233 virtual int GetCodeKind() { return Code::BINARY_OP_IC; } |
234 | 234 |
235 virtual InlineCacheState GetICState() { | 235 virtual InlineCacheState GetICState() { |
236 return BinaryOpIC::ToState(operands_type_); | 236 return BinaryOpIC::ToState(operands_type_); |
237 } | 237 } |
238 | 238 |
239 virtual void FinishCode(Code* code) { | 239 virtual void FinishCode(Handle<Code> code) { |
240 code->set_binary_op_type(operands_type_); | 240 code->set_binary_op_type(operands_type_); |
241 code->set_binary_op_result_type(result_type_); | 241 code->set_binary_op_result_type(result_type_); |
242 } | 242 } |
243 | 243 |
244 friend class CodeGenerator; | 244 friend class CodeGenerator; |
245 }; | 245 }; |
246 | 246 |
247 | 247 |
248 class StringHelper : public AllStatic { | 248 class StringHelper : public AllStatic { |
249 public: | 249 public: |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 RememberedSetAction remembered_set_action_; | 709 RememberedSetAction remembered_set_action_; |
710 SaveFPRegsMode save_fp_regs_mode_; | 710 SaveFPRegsMode save_fp_regs_mode_; |
711 Label slow_; | 711 Label slow_; |
712 RegisterAllocation regs_; | 712 RegisterAllocation regs_; |
713 }; | 713 }; |
714 | 714 |
715 | 715 |
716 } } // namespace v8::internal | 716 } } // namespace v8::internal |
717 | 717 |
718 #endif // V8_X64_CODE_STUBS_X64_H_ | 718 #endif // V8_X64_CODE_STUBS_X64_H_ |
OLD | NEW |