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 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 2330 |
2331 int num_double_slots() const { return num_double_slots_; } | 2331 int num_double_slots() const { return num_double_slots_; } |
2332 | 2332 |
| 2333 Handle<Code> Codegen() { return LChunkBase::Codegen(this); } |
| 2334 |
2333 private: | 2335 private: |
2334 int num_double_slots_; | 2336 int num_double_slots_; |
2335 }; | 2337 }; |
2336 | 2338 |
2337 | 2339 |
2338 class LChunkBuilder BASE_EMBEDDED { | 2340 class LChunkBuilder BASE_EMBEDDED { |
2339 public: | 2341 public: |
2340 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) | 2342 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) |
2341 : chunk_(NULL), | 2343 : chunk_(NULL), |
2342 info_(info), | 2344 info_(info), |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2491 | 2493 |
2492 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2494 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2493 }; | 2495 }; |
2494 | 2496 |
2495 #undef DECLARE_HYDROGEN_ACCESSOR | 2497 #undef DECLARE_HYDROGEN_ACCESSOR |
2496 #undef DECLARE_CONCRETE_INSTRUCTION | 2498 #undef DECLARE_CONCRETE_INSTRUCTION |
2497 | 2499 |
2498 } } // namespace v8::internal | 2500 } } // namespace v8::internal |
2499 | 2501 |
2500 #endif // V8_IA32_LITHIUM_IA32_H_ | 2502 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |