OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 2584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2595 if (is_smi) { | 2595 if (is_smi) { |
2596 return Smi::FromInt(static_cast<int32_t>(int_value)); | 2596 return Smi::FromInt(static_cast<int32_t>(int_value)); |
2597 } | 2597 } |
2598 break; | 2598 break; |
2599 } | 2599 } |
2600 | 2600 |
2601 case kBoolBit: { | 2601 case kBoolBit: { |
2602 if (uint32_value() == 0) { | 2602 if (uint32_value() == 0) { |
2603 return isolate()->heap()->false_value(); | 2603 return isolate()->heap()->false_value(); |
2604 } else { | 2604 } else { |
2605 CHECK_EQ(1, uint32_value()); | 2605 CHECK_EQ(1U, uint32_value()); |
2606 return isolate()->heap()->true_value(); | 2606 return isolate()->heap()->true_value(); |
2607 } | 2607 } |
2608 } | 2608 } |
2609 | 2609 |
2610 default: | 2610 default: |
2611 break; | 2611 break; |
2612 } | 2612 } |
2613 | 2613 |
2614 // If we could not get the value without allocation, return the arguments | 2614 // If we could not get the value without allocation, return the arguments |
2615 // marker. | 2615 // marker. |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3505 DCHECK(value_info->IsMaterializedObject()); | 3505 DCHECK(value_info->IsMaterializedObject()); |
3506 | 3506 |
3507 value_info->value_ = | 3507 value_info->value_ = |
3508 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 3508 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
3509 } | 3509 } |
3510 } | 3510 } |
3511 } | 3511 } |
3512 | 3512 |
3513 } // namespace internal | 3513 } // namespace internal |
3514 } // namespace v8 | 3514 } // namespace v8 |
OLD | NEW |