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 2169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2180 os << "<undefined>"; | 2180 os << "<undefined>"; |
2181 } else if (IsTheHole()) { | 2181 } else if (IsTheHole()) { |
2182 os << "<the hole>"; | 2182 os << "<the hole>"; |
2183 } else if (IsNull()) { | 2183 } else if (IsNull()) { |
2184 os << "<null>"; | 2184 os << "<null>"; |
2185 } else if (IsTrue()) { | 2185 } else if (IsTrue()) { |
2186 os << "<true>"; | 2186 os << "<true>"; |
2187 } else if (IsFalse()) { | 2187 } else if (IsFalse()) { |
2188 os << "<false>"; | 2188 os << "<false>"; |
2189 } else { | 2189 } else { |
2190 os << "<Odd Oddball>"; | 2190 os << "<Odd Oddball: "; |
| 2191 os << Oddball::cast(this)->to_string()->ToCString().get(); |
| 2192 os << ">"; |
2191 } | 2193 } |
2192 break; | 2194 break; |
2193 } | 2195 } |
2194 case SYMBOL_TYPE: { | 2196 case SYMBOL_TYPE: { |
2195 Symbol* symbol = Symbol::cast(this); | 2197 Symbol* symbol = Symbol::cast(this); |
2196 symbol->SymbolShortPrint(os); | 2198 symbol->SymbolShortPrint(os); |
2197 break; | 2199 break; |
2198 } | 2200 } |
2199 case HEAP_NUMBER_TYPE: { | 2201 case HEAP_NUMBER_TYPE: { |
2200 os << "<Number: "; | 2202 os << "<Number: "; |
(...skipping 17199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19400 if (cell->value() != *new_value) { | 19402 if (cell->value() != *new_value) { |
19401 cell->set_value(*new_value); | 19403 cell->set_value(*new_value); |
19402 Isolate* isolate = cell->GetIsolate(); | 19404 Isolate* isolate = cell->GetIsolate(); |
19403 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 19405 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
19404 isolate, DependentCode::kPropertyCellChangedGroup); | 19406 isolate, DependentCode::kPropertyCellChangedGroup); |
19405 } | 19407 } |
19406 } | 19408 } |
19407 | 19409 |
19408 } // namespace internal | 19410 } // namespace internal |
19409 } // namespace v8 | 19411 } // namespace v8 |
OLD | NEW |