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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 TRBinaryOpIC::GENERIC) { | 330 TRBinaryOpIC::GENERIC) { |
331 continue; | 331 continue; |
332 } | 332 } |
333 } else if (kind == Code::COMPARE_IC) { | 333 } else if (kind == Code::COMPARE_IC) { |
334 if (target->compare_state() == CompareIC::GENERIC) continue; | 334 if (target->compare_state() == CompareIC::GENERIC) continue; |
335 } else { | 335 } else { |
336 if (kind == Code::CALL_IC && state == MONOMORPHIC && | 336 if (kind == Code::CALL_IC && state == MONOMORPHIC && |
337 target->check_type() != RECEIVER_MAP_CHECK) continue; | 337 target->check_type() != RECEIVER_MAP_CHECK) continue; |
338 if (state != MONOMORPHIC && state != MEGAMORPHIC) continue; | 338 if (state != MONOMORPHIC && state != MEGAMORPHIC) continue; |
339 } | 339 } |
340 code_positions->Add(info->pc() - code->instruction_start()); | 340 code_positions->Add( |
| 341 static_cast<int>(info->pc() - code->instruction_start())); |
341 source_positions->Add(position); | 342 source_positions->Add(position); |
342 } | 343 } |
343 } else { | 344 } else { |
344 ASSERT(RelocInfo::IsPosition(mode)); | 345 ASSERT(RelocInfo::IsPosition(mode)); |
345 position = info->data(); | 346 position = static_cast<int>(info->data()); |
346 } | 347 } |
347 } | 348 } |
348 } | 349 } |
349 | 350 |
350 } } // namespace v8::internal | 351 } } // namespace v8::internal |
OLD | NEW |