OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 arguments()->PrintTo(stream); | 315 arguments()->PrintTo(stream); |
316 | 316 |
317 stream->Add(" length "); | 317 stream->Add(" length "); |
318 length()->PrintTo(stream); | 318 length()->PrintTo(stream); |
319 | 319 |
320 stream->Add(" index "); | 320 stream->Add(" index "); |
321 index()->PrintTo(stream); | 321 index()->PrintTo(stream); |
322 } | 322 } |
323 | 323 |
324 | 324 |
325 LChunk::LChunk(HGraph* graph) | |
326 : spill_slot_count_(0), | |
327 graph_(graph), | |
328 instructions_(32), | |
329 pointer_maps_(8), | |
330 inlined_closures_(1) { | |
331 } | |
332 | |
333 | |
334 void LChunk::Verify() const { | 325 void LChunk::Verify() const { |
335 // TODO(twuerthinger): Implement verification for chunk. | 326 // TODO(twuerthinger): Implement verification for chunk. |
336 } | 327 } |
337 | 328 |
338 | 329 |
339 int LChunk::GetNextSpillIndex(bool is_double) { | 330 int LChunk::GetNextSpillIndex(bool is_double) { |
340 // Skip a slot if for a double-width slot. | 331 // Skip a slot if for a double-width slot. |
341 if (is_double) spill_slot_count_++; | 332 if (is_double) spill_slot_count_++; |
342 return spill_slot_count_++; | 333 return spill_slot_count_++; |
343 } | 334 } |
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2108 void LPointerMap::PrintTo(StringStream* stream) const { | 2099 void LPointerMap::PrintTo(StringStream* stream) const { |
2109 stream->Add("{"); | 2100 stream->Add("{"); |
2110 for (int i = 0; i < pointer_operands_.length(); ++i) { | 2101 for (int i = 0; i < pointer_operands_.length(); ++i) { |
2111 if (i != 0) stream->Add(";"); | 2102 if (i != 0) stream->Add(";"); |
2112 pointer_operands_[i]->PrintTo(stream); | 2103 pointer_operands_[i]->PrintTo(stream); |
2113 } | 2104 } |
2114 stream->Add("} @%d", position()); | 2105 stream->Add("} @%d", position()); |
2115 } | 2106 } |
2116 | 2107 |
2117 } } // namespace v8::internal | 2108 } } // namespace v8::internal |
OLD | NEW |