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 17560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19769 if (cell->value() != *new_value) { | 19771 if (cell->value() != *new_value) { |
19770 cell->set_value(*new_value); | 19772 cell->set_value(*new_value); |
19771 Isolate* isolate = cell->GetIsolate(); | 19773 Isolate* isolate = cell->GetIsolate(); |
19772 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 19774 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
19773 isolate, DependentCode::kPropertyCellChangedGroup); | 19775 isolate, DependentCode::kPropertyCellChangedGroup); |
19774 } | 19776 } |
19775 } | 19777 } |
19776 | 19778 |
19777 } // namespace internal | 19779 } // namespace internal |
19778 } // namespace v8 | 19780 } // namespace v8 |
OLD | NEW |