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

Side by Side Diff: src/arm/lithium-arm.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 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 } 1575 }
1576 1576
1577 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") 1577 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
1578 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) 1578 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
1579 1579
1580 virtual void PrintDataTo(StringStream* stream); 1580 virtual void PrintDataTo(StringStream* stream);
1581 1581
1582 LOperand* object() { return inputs_[0]; } 1582 LOperand* object() { return inputs_[0]; }
1583 LOperand* value() { return inputs_[1]; } 1583 LOperand* value() { return inputs_[1]; }
1584 Handle<Object> name() const { return hydrogen()->name(); } 1584 Handle<Object> name() const { return hydrogen()->name(); }
1585 bool strict_mode() { return hydrogen()->strict_mode(); } 1585 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
1586 bool strict_mode() { return strict_mode_flag() == kStrictMode; }
1586 }; 1587 };
1587 1588
1588 1589
1589 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { 1590 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> {
1590 public: 1591 public:
1591 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) { 1592 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) {
1592 inputs_[0] = obj; 1593 inputs_[0] = obj;
1593 inputs_[1] = key; 1594 inputs_[1] = key;
1594 inputs_[2] = val; 1595 inputs_[2] = val;
1595 } 1596 }
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 2214
2214 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2215 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2215 }; 2216 };
2216 2217
2217 #undef DECLARE_HYDROGEN_ACCESSOR 2218 #undef DECLARE_HYDROGEN_ACCESSOR
2218 #undef DECLARE_CONCRETE_INSTRUCTION 2219 #undef DECLARE_CONCRETE_INSTRUCTION
2219 2220
2220 } } // namespace v8::internal 2221 } } // namespace v8::internal
2221 2222
2222 #endif // V8_ARM_LITHIUM_ARM_H_ 2223 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.h » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698