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

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

Issue 8344082: Replace boolean indications of strict mode by an enum value. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some fixes and adapted the preparser. Created 9 years, 2 months 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 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 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 1633
1634 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") 1634 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
1635 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) 1635 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
1636 1636
1637 virtual void PrintDataTo(StringStream* stream); 1637 virtual void PrintDataTo(StringStream* stream);
1638 1638
1639 LOperand* context() { return inputs_[0]; } 1639 LOperand* context() { return inputs_[0]; }
1640 LOperand* object() { return inputs_[1]; } 1640 LOperand* object() { return inputs_[1]; }
1641 LOperand* value() { return inputs_[2]; } 1641 LOperand* value() { return inputs_[2]; }
1642 Handle<Object> name() const { return hydrogen()->name(); } 1642 Handle<Object> name() const { return hydrogen()->name(); }
1643 bool strict_mode() { return hydrogen()->strict_mode(); } 1643 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
1644 bool strict_mode() { return strict_mode_flag() == kStrictMode; }
1644 }; 1645 };
1645 1646
1646 1647
1647 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { 1648 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> {
1648 public: 1649 public:
1649 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) { 1650 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) {
1650 inputs_[0] = obj; 1651 inputs_[0] = obj;
1651 inputs_[1] = key; 1652 inputs_[1] = key;
1652 inputs_[2] = val; 1653 inputs_[2] = val;
1653 } 1654 }
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
2321 2322
2322 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2323 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2323 }; 2324 };
2324 2325
2325 #undef DECLARE_HYDROGEN_ACCESSOR 2326 #undef DECLARE_HYDROGEN_ACCESSOR
2326 #undef DECLARE_CONCRETE_INSTRUCTION 2327 #undef DECLARE_CONCRETE_INSTRUCTION
2327 2328
2328 } } // namespace v8::internal 2329 } } // namespace v8::internal
2329 2330
2330 #endif // V8_IA32_LITHIUM_IA32_H_ 2331 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« src/compiler.cc ('K') | « src/ia32/lithium-codegen-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698