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

Side by Side Diff: src/lithium-allocator-inl.h

Issue 11299328: Implement basic array prefetching hints in Hydrogen. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | no next file » | 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 105
106 void InputIterator::Advance() { 106 void InputIterator::Advance() {
107 ++current_; 107 ++current_;
108 SkipUninteresting(); 108 SkipUninteresting();
109 } 109 }
110 110
111 111
112 void InputIterator::SkipUninteresting() { 112 void InputIterator::SkipUninteresting() {
113 while (current_ < limit_ && instr_->InputAt(current_)->IsConstantOperand()) { 113 while (current_ < limit_ &&
114 (instr_->InputAt(current_) == NULL ||
115 instr_->InputAt(current_)->IsConstantOperand())) {
114 ++current_; 116 ++current_;
115 } 117 }
116 } 118 }
117 119
118 120
119 UseIterator::UseIterator(LInstruction* instr) 121 UseIterator::UseIterator(LInstruction* instr)
120 : input_iterator_(instr), env_iterator_(instr->environment()) { } 122 : input_iterator_(instr), env_iterator_(instr->environment()) { }
121 123
122 124
123 bool UseIterator::Done() { 125 bool UseIterator::Done() {
(...skipping 11 matching lines...) Expand all
135 137
136 void UseIterator::Advance() { 138 void UseIterator::Advance() {
137 input_iterator_.Done() 139 input_iterator_.Done()
138 ? env_iterator_.Advance() 140 ? env_iterator_.Advance()
139 : input_iterator_.Advance(); 141 : input_iterator_.Advance();
140 } 142 }
141 143
142 } } // namespace v8::internal 144 } } // namespace v8::internal
143 145
144 #endif // V8_LITHIUM_ALLOCATOR_INL_H_ 146 #endif // V8_LITHIUM_ALLOCATOR_INL_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698