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

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

Issue 212603013: Fix TSAN issue wrt assertions in the optimizing compiler thread. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/handles-inl.h ('k') | src/hydrogen-environment-liveness.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 explicit HEnvironmentLivenessAnalysisPhase(HGraph* graph); 48 explicit HEnvironmentLivenessAnalysisPhase(HGraph* graph);
49 49
50 void Run(); 50 void Run();
51 51
52 private: 52 private:
53 void ZapEnvironmentSlot(int index, HSimulate* simulate); 53 void ZapEnvironmentSlot(int index, HSimulate* simulate);
54 void ZapEnvironmentSlotsInSuccessors(HBasicBlock* block, BitVector* live); 54 void ZapEnvironmentSlotsInSuccessors(HBasicBlock* block, BitVector* live);
55 void ZapEnvironmentSlotsForInstruction(HEnvironmentMarker* marker); 55 void ZapEnvironmentSlotsForInstruction(HEnvironmentMarker* marker);
56 void UpdateLivenessAtBlockEnd(HBasicBlock* block, BitVector* live); 56 void UpdateLivenessAtBlockEnd(HBasicBlock* block, BitVector* live);
57 void UpdateLivenessAtInstruction(HInstruction* instr, BitVector* live); 57 void UpdateLivenessAtInstruction(HInstruction* instr, BitVector* live);
58 #ifdef DEBUG
59 bool VerifyClosures(Handle<JSFunction> a, Handle<JSFunction> b);
60 #endif
58 61
59 int block_count_; 62 int block_count_;
60 63
61 // Largest number of local variables in any environment in the graph 64 // Largest number of local variables in any environment in the graph
62 // (including inlined environments). 65 // (including inlined environments).
63 int maximum_environment_size_; 66 int maximum_environment_size_;
64 67
65 // Per-block data. All these lists are indexed by block_id. 68 // Per-block data. All these lists are indexed by block_id.
66 ZoneList<BitVector*> live_at_block_start_; 69 ZoneList<BitVector*> live_at_block_start_;
67 ZoneList<HSimulate*> first_simulate_; 70 ZoneList<HSimulate*> first_simulate_;
(...skipping 11 matching lines...) Expand all
79 HSimulate* last_simulate_; 82 HSimulate* last_simulate_;
80 BitVector went_live_since_last_simulate_; 83 BitVector went_live_since_last_simulate_;
81 84
82 DISALLOW_COPY_AND_ASSIGN(HEnvironmentLivenessAnalysisPhase); 85 DISALLOW_COPY_AND_ASSIGN(HEnvironmentLivenessAnalysisPhase);
83 }; 86 };
84 87
85 88
86 } } // namespace v8::internal 89 } } // namespace v8::internal
87 90
88 #endif /* V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ */ 91 #endif /* V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ */
OLDNEW
« no previous file with comments | « src/handles-inl.h ('k') | src/hydrogen-environment-liveness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698