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 3293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3304 return array_type_ == cast_other->array_type(); | 3304 return array_type_ == cast_other->array_type(); |
3305 } | 3305 } |
3306 | 3306 |
3307 private: | 3307 private: |
3308 ExternalArrayType array_type_; | 3308 ExternalArrayType array_type_; |
3309 }; | 3309 }; |
3310 | 3310 |
3311 | 3311 |
3312 class HLoadKeyedGeneric: public HTemplateInstruction<3> { | 3312 class HLoadKeyedGeneric: public HTemplateInstruction<3> { |
3313 public: | 3313 public: |
3314 HLoadKeyedGeneric(HContext* context, HValue* obj, HValue* key) { | 3314 HLoadKeyedGeneric(HValue* context, HValue* obj, HValue* key) { |
3315 set_representation(Representation::Tagged()); | 3315 set_representation(Representation::Tagged()); |
3316 SetOperandAt(0, obj); | 3316 SetOperandAt(0, obj); |
3317 SetOperandAt(1, key); | 3317 SetOperandAt(1, key); |
3318 SetOperandAt(2, context); | 3318 SetOperandAt(2, context); |
3319 SetAllSideEffects(); | 3319 SetAllSideEffects(); |
3320 } | 3320 } |
3321 | 3321 |
3322 HValue* object() { return OperandAt(0); } | 3322 HValue* object() { return OperandAt(0); } |
3323 HValue* key() { return OperandAt(1); } | 3323 HValue* key() { return OperandAt(1); } |
3324 HValue* context() { return OperandAt(2); } | 3324 HValue* context() { return OperandAt(2); } |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3828 | 3828 |
3829 DECLARE_CONCRETE_INSTRUCTION(In) | 3829 DECLARE_CONCRETE_INSTRUCTION(In) |
3830 }; | 3830 }; |
3831 | 3831 |
3832 #undef DECLARE_INSTRUCTION | 3832 #undef DECLARE_INSTRUCTION |
3833 #undef DECLARE_CONCRETE_INSTRUCTION | 3833 #undef DECLARE_CONCRETE_INSTRUCTION |
3834 | 3834 |
3835 } } // namespace v8::internal | 3835 } } // namespace v8::internal |
3836 | 3836 |
3837 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 3837 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |