OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 mode_(mode), | 89 mode_(mode), |
90 flags_(flags), | 90 flags_(flags), |
91 args_in_registers_(false), | 91 args_in_registers_(false), |
92 args_reversed_(false), | 92 args_reversed_(false), |
93 static_operands_type_(operands_type), | 93 static_operands_type_(operands_type), |
94 runtime_operands_type_(BinaryOpIC::UNINIT_OR_SMI), | 94 runtime_operands_type_(BinaryOpIC::UNINIT_OR_SMI), |
95 name_(NULL) { | 95 name_(NULL) { |
96 if (static_operands_type_.IsSmi()) { | 96 if (static_operands_type_.IsSmi()) { |
97 mode_ = NO_OVERWRITE; | 97 mode_ = NO_OVERWRITE; |
98 } | 98 } |
99 use_sse3_ = Isolate::Current()->cpu_features()->IsSupported(SSE3); | 99 use_sse3_ = CpuFeatures::IsSupported(SSE3); |
100 ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); | 100 ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); |
101 } | 101 } |
102 | 102 |
103 GenericBinaryOpStub(int key, BinaryOpIC::TypeInfo runtime_operands_type) | 103 GenericBinaryOpStub(int key, BinaryOpIC::TypeInfo runtime_operands_type) |
104 : op_(OpBits::decode(key)), | 104 : op_(OpBits::decode(key)), |
105 mode_(ModeBits::decode(key)), | 105 mode_(ModeBits::decode(key)), |
106 flags_(FlagBits::decode(key)), | 106 flags_(FlagBits::decode(key)), |
107 args_in_registers_(ArgsInRegistersBits::decode(key)), | 107 args_in_registers_(ArgsInRegistersBits::decode(key)), |
108 args_reversed_(ArgsReversedBits::decode(key)), | 108 args_reversed_(ArgsReversedBits::decode(key)), |
109 use_sse3_(SSE3Bits::decode(key)), | 109 use_sse3_(SSE3Bits::decode(key)), |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 | 229 |
230 class TypeRecordingBinaryOpStub: public CodeStub { | 230 class TypeRecordingBinaryOpStub: public CodeStub { |
231 public: | 231 public: |
232 TypeRecordingBinaryOpStub(Token::Value op, OverwriteMode mode) | 232 TypeRecordingBinaryOpStub(Token::Value op, OverwriteMode mode) |
233 : op_(op), | 233 : op_(op), |
234 mode_(mode), | 234 mode_(mode), |
235 operands_type_(TRBinaryOpIC::UNINITIALIZED), | 235 operands_type_(TRBinaryOpIC::UNINITIALIZED), |
236 result_type_(TRBinaryOpIC::UNINITIALIZED), | 236 result_type_(TRBinaryOpIC::UNINITIALIZED), |
237 name_(NULL) { | 237 name_(NULL) { |
238 use_sse3_ = Isolate::Current()->cpu_features()->IsSupported(SSE3); | 238 use_sse3_ = CpuFeatures::IsSupported(SSE3); |
239 ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); | 239 ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); |
240 } | 240 } |
241 | 241 |
242 TypeRecordingBinaryOpStub( | 242 TypeRecordingBinaryOpStub( |
243 int key, | 243 int key, |
244 TRBinaryOpIC::TypeInfo operands_type, | 244 TRBinaryOpIC::TypeInfo operands_type, |
245 TRBinaryOpIC::TypeInfo result_type = TRBinaryOpIC::UNINITIALIZED) | 245 TRBinaryOpIC::TypeInfo result_type = TRBinaryOpIC::UNINITIALIZED) |
246 : op_(OpBits::decode(key)), | 246 : op_(OpBits::decode(key)), |
247 mode_(ModeBits::decode(key)), | 247 mode_(ModeBits::decode(key)), |
248 use_sse3_(SSE3Bits::decode(key)), | 248 use_sse3_(SSE3Bits::decode(key)), |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 #ifdef DEBUG | 486 #ifdef DEBUG |
487 void Print() { | 487 void Print() { |
488 PrintF("NumberToStringStub\n"); | 488 PrintF("NumberToStringStub\n"); |
489 } | 489 } |
490 #endif | 490 #endif |
491 }; | 491 }; |
492 | 492 |
493 } } // namespace v8::internal | 493 } } // namespace v8::internal |
494 | 494 |
495 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 495 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
OLD | NEW |