| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/bootstrap.h" | 8 #include "vm/bootstrap.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/constant_propagator.h" | 10 #include "vm/constant_propagator.h" |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 } | 373 } |
| 374 | 374 |
| 375 | 375 |
| 376 intptr_t CheckClassInstr::ComputeCidMask() const { | 376 intptr_t CheckClassInstr::ComputeCidMask() const { |
| 377 ASSERT(IsBitTest()); | 377 ASSERT(IsBitTest()); |
| 378 intptr_t min = cids_.ComputeLowestCid(); | 378 intptr_t min = cids_.ComputeLowestCid(); |
| 379 intptr_t mask = 0; | 379 intptr_t mask = 0; |
| 380 for (intptr_t i = 0; i < cids_.length(); ++i) { | 380 for (intptr_t i = 0; i < cids_.length(); ++i) { |
| 381 intptr_t run; | 381 intptr_t run; |
| 382 uintptr_t range = 1ul + cids_[i].Extent(); | 382 uintptr_t range = 1ul + cids_[i].Extent(); |
| 383 if (range >= kBitsPerWord) { | 383 if (range >= static_cast<uintptr_t>(kBitsPerWord)) { |
| 384 run = -1; | 384 run = -1; |
| 385 } else { | 385 } else { |
| 386 run = (1 << range) - 1; | 386 run = (1 << range) - 1; |
| 387 } | 387 } |
| 388 mask |= run << (cids_[i].cid_start - min); | 388 mask |= run << (cids_[i].cid_start - min); |
| 389 } | 389 } |
| 390 return mask; | 390 return mask; |
| 391 } | 391 } |
| 392 | 392 |
| 393 | 393 |
| (...skipping 3933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4327 "native function '%s' (%" Pd " arguments) cannot be found", | 4327 "native function '%s' (%" Pd " arguments) cannot be found", |
| 4328 native_name().ToCString(), function().NumParameters()); | 4328 native_name().ToCString(), function().NumParameters()); |
| 4329 } | 4329 } |
| 4330 set_is_auto_scope(auto_setup_scope); | 4330 set_is_auto_scope(auto_setup_scope); |
| 4331 set_native_c_function(native_function); | 4331 set_native_c_function(native_function); |
| 4332 } | 4332 } |
| 4333 | 4333 |
| 4334 #undef __ | 4334 #undef __ |
| 4335 | 4335 |
| 4336 } // namespace dart | 4336 } // namespace dart |
| OLD | NEW |