OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 5364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5375 // Native code could change the specialized array. | 5375 // Native code could change the specialized array. |
5376 SetGVNFlag(kDependsOnCalls); | 5376 SetGVNFlag(kDependsOnCalls); |
5377 } | 5377 } |
5378 | 5378 |
5379 SetFlag(kUseGVN); | 5379 SetFlag(kUseGVN); |
5380 } | 5380 } |
5381 | 5381 |
5382 bool is_external() const { | 5382 bool is_external() const { |
5383 return IsExternalArrayElementsKind(elements_kind()); | 5383 return IsExternalArrayElementsKind(elements_kind()); |
5384 } | 5384 } |
5385 | |
5386 bool can_load_hole_nan() const { | |
5387 return elements_kind() == EXTERNAL_FLOAT_ELEMENTS | |
5388 || elements_kind() == EXTERNAL_DOUBLE_ELEMENTS; | |
Jakob Kummerow
2013/03/28 10:17:38
nit: 4 spaces indentation
| |
5389 } | |
5390 | |
5385 HValue* elements() { return OperandAt(0); } | 5391 HValue* elements() { return OperandAt(0); } |
5386 HValue* key() { return OperandAt(1); } | 5392 HValue* key() { return OperandAt(1); } |
5387 HValue* dependency() { | 5393 HValue* dependency() { |
5388 ASSERT(HasDependency()); | 5394 ASSERT(HasDependency()); |
5389 return OperandAt(2); | 5395 return OperandAt(2); |
5390 } | 5396 } |
5391 bool HasDependency() const { return OperandAt(0) != OperandAt(2); } | 5397 bool HasDependency() const { return OperandAt(0) != OperandAt(2); } |
5392 uint32_t index_offset() { return IndexOffsetField::decode(bit_field_); } | 5398 uint32_t index_offset() { return IndexOffsetField::decode(bit_field_); } |
5393 void SetIndexOffset(uint32_t index_offset) { | 5399 void SetIndexOffset(uint32_t index_offset) { |
5394 bit_field_ = IndexOffsetField::update(bit_field_, index_offset); | 5400 bit_field_ = IndexOffsetField::update(bit_field_, index_offset); |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6460 virtual bool IsDeletable() const { return true; } | 6466 virtual bool IsDeletable() const { return true; } |
6461 }; | 6467 }; |
6462 | 6468 |
6463 | 6469 |
6464 #undef DECLARE_INSTRUCTION | 6470 #undef DECLARE_INSTRUCTION |
6465 #undef DECLARE_CONCRETE_INSTRUCTION | 6471 #undef DECLARE_CONCRETE_INSTRUCTION |
6466 | 6472 |
6467 } } // namespace v8::internal | 6473 } } // namespace v8::internal |
6468 | 6474 |
6469 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6475 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |