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

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

Issue 23533003: Implement fixpoint iteration for escape analysis. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Simplified and rebased. Created 7 years, 3 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 3232 matching lines...) Expand 10 before | Expand all | Expand 10 after
3243 3243
3244 void ReuseSideEffectsFromStore(HInstruction* store) { 3244 void ReuseSideEffectsFromStore(HInstruction* store) {
3245 ASSERT(store->HasObservableSideEffects()); 3245 ASSERT(store->HasObservableSideEffects());
3246 ASSERT(store->IsStoreNamedField()); 3246 ASSERT(store->IsStoreNamedField());
3247 gvn_flags_.Add(store->gvn_flags()); 3247 gvn_flags_.Add(store->gvn_flags());
3248 } 3248 }
3249 3249
3250 // Replay effects of this instruction on the given environment. 3250 // Replay effects of this instruction on the given environment.
3251 void ReplayEnvironment(HEnvironment* env); 3251 void ReplayEnvironment(HEnvironment* env);
3252 3252
3253 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
3254
3253 DECLARE_CONCRETE_INSTRUCTION(CapturedObject) 3255 DECLARE_CONCRETE_INSTRUCTION(CapturedObject)
3254 3256
3255 private: 3257 private:
3256 int capture_id_; 3258 int capture_id_;
3257 }; 3259 };
3258 3260
3259 3261
3260 class HConstant V8_FINAL : public HTemplateInstruction<0> { 3262 class HConstant V8_FINAL : public HTemplateInstruction<0> {
3261 public: 3263 public:
3262 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, int32_t); 3264 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, int32_t);
(...skipping 3696 matching lines...) Expand 10 before | Expand all | Expand 10 after
6959 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 6961 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
6960 }; 6962 };
6961 6963
6962 6964
6963 #undef DECLARE_INSTRUCTION 6965 #undef DECLARE_INSTRUCTION
6964 #undef DECLARE_CONCRETE_INSTRUCTION 6966 #undef DECLARE_CONCRETE_INSTRUCTION
6965 6967
6966 } } // namespace v8::internal 6968 } } // namespace v8::internal
6967 6969
6968 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6970 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698