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

Side by Side Diff: src/hydrogen-environment-liveness.h

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ 5 #ifndef V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_
6 #define V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ 6 #define V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_
7 7
8 8
9 #include "src/hydrogen.h" 9 #include "src/hydrogen.h"
10 10
(...skipping 14 matching lines...) Expand all
25 explicit HEnvironmentLivenessAnalysisPhase(HGraph* graph); 25 explicit HEnvironmentLivenessAnalysisPhase(HGraph* graph);
26 26
27 void Run(); 27 void Run();
28 28
29 private: 29 private:
30 void ZapEnvironmentSlot(int index, HSimulate* simulate); 30 void ZapEnvironmentSlot(int index, HSimulate* simulate);
31 void ZapEnvironmentSlotsInSuccessors(HBasicBlock* block, BitVector* live); 31 void ZapEnvironmentSlotsInSuccessors(HBasicBlock* block, BitVector* live);
32 void ZapEnvironmentSlotsForInstruction(HEnvironmentMarker* marker); 32 void ZapEnvironmentSlotsForInstruction(HEnvironmentMarker* marker);
33 void UpdateLivenessAtBlockEnd(HBasicBlock* block, BitVector* live); 33 void UpdateLivenessAtBlockEnd(HBasicBlock* block, BitVector* live);
34 void UpdateLivenessAtInstruction(HInstruction* instr, BitVector* live); 34 void UpdateLivenessAtInstruction(HInstruction* instr, BitVector* live);
35 #ifdef DEBUG 35 #if DCHECK_IS_ON
36 bool VerifyClosures(Handle<JSFunction> a, Handle<JSFunction> b); 36 bool VerifyClosures(Handle<JSFunction> a, Handle<JSFunction> b);
37 #endif 37 #endif
38 38
39 int block_count_; 39 int block_count_;
40 40
41 // Largest number of local variables in any environment in the graph 41 // Largest number of local variables in any environment in the graph
42 // (including inlined environments). 42 // (including inlined environments).
43 int maximum_environment_size_; 43 int maximum_environment_size_;
44 44
45 // Per-block data. All these lists are indexed by block_id. 45 // Per-block data. All these lists are indexed by block_id.
(...skipping 13 matching lines...) Expand all
59 HSimulate* last_simulate_; 59 HSimulate* last_simulate_;
60 BitVector went_live_since_last_simulate_; 60 BitVector went_live_since_last_simulate_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(HEnvironmentLivenessAnalysisPhase); 62 DISALLOW_COPY_AND_ASSIGN(HEnvironmentLivenessAnalysisPhase);
63 }; 63 };
64 64
65 65
66 } } // namespace v8::internal 66 } } // namespace v8::internal
67 67
68 #endif /* V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ */ 68 #endif /* V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698