| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/objects.h" | 5 #include "src/objects.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <iomanip> | 8 #include <iomanip> |
| 9 #include <sstream> | 9 #include <sstream> |
| 10 | 10 |
| (...skipping 2177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2188 os << "<undefined>"; | 2188 os << "<undefined>"; |
| 2189 } else if (IsTheHole()) { | 2189 } else if (IsTheHole()) { |
| 2190 os << "<the hole>"; | 2190 os << "<the hole>"; |
| 2191 } else if (IsNull()) { | 2191 } else if (IsNull()) { |
| 2192 os << "<null>"; | 2192 os << "<null>"; |
| 2193 } else if (IsTrue()) { | 2193 } else if (IsTrue()) { |
| 2194 os << "<true>"; | 2194 os << "<true>"; |
| 2195 } else if (IsFalse()) { | 2195 } else if (IsFalse()) { |
| 2196 os << "<false>"; | 2196 os << "<false>"; |
| 2197 } else { | 2197 } else { |
| 2198 os << "<Odd Oddball>"; | 2198 os << "<Odd Oddball: "; |
| 2199 os << Oddball::cast(this)->to_string()->ToCString().get(); |
| 2200 os << ">"; |
| 2199 } | 2201 } |
| 2200 break; | 2202 break; |
| 2201 } | 2203 } |
| 2202 case SYMBOL_TYPE: { | 2204 case SYMBOL_TYPE: { |
| 2203 Symbol* symbol = Symbol::cast(this); | 2205 Symbol* symbol = Symbol::cast(this); |
| 2204 symbol->SymbolShortPrint(os); | 2206 symbol->SymbolShortPrint(os); |
| 2205 break; | 2207 break; |
| 2206 } | 2208 } |
| 2207 case HEAP_NUMBER_TYPE: { | 2209 case HEAP_NUMBER_TYPE: { |
| 2208 os << "<Number: "; | 2210 os << "<Number: "; |
| (...skipping 17552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19761 if (cell->value() != *new_value) { | 19763 if (cell->value() != *new_value) { |
| 19762 cell->set_value(*new_value); | 19764 cell->set_value(*new_value); |
| 19763 Isolate* isolate = cell->GetIsolate(); | 19765 Isolate* isolate = cell->GetIsolate(); |
| 19764 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 19766 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 19765 isolate, DependentCode::kPropertyCellChangedGroup); | 19767 isolate, DependentCode::kPropertyCellChangedGroup); |
| 19766 } | 19768 } |
| 19767 } | 19769 } |
| 19768 | 19770 |
| 19769 } // namespace internal | 19771 } // namespace internal |
| 19770 } // namespace v8 | 19772 } // namespace v8 |
| OLD | NEW |