| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 mode_(mode), | 104 mode_(mode), |
| 105 flags_(flags), | 105 flags_(flags), |
| 106 args_in_registers_(false), | 106 args_in_registers_(false), |
| 107 args_reversed_(false), | 107 args_reversed_(false), |
| 108 static_operands_type_(operands_type), | 108 static_operands_type_(operands_type), |
| 109 runtime_operands_type_(BinaryOpIC::UNINIT_OR_SMI), | 109 runtime_operands_type_(BinaryOpIC::UNINIT_OR_SMI), |
| 110 name_(NULL) { | 110 name_(NULL) { |
| 111 if (static_operands_type_.IsSmi()) { | 111 if (static_operands_type_.IsSmi()) { |
| 112 mode_ = NO_OVERWRITE; | 112 mode_ = NO_OVERWRITE; |
| 113 } | 113 } |
| 114 use_sse3_ = CpuFeatures::IsSupported(SSE3); | 114 use_sse3_ = Isolate::Current()->cpu_features()->IsSupported(SSE3); |
| 115 ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); | 115 ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); |
| 116 } | 116 } |
| 117 | 117 |
| 118 GenericBinaryOpStub(int key, BinaryOpIC::TypeInfo runtime_operands_type) | 118 GenericBinaryOpStub(int key, BinaryOpIC::TypeInfo runtime_operands_type) |
| 119 : op_(OpBits::decode(key)), | 119 : op_(OpBits::decode(key)), |
| 120 mode_(ModeBits::decode(key)), | 120 mode_(ModeBits::decode(key)), |
| 121 flags_(FlagBits::decode(key)), | 121 flags_(FlagBits::decode(key)), |
| 122 args_in_registers_(ArgsInRegistersBits::decode(key)), | 122 args_in_registers_(ArgsInRegistersBits::decode(key)), |
| 123 args_reversed_(ArgsReversedBits::decode(key)), | 123 args_reversed_(ArgsReversedBits::decode(key)), |
| 124 use_sse3_(SSE3Bits::decode(key)), | 124 use_sse3_(SSE3Bits::decode(key)), |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 | 244 |
| 245 class TypeRecordingBinaryOpStub: public CodeStub { | 245 class TypeRecordingBinaryOpStub: public CodeStub { |
| 246 public: | 246 public: |
| 247 TypeRecordingBinaryOpStub(Token::Value op, OverwriteMode mode) | 247 TypeRecordingBinaryOpStub(Token::Value op, OverwriteMode mode) |
| 248 : op_(op), | 248 : op_(op), |
| 249 mode_(mode), | 249 mode_(mode), |
| 250 operands_type_(TRBinaryOpIC::UNINITIALIZED), | 250 operands_type_(TRBinaryOpIC::UNINITIALIZED), |
| 251 result_type_(TRBinaryOpIC::UNINITIALIZED), | 251 result_type_(TRBinaryOpIC::UNINITIALIZED), |
| 252 name_(NULL) { | 252 name_(NULL) { |
| 253 use_sse3_ = CpuFeatures::IsSupported(SSE3); | 253 use_sse3_ = Isolate::Current()->cpu_features()->IsSupported(SSE3); |
| 254 ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); | 254 ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); |
| 255 } | 255 } |
| 256 | 256 |
| 257 TypeRecordingBinaryOpStub( | 257 TypeRecordingBinaryOpStub( |
| 258 int key, | 258 int key, |
| 259 TRBinaryOpIC::TypeInfo operands_type, | 259 TRBinaryOpIC::TypeInfo operands_type, |
| 260 TRBinaryOpIC::TypeInfo result_type = TRBinaryOpIC::UNINITIALIZED) | 260 TRBinaryOpIC::TypeInfo result_type = TRBinaryOpIC::UNINITIALIZED) |
| 261 : op_(OpBits::decode(key)), | 261 : op_(OpBits::decode(key)), |
| 262 mode_(ModeBits::decode(key)), | 262 mode_(ModeBits::decode(key)), |
| 263 use_sse3_(SSE3Bits::decode(key)), | 263 use_sse3_(SSE3Bits::decode(key)), |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 Register scratch1, | 601 Register scratch1, |
| 602 bool load_elements_from_receiver, | 602 bool load_elements_from_receiver, |
| 603 Label* key_not_smi, | 603 Label* key_not_smi, |
| 604 Label* value_not_smi, | 604 Label* value_not_smi, |
| 605 Label* not_pixel_array, | 605 Label* not_pixel_array, |
| 606 Label* out_of_range); | 606 Label* out_of_range); |
| 607 | 607 |
| 608 } } // namespace v8::internal | 608 } } // namespace v8::internal |
| 609 | 609 |
| 610 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 610 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
| OLD | NEW |