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 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2362 CompilationInfo* info_; | 2362 CompilationInfo* info_; |
2363 HGraph* const graph_; | 2363 HGraph* const graph_; |
2364 ZoneList<LInstruction*> instructions_; | 2364 ZoneList<LInstruction*> instructions_; |
2365 ZoneList<LPointerMap*> pointer_maps_; | 2365 ZoneList<LPointerMap*> pointer_maps_; |
2366 ZoneList<Handle<JSFunction> > inlined_closures_; | 2366 ZoneList<Handle<JSFunction> > inlined_closures_; |
2367 }; | 2367 }; |
2368 | 2368 |
2369 | 2369 |
2370 class LChunkBuilder BASE_EMBEDDED { | 2370 class LChunkBuilder BASE_EMBEDDED { |
2371 public: | 2371 public: |
2372 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) | 2372 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator, |
2373 Zone* zone) | |
2373 : chunk_(NULL), | 2374 : chunk_(NULL), |
2374 info_(info), | 2375 info_(info), |
2375 graph_(graph), | 2376 graph_(graph), |
2376 zone_(graph->isolate()->zone()), | 2377 zone_(zone), |
danno
2012/06/01 15:25:34
get it directly from the zone
sanjoy
2012/06/04 10:17:21
Changed it to directly read the Zone off the HGrap
| |
2377 status_(UNUSED), | 2378 status_(UNUSED), |
2378 current_instruction_(NULL), | 2379 current_instruction_(NULL), |
2379 current_block_(NULL), | 2380 current_block_(NULL), |
2380 next_block_(NULL), | 2381 next_block_(NULL), |
2381 argument_count_(0), | 2382 argument_count_(0), |
2382 allocator_(allocator), | 2383 allocator_(allocator), |
2383 position_(RelocInfo::kNoPosition), | 2384 position_(RelocInfo::kNoPosition), |
2384 instruction_pending_deoptimization_environment_(NULL), | 2385 instruction_pending_deoptimization_environment_(NULL), |
2385 pending_deoptimization_ast_id_(AstNode::kNoNumber) { } | 2386 pending_deoptimization_ast_id_(AstNode::kNoNumber) { } |
2386 | 2387 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2520 | 2521 |
2521 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2522 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2522 }; | 2523 }; |
2523 | 2524 |
2524 #undef DECLARE_HYDROGEN_ACCESSOR | 2525 #undef DECLARE_HYDROGEN_ACCESSOR |
2525 #undef DECLARE_CONCRETE_INSTRUCTION | 2526 #undef DECLARE_CONCRETE_INSTRUCTION |
2526 | 2527 |
2527 } } // namespace v8::internal | 2528 } } // namespace v8::internal |
2528 | 2529 |
2529 #endif // V8_IA32_LITHIUM_IA32_H_ | 2530 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |