| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 arguments()->PrintTo(stream); | 339 arguments()->PrintTo(stream); |
| 340 | 340 |
| 341 stream->Add(" length "); | 341 stream->Add(" length "); |
| 342 length()->PrintTo(stream); | 342 length()->PrintTo(stream); |
| 343 | 343 |
| 344 stream->Add(" index "); | 344 stream->Add(" index "); |
| 345 index()->PrintTo(stream); | 345 index()->PrintTo(stream); |
| 346 } | 346 } |
| 347 | 347 |
| 348 | 348 |
| 349 void LStoreNamed::PrintDataTo(StringStream* stream) { | 349 void LStoreNamedField::PrintDataTo(StringStream* stream) { |
| 350 object()->PrintTo(stream); | 350 object()->PrintTo(stream); |
| 351 stream->Add("."); | 351 stream->Add("."); |
| 352 stream->Add(*String::cast(*name())->ToCString()); | 352 stream->Add(*String::cast(*name())->ToCString()); |
| 353 stream->Add(" <- "); | 353 stream->Add(" <- "); |
| 354 value()->PrintTo(stream); | 354 value()->PrintTo(stream); |
| 355 } | 355 } |
| 356 | 356 |
| 357 | 357 |
| 358 void LStoreKeyed::PrintDataTo(StringStream* stream) { | 358 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
| 359 object()->PrintTo(stream); |
| 360 stream->Add("."); |
| 361 stream->Add(*String::cast(*name())->ToCString()); |
| 362 stream->Add(" <- "); |
| 363 value()->PrintTo(stream); |
| 364 } |
| 365 |
| 366 |
| 367 void LStoreKeyedFastElement::PrintDataTo(StringStream* stream) { |
| 359 object()->PrintTo(stream); | 368 object()->PrintTo(stream); |
| 360 stream->Add("["); | 369 stream->Add("["); |
| 361 key()->PrintTo(stream); | 370 key()->PrintTo(stream); |
| 362 stream->Add("] <- "); | 371 stream->Add("] <- "); |
| 363 value()->PrintTo(stream); | 372 value()->PrintTo(stream); |
| 364 } | 373 } |
| 365 | 374 |
| 366 | 375 |
| 376 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { |
| 377 object()->PrintTo(stream); |
| 378 stream->Add("["); |
| 379 key()->PrintTo(stream); |
| 380 stream->Add("] <- "); |
| 381 value()->PrintTo(stream); |
| 382 } |
| 383 |
| 384 |
| 367 LChunk::LChunk(HGraph* graph) | 385 LChunk::LChunk(HGraph* graph) |
| 368 : spill_slot_count_(0), | 386 : spill_slot_count_(0), |
| 369 graph_(graph), | 387 graph_(graph), |
| 370 instructions_(32), | 388 instructions_(32), |
| 371 pointer_maps_(8), | 389 pointer_maps_(8), |
| 372 inlined_closures_(1) { | 390 inlined_closures_(1) { |
| 373 } | 391 } |
| 374 | 392 |
| 375 | 393 |
| 376 int LChunk::GetNextSpillIndex(bool is_double) { | 394 int LChunk::GetNextSpillIndex(bool is_double) { |
| (...skipping 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2002 | 2020 |
| 2003 | 2021 |
| 2004 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2022 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2005 HEnvironment* outer = current_block_->last_environment()->outer(); | 2023 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2006 current_block_->UpdateEnvironment(outer); | 2024 current_block_->UpdateEnvironment(outer); |
| 2007 return NULL; | 2025 return NULL; |
| 2008 } | 2026 } |
| 2009 | 2027 |
| 2010 | 2028 |
| 2011 } } // namespace v8::internal | 2029 } } // namespace v8::internal |
| OLD | NEW |