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

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

Issue 6240012: Optimize calls to object literal properties that are initialized with a funct... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: added x64 and arm code. Created 9 years, 10 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 V(StoreGlobal) \ 252 V(StoreGlobal) \
253 V(StoreKeyedFastElement) \ 253 V(StoreKeyedFastElement) \
254 V(StoreKeyedGeneric) \ 254 V(StoreKeyedGeneric) \
255 V(StoreNamedField) \ 255 V(StoreNamedField) \
256 V(StoreNamedGeneric) \ 256 V(StoreNamedGeneric) \
257 V(SubI) \ 257 V(SubI) \
258 V(StringCharCodeAt) \ 258 V(StringCharCodeAt) \
259 V(StringLength) \ 259 V(StringLength) \
260 V(TaggedToI) \ 260 V(TaggedToI) \
261 V(Throw) \ 261 V(Throw) \
262 V(ToFastProperties) \
262 V(Typeof) \ 263 V(Typeof) \
263 V(TypeofIs) \ 264 V(TypeofIs) \
264 V(TypeofIsAndBranch) \ 265 V(TypeofIsAndBranch) \
265 V(UnaryMathOperation) \ 266 V(UnaryMathOperation) \
266 V(UnknownOSRValue) \ 267 V(UnknownOSRValue) \
267 V(ValueOf) 268 V(ValueOf)
268 269
269 270
270 #define DECLARE_INSTRUCTION(type) \ 271 #define DECLARE_INSTRUCTION(type) \
271 virtual bool Is##type() const { return true; } \ 272 virtual bool Is##type() const { return true; } \
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 1695
1695 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> { 1696 class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> {
1696 public: 1697 public:
1697 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") 1698 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal")
1698 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) 1699 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral)
1699 1700
1700 Handle<SharedFunctionInfo> shared_info() { return hydrogen()->shared_info(); } 1701 Handle<SharedFunctionInfo> shared_info() { return hydrogen()->shared_info(); }
1701 }; 1702 };
1702 1703
1703 1704
1705 class LToFastProperties: public LTemplateInstruction<0, 1, 0> {
1706 public:
1707 explicit LToFastProperties(LOperand* value) {
1708 inputs_[0] = value;
1709 }
1710
1711 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties")
1712 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties)
1713 };
1714
1715
1704 class LTypeof: public LTemplateInstruction<1, 1, 0> { 1716 class LTypeof: public LTemplateInstruction<1, 1, 0> {
1705 public: 1717 public:
1706 explicit LTypeof(LOperand* value) { 1718 explicit LTypeof(LOperand* value) {
1707 inputs_[0] = value; 1719 inputs_[0] = value;
1708 } 1720 }
1709 1721
1710 DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof") 1722 DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof")
1711 }; 1723 };
1712 1724
1713 1725
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2007 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1996 }; 2008 };
1997 2009
1998 #undef DECLARE_HYDROGEN_ACCESSOR 2010 #undef DECLARE_HYDROGEN_ACCESSOR
1999 #undef DECLARE_INSTRUCTION 2011 #undef DECLARE_INSTRUCTION
2000 #undef DECLARE_CONCRETE_INSTRUCTION 2012 #undef DECLARE_CONCRETE_INSTRUCTION
2001 2013
2002 } } // namespace v8::internal 2014 } } // namespace v8::internal
2003 2015
2004 #endif // V8_ARM_LITHIUM_ARM_H_ 2016 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | src/hydrogen-instructions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698