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

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

Issue 378533002: Another round of MSVC fixes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Struct Created 6 years, 5 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/objects-printer.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 // 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_GVN_H_ 5 #ifndef V8_HYDROGEN_GVN_H_
6 #define V8_HYDROGEN_GVN_H_ 6 #define V8_HYDROGEN_GVN_H_
7 7
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/hydrogen.h" 9 #include "src/hydrogen.h"
10 #include "src/hydrogen-instructions.h" 10 #include "src/hydrogen-instructions.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 ASSERT(special >= 0); 48 ASSERT(special >= 0);
49 ASSERT(special < kNumberOfSpecials); 49 ASSERT(special < kNumberOfSpecials);
50 return static_cast<uint64_t>(1) << static_cast<unsigned>( 50 return static_cast<uint64_t>(1) << static_cast<unsigned>(
51 special + kNumberOfFlags); 51 special + kNumberOfFlags);
52 } 52 }
53 53
54 uint64_t bits_; 54 uint64_t bits_;
55 }; 55 };
56 56
57 57
58 class TrackedEffects; 58 struct TrackedEffects;
59 59
60 // Tracks global variable and inobject field loads/stores in a fine grained 60 // Tracks global variable and inobject field loads/stores in a fine grained
61 // fashion, and represents them using the "special" dynamic side effects of the 61 // fashion, and represents them using the "special" dynamic side effects of the
62 // SideEffects class (see above). This way unrelated global variable/inobject 62 // SideEffects class (see above). This way unrelated global variable/inobject
63 // field stores don't prevent hoisting and merging of global variable/inobject 63 // field stores don't prevent hoisting and merging of global variable/inobject
64 // field loads. 64 // field loads.
65 class SideEffectsTracker V8_FINAL BASE_EMBEDDED { 65 class SideEffectsTracker V8_FINAL BASE_EMBEDDED {
66 public: 66 public:
67 SideEffectsTracker() : num_global_vars_(0), num_inobject_fields_(0) {} 67 SideEffectsTracker() : num_global_vars_(0), num_inobject_fields_(0) {}
68 SideEffects ComputeChanges(HInstruction* instr); 68 SideEffects ComputeChanges(HInstruction* instr);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Used when collecting side effects on paths from dominator to 144 // Used when collecting side effects on paths from dominator to
145 // dominated. 145 // dominated.
146 BitVector visited_on_paths_; 146 BitVector visited_on_paths_;
147 147
148 DISALLOW_COPY_AND_ASSIGN(HGlobalValueNumberingPhase); 148 DISALLOW_COPY_AND_ASSIGN(HGlobalValueNumberingPhase);
149 }; 149 };
150 150
151 } } // namespace v8::internal 151 } } // namespace v8::internal
152 152
153 #endif // V8_HYDROGEN_GVN_H_ 153 #endif // V8_HYDROGEN_GVN_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698