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

Side by Side Diff: src/hydrogen-instructions.h

Issue 6499014: ARM: Implement GetCachedArrayIndex in the lithium code generator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bugs. 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-ia32.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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 V(CompareJSObjectEq) \ 100 V(CompareJSObjectEq) \
101 V(CompareMap) \ 101 V(CompareMap) \
102 V(Constant) \ 102 V(Constant) \
103 V(Context) \ 103 V(Context) \
104 V(DeleteProperty) \ 104 V(DeleteProperty) \
105 V(Deoptimize) \ 105 V(Deoptimize) \
106 V(Div) \ 106 V(Div) \
107 V(EnterInlined) \ 107 V(EnterInlined) \
108 V(FixedArrayLength) \ 108 V(FixedArrayLength) \
109 V(FunctionLiteral) \ 109 V(FunctionLiteral) \
110 V(GetCachedArrayIndex) \
110 V(GlobalObject) \ 111 V(GlobalObject) \
111 V(GlobalReceiver) \ 112 V(GlobalReceiver) \
112 V(Goto) \ 113 V(Goto) \
113 V(InstanceOf) \ 114 V(InstanceOf) \
114 V(InstanceOfKnownGlobal) \ 115 V(InstanceOfKnownGlobal) \
115 V(IsNull) \ 116 V(IsNull) \
116 V(IsObject) \ 117 V(IsObject) \
117 V(IsSmi) \ 118 V(IsSmi) \
118 V(IsConstructCall) \ 119 V(IsConstructCall) \
119 V(HasInstanceType) \ 120 V(HasInstanceType) \
(...skipping 2204 matching lines...) Expand 10 before | Expand all | Expand 10 after
2324 public: 2325 public:
2325 explicit HHasCachedArrayIndex(HValue* value) : HUnaryPredicate(value) { } 2326 explicit HHasCachedArrayIndex(HValue* value) : HUnaryPredicate(value) { }
2326 2327
2327 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndex, "has_cached_array_index") 2328 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndex, "has_cached_array_index")
2328 2329
2329 protected: 2330 protected:
2330 virtual bool DataEquals(HValue* other) const { return true; } 2331 virtual bool DataEquals(HValue* other) const { return true; }
2331 }; 2332 };
2332 2333
2333 2334
2335 class HGetCachedArrayIndex: public HUnaryPredicate {
2336 public:
2337 explicit HGetCachedArrayIndex(HValue* value) : HUnaryPredicate(value) { }
2338
2339 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get_cached_array_index")
2340
2341 protected:
2342 virtual bool DataEquals(HValue* other) const { return true; }
2343 };
2344
2345
2334 class HClassOfTest: public HUnaryPredicate { 2346 class HClassOfTest: public HUnaryPredicate {
2335 public: 2347 public:
2336 HClassOfTest(HValue* value, Handle<String> class_name) 2348 HClassOfTest(HValue* value, Handle<String> class_name)
2337 : HUnaryPredicate(value), class_name_(class_name) { } 2349 : HUnaryPredicate(value), class_name_(class_name) { }
2338 2350
2339 DECLARE_CONCRETE_INSTRUCTION(ClassOfTest, "class_of_test") 2351 DECLARE_CONCRETE_INSTRUCTION(ClassOfTest, "class_of_test")
2340 2352
2341 virtual void PrintDataTo(StringStream* stream) const; 2353 virtual void PrintDataTo(StringStream* stream) const;
2342 2354
2343 Handle<String> class_name() const { return class_name_; } 2355 Handle<String> class_name() const { return class_name_; }
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
3414 HValue* object() const { return left(); } 3426 HValue* object() const { return left(); }
3415 HValue* key() const { return right(); } 3427 HValue* key() const { return right(); }
3416 }; 3428 };
3417 3429
3418 #undef DECLARE_INSTRUCTION 3430 #undef DECLARE_INSTRUCTION
3419 #undef DECLARE_CONCRETE_INSTRUCTION 3431 #undef DECLARE_CONCRETE_INSTRUCTION
3420 3432
3421 } } // namespace v8::internal 3433 } } // namespace v8::internal
3422 3434
3423 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 3435 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698