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

Side by Side Diff: src/x64/lithium-x64.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 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 } 1565 }
1566 1566
1567 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") 1567 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
1568 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) 1568 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
1569 1569
1570 virtual void PrintDataTo(StringStream* stream); 1570 virtual void PrintDataTo(StringStream* stream);
1571 1571
1572 LOperand* object() { return inputs_[0]; } 1572 LOperand* object() { return inputs_[0]; }
1573 LOperand* value() { return inputs_[1]; } 1573 LOperand* value() { return inputs_[1]; }
1574 Handle<Object> name() const { return hydrogen()->name(); } 1574 Handle<Object> name() const { return hydrogen()->name(); }
1575 bool strict_mode() { return hydrogen()->strict_mode(); } 1575 StrictModeFlag strict_mode_flag() { return hydrogen()->strict_mode_flag(); }
1576 bool strict_mode() { return strict_mode_flag() == kStrictMode; }
1576 }; 1577 };
1577 1578
1578 1579
1579 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { 1580 class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> {
1580 public: 1581 public:
1581 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) { 1582 LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) {
1582 inputs_[0] = obj; 1583 inputs_[0] = obj;
1583 inputs_[1] = key; 1584 inputs_[1] = key;
1584 inputs_[2] = val; 1585 inputs_[2] = val;
1585 } 1586 }
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
2202 2203
2203 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2204 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2204 }; 2205 };
2205 2206
2206 #undef DECLARE_HYDROGEN_ACCESSOR 2207 #undef DECLARE_HYDROGEN_ACCESSOR
2207 #undef DECLARE_CONCRETE_INSTRUCTION 2208 #undef DECLARE_CONCRETE_INSTRUCTION
2208 2209
2209 } } // namespace v8::int 2210 } } // namespace v8::int
2210 2211
2211 #endif // V8_X64_LITHIUM_X64_H_ 2212 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698