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

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

Issue 8417035: Introduce extended mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed more comments. Created 9 years, 1 month 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
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 inputs_[0] = global_object; 1218 inputs_[0] = global_object;
1219 inputs_[1] = value; 1219 inputs_[1] = value;
1220 } 1220 }
1221 1221
1222 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic") 1222 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
1223 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric) 1223 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
1224 1224
1225 LOperand* global_object() { return InputAt(0); } 1225 LOperand* global_object() { return InputAt(0); }
1226 Handle<Object> name() const { return hydrogen()->name(); } 1226 Handle<Object> name() const { return hydrogen()->name(); }
1227 LOperand* value() { return InputAt(1); } 1227 LOperand* value() { return InputAt(1); }
1228 bool strict_mode() { return hydrogen()->strict_mode(); } 1228 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
1229 }; 1229 };
1230 1230
1231 1231
1232 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { 1232 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
1233 public: 1233 public:
1234 explicit LLoadContextSlot(LOperand* context) { 1234 explicit LLoadContextSlot(LOperand* context) {
1235 inputs_[0] = context; 1235 inputs_[0] = context;
1236 } 1236 }
1237 1237
1238 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1238 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 1578
1579 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") 1579 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
1580 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) 1580 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
1581 1581
1582 virtual void PrintDataTo(StringStream* stream); 1582 virtual void PrintDataTo(StringStream* stream);
1583 1583
1584 LOperand* object() { return inputs_[0]; } 1584 LOperand* object() { return inputs_[0]; }
1585 LOperand* value() { return inputs_[1]; } 1585 LOperand* value() { return inputs_[1]; }
1586 Handle<Object> name() const { return hydrogen()->name(); } 1586 Handle<Object> name() const { return hydrogen()->name(); }
1587 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); } 1587 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
1588 bool strict_mode() { return strict_mode_flag() == kStrictMode; }
1589 }; 1588 };
1590 1589
1591 1590
1592 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { 1591 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> {
1593 public: 1592 public:
1594 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) { 1593 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) {
1595 inputs_[0] = obj; 1594 inputs_[0] = obj;
1596 inputs_[1] = key; 1595 inputs_[1] = key;
1597 inputs_[2] = val; 1596 inputs_[2] = val;
1598 } 1597 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 } 1639 }
1641 1640
1642 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") 1641 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
1643 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) 1642 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
1644 1643
1645 virtual void PrintDataTo(StringStream* stream); 1644 virtual void PrintDataTo(StringStream* stream);
1646 1645
1647 LOperand* object() { return inputs_[0]; } 1646 LOperand* object() { return inputs_[0]; }
1648 LOperand* key() { return inputs_[1]; } 1647 LOperand* key() { return inputs_[1]; }
1649 LOperand* value() { return inputs_[2]; } 1648 LOperand* value() { return inputs_[2]; }
1650 bool strict_mode() { return hydrogen()->strict_mode(); } 1649 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
1651 }; 1650 };
1652 1651
1653 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> { 1652 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> {
1654 public: 1653 public:
1655 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer, 1654 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer,
1656 LOperand* key, 1655 LOperand* key,
1657 LOperand* val) { 1656 LOperand* val) {
1658 inputs_[0] = external_pointer; 1657 inputs_[0] = external_pointer;
1659 inputs_[1] = key; 1658 inputs_[1] = key;
1660 inputs_[2] = val; 1659 inputs_[2] = val;
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2216 2215
2217 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2216 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2218 }; 2217 };
2219 2218
2220 #undef DECLARE_HYDROGEN_ACCESSOR 2219 #undef DECLARE_HYDROGEN_ACCESSOR
2221 #undef DECLARE_CONCRETE_INSTRUCTION 2220 #undef DECLARE_CONCRETE_INSTRUCTION
2222 2221
2223 } } // namespace v8::internal 2222 } } // namespace v8::internal
2224 2223
2225 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2224 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698