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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1357 } | 1357 } |
1358 | 1358 |
1359 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1359 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
1360 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1360 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
1361 | 1361 |
1362 bool is_external() const { | 1362 bool is_external() const { |
1363 return hydrogen()->is_external(); | 1363 return hydrogen()->is_external(); |
1364 } | 1364 } |
1365 LOperand* elements() { return inputs_[0]; } | 1365 LOperand* elements() { return inputs_[0]; } |
1366 LOperand* key() { return inputs_[1]; } | 1366 LOperand* key() { return inputs_[1]; } |
| 1367 virtual void PrintDataTo(StringStream* stream); |
1367 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1368 uint32_t additional_index() const { return hydrogen()->index_offset(); } |
1368 ElementsKind elements_kind() const { | 1369 ElementsKind elements_kind() const { |
1369 return hydrogen()->elements_kind(); | 1370 return hydrogen()->elements_kind(); |
1370 } | 1371 } |
1371 }; | 1372 }; |
1372 | 1373 |
1373 | 1374 |
1374 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { | 1375 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { |
1375 public: | 1376 public: |
1376 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { | 1377 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { |
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2485 | 2486 |
2486 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2487 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2487 }; | 2488 }; |
2488 | 2489 |
2489 #undef DECLARE_HYDROGEN_ACCESSOR | 2490 #undef DECLARE_HYDROGEN_ACCESSOR |
2490 #undef DECLARE_CONCRETE_INSTRUCTION | 2491 #undef DECLARE_CONCRETE_INSTRUCTION |
2491 | 2492 |
2492 } } // namespace v8::int | 2493 } } // namespace v8::int |
2493 | 2494 |
2494 #endif // V8_X64_LITHIUM_X64_H_ | 2495 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |