| 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 state_.Add(GENERIC); | 462 state_.Add(GENERIC); |
| 463 } else { | 463 } else { |
| 464 state_.Add(MONOMORPHIC_MAP); | 464 state_.Add(MONOMORPHIC_MAP); |
| 465 } | 465 } |
| 466 TraceTransition(old_state, state_); | 466 TraceTransition(old_state, state_); |
| 467 } | 467 } |
| 468 | 468 |
| 469 | 469 |
| 470 template<class StateType> | 470 template<class StateType> |
| 471 void HydrogenCodeStub::TraceTransition(StateType from, StateType to) { | 471 void HydrogenCodeStub::TraceTransition(StateType from, StateType to) { |
| 472 // Note: Although a no-op transition is semantically OK, it is hinting at a |
| 473 // bug somewhere in our state transition machinery. |
| 474 ASSERT(from != to); |
| 472 #ifdef DEBUG | 475 #ifdef DEBUG |
| 473 if (!FLAG_trace_ic) return; | 476 if (!FLAG_trace_ic) return; |
| 474 char buffer[100]; | 477 char buffer[100]; |
| 475 NoAllocationStringAllocator allocator(buffer, | 478 NoAllocationStringAllocator allocator(buffer, |
| 476 static_cast<unsigned>(sizeof(buffer))); | 479 static_cast<unsigned>(sizeof(buffer))); |
| 477 StringStream stream(&allocator); | 480 StringStream stream(&allocator); |
| 478 stream.Add("["); | 481 stream.Add("["); |
| 479 PrintBaseName(&stream); | 482 PrintBaseName(&stream); |
| 480 stream.Add(": "); | 483 stream.Add(": "); |
| 481 from.Print(&stream); | 484 from.Print(&stream); |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 InstallDescriptor(isolate, &stub3); | 799 InstallDescriptor(isolate, &stub3); |
| 797 } | 800 } |
| 798 | 801 |
| 799 InternalArrayConstructorStub::InternalArrayConstructorStub( | 802 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 800 Isolate* isolate) { | 803 Isolate* isolate) { |
| 801 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 804 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 802 } | 805 } |
| 803 | 806 |
| 804 | 807 |
| 805 } } // namespace v8::internal | 808 } } // namespace v8::internal |
| OLD | NEW |