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 2209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2220 CompilationInfo* info_; | 2220 CompilationInfo* info_; |
2221 HGraph* const graph_; | 2221 HGraph* const graph_; |
2222 ZoneList<LInstruction*> instructions_; | 2222 ZoneList<LInstruction*> instructions_; |
2223 ZoneList<LPointerMap*> pointer_maps_; | 2223 ZoneList<LPointerMap*> pointer_maps_; |
2224 ZoneList<Handle<JSFunction> > inlined_closures_; | 2224 ZoneList<Handle<JSFunction> > inlined_closures_; |
2225 }; | 2225 }; |
2226 | 2226 |
2227 | 2227 |
2228 class LChunkBuilder BASE_EMBEDDED { | 2228 class LChunkBuilder BASE_EMBEDDED { |
2229 public: | 2229 public: |
2230 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) | 2230 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator, |
2231 Zone* zone) | |
2231 : chunk_(NULL), | 2232 : chunk_(NULL), |
2232 info_(info), | 2233 info_(info), |
2233 graph_(graph), | 2234 graph_(graph), |
2234 zone_(graph->isolate()->zone()), | 2235 zone_(zone), |
danno
2012/06/01 11:29:24
Put the zone in the graph, get it from there.
| |
2235 status_(UNUSED), | 2236 status_(UNUSED), |
2236 current_instruction_(NULL), | 2237 current_instruction_(NULL), |
2237 current_block_(NULL), | 2238 current_block_(NULL), |
2238 next_block_(NULL), | 2239 next_block_(NULL), |
2239 argument_count_(0), | 2240 argument_count_(0), |
2240 allocator_(allocator), | 2241 allocator_(allocator), |
2241 position_(RelocInfo::kNoPosition), | 2242 position_(RelocInfo::kNoPosition), |
2242 instruction_pending_deoptimization_environment_(NULL), | 2243 instruction_pending_deoptimization_environment_(NULL), |
2243 pending_deoptimization_ast_id_(AstNode::kNoNumber) { } | 2244 pending_deoptimization_ast_id_(AstNode::kNoNumber) { } |
2244 | 2245 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2378 | 2379 |
2379 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2380 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2380 }; | 2381 }; |
2381 | 2382 |
2382 #undef DECLARE_HYDROGEN_ACCESSOR | 2383 #undef DECLARE_HYDROGEN_ACCESSOR |
2383 #undef DECLARE_CONCRETE_INSTRUCTION | 2384 #undef DECLARE_CONCRETE_INSTRUCTION |
2384 | 2385 |
2385 } } // namespace v8::int | 2386 } } // namespace v8::int |
2386 | 2387 |
2387 #endif // V8_X64_LITHIUM_X64_H_ | 2388 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |