OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2320 | 2320 |
2321 class LChunkBuilder; | 2321 class LChunkBuilder; |
2322 class LChunk: public LChunkBase { | 2322 class LChunk: public LChunkBase { |
2323 public: | 2323 public: |
2324 LChunk(CompilationInfo* info, HGraph* graph) | 2324 LChunk(CompilationInfo* info, HGraph* graph) |
2325 : LChunkBase(info, graph), | 2325 : LChunkBase(info, graph), |
2326 num_double_slots_(0) { } | 2326 num_double_slots_(0) { } |
2327 | 2327 |
2328 int GetNextSpillIndex(bool is_double); | 2328 int GetNextSpillIndex(bool is_double); |
2329 LOperand* GetNextSpillSlot(bool is_double); | 2329 LOperand* GetNextSpillSlot(bool is_double); |
| 2330 int num_double_slots() const { return num_double_slots_; } |
2330 | 2331 |
2331 int num_double_slots() const { return num_double_slots_; } | 2332 static LChunk* cast(LChunkBase* chunk_base) { |
| 2333 return reinterpret_cast<LChunk*>(chunk_base); |
| 2334 } |
2332 | 2335 |
2333 private: | 2336 private: |
2334 int num_double_slots_; | 2337 int num_double_slots_; |
2335 }; | 2338 }; |
2336 | 2339 |
2337 | 2340 |
2338 class LChunkBuilder BASE_EMBEDDED { | 2341 class LChunkBuilder BASE_EMBEDDED { |
2339 public: | 2342 public: |
2340 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) | 2343 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) |
2341 : chunk_(NULL), | 2344 : chunk_(NULL), |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2491 | 2494 |
2492 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2495 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2493 }; | 2496 }; |
2494 | 2497 |
2495 #undef DECLARE_HYDROGEN_ACCESSOR | 2498 #undef DECLARE_HYDROGEN_ACCESSOR |
2496 #undef DECLARE_CONCRETE_INSTRUCTION | 2499 #undef DECLARE_CONCRETE_INSTRUCTION |
2497 | 2500 |
2498 } } // namespace v8::internal | 2501 } } // namespace v8::internal |
2499 | 2502 |
2500 #endif // V8_IA32_LITHIUM_IA32_H_ | 2503 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |