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

Side by Side Diff: test/unittests/compiler/instruction-sequence-unittest.h

Issue 1221433021: Move SmartPointer to base. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove some unecessary header includes Created 5 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_ 5 #ifndef V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_
6 #define V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_ 6 #define V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_
7 7
8 #include "src/compiler/instruction.h" 8 #include "src/compiler/instruction.h"
9 #include "test/unittests/test-utils.h" 9 #include "test/unittests/test-utils.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 struct LoopData { 217 struct LoopData {
218 Rpo loop_header_; 218 Rpo loop_header_;
219 int expected_blocks_; 219 int expected_blocks_;
220 }; 220 };
221 221
222 typedef std::vector<LoopData> LoopBlocks; 222 typedef std::vector<LoopData> LoopBlocks;
223 typedef std::map<int, const Instruction*> Instructions; 223 typedef std::map<int, const Instruction*> Instructions;
224 typedef std::vector<BlockCompletion> Completions; 224 typedef std::vector<BlockCompletion> Completions;
225 225
226 SmartPointer<RegisterConfiguration> config_; 226 base::SmartPointer<RegisterConfiguration> config_;
227 InstructionSequence* sequence_; 227 InstructionSequence* sequence_;
228 int num_general_registers_; 228 int num_general_registers_;
229 int num_double_registers_; 229 int num_double_registers_;
230 230
231 // Block building state. 231 // Block building state.
232 InstructionBlocks instruction_blocks_; 232 InstructionBlocks instruction_blocks_;
233 Instructions instructions_; 233 Instructions instructions_;
234 Completions completions_; 234 Completions completions_;
235 LoopBlocks loop_blocks_; 235 LoopBlocks loop_blocks_;
236 InstructionBlock* current_block_; 236 InstructionBlock* current_block_;
237 bool block_returns_; 237 bool block_returns_;
238 }; 238 };
239 239
240 } // namespace compiler 240 } // namespace compiler
241 } // namespace internal 241 } // namespace internal
242 } // namespace v8 242 } // namespace v8
243 243
244 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_ 244 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SEQUENCE_UNITTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698