Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Side by Side Diff: src/arm/lithium-arm.h

Issue 57123002: Reland 21774: Generate KeyedLoadGeneric with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Turn off by default Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 public: 436 public:
437 explicit LDummyUse(LOperand* value) { 437 explicit LDummyUse(LOperand* value) {
438 inputs_[0] = value; 438 inputs_[0] = value;
439 } 439 }
440 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") 440 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use")
441 }; 441 };
442 442
443 443
444 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> { 444 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> {
445 public: 445 public:
446 virtual bool IsControl() const V8_OVERRIDE { return true; }
446 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize") 447 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize")
447 DECLARE_HYDROGEN_ACCESSOR(Deoptimize) 448 DECLARE_HYDROGEN_ACCESSOR(Deoptimize)
448 }; 449 };
449 450
450 451
451 class LLabel V8_FINAL : public LGap { 452 class LLabel V8_FINAL : public LGap {
452 public: 453 public:
453 explicit LLabel(HBasicBlock* block) 454 explicit LLabel(HBasicBlock* block)
454 : LGap(block), replacement_(NULL) { } 455 : LGap(block), replacement_(NULL) { }
455 456
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 return hydrogen()->elements_kind(); 1632 return hydrogen()->elements_kind();
1632 } 1633 }
1633 bool is_external() const { 1634 bool is_external() const {
1634 return hydrogen()->is_external(); 1635 return hydrogen()->is_external();
1635 } 1636 }
1636 1637
1637 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1638 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1638 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1639 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1639 1640
1640 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1641 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1641 uint32_t additional_index() const { return hydrogen()->index_offset(); } 1642 uint32_t base_offset() const { return hydrogen()->base_offset(); }
1642 }; 1643 };
1643 1644
1644 1645
1645 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1646 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> {
1646 public: 1647 public:
1647 LLoadKeyedGeneric(LOperand* context, LOperand* object, LOperand* key) { 1648 LLoadKeyedGeneric(LOperand* context, LOperand* object, LOperand* key) {
1648 inputs_[0] = context; 1649 inputs_[0] = context;
1649 inputs_[1] = object; 1650 inputs_[1] = object;
1650 inputs_[2] = key; 1651 inputs_[2] = key;
1651 } 1652 }
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2304 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2304 2305
2305 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2306 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
2306 bool NeedsCanonicalization() { 2307 bool NeedsCanonicalization() {
2307 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || 2308 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() ||
2308 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) { 2309 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) {
2309 return false; 2310 return false;
2310 } 2311 }
2311 return hydrogen()->NeedsCanonicalization(); 2312 return hydrogen()->NeedsCanonicalization();
2312 } 2313 }
2313 uint32_t additional_index() const { return hydrogen()->index_offset(); } 2314 uint32_t base_offset() const { return hydrogen()->base_offset(); }
2314 }; 2315 };
2315 2316
2316 2317
2317 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> { 2318 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> {
2318 public: 2319 public:
2319 LStoreKeyedGeneric(LOperand* context, 2320 LStoreKeyedGeneric(LOperand* context,
2320 LOperand* obj, 2321 LOperand* obj,
2321 LOperand* key, 2322 LOperand* key,
2322 LOperand* value) { 2323 LOperand* value) {
2323 inputs_[0] = context; 2324 inputs_[0] = context;
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
2913 2914
2914 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2915 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2915 }; 2916 };
2916 2917
2917 #undef DECLARE_HYDROGEN_ACCESSOR 2918 #undef DECLARE_HYDROGEN_ACCESSOR
2918 #undef DECLARE_CONCRETE_INSTRUCTION 2919 #undef DECLARE_CONCRETE_INSTRUCTION
2919 2920
2920 } } // namespace v8::internal 2921 } } // namespace v8::internal
2921 2922
2922 #endif // V8_ARM_LITHIUM_ARM_H_ 2923 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | src/code-stubs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698