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 << ">"; | |
2193 } | 2191 } |
2194 break; | 2192 break; |
2195 } | 2193 } |
2196 case SYMBOL_TYPE: { | 2194 case SYMBOL_TYPE: { |
2197 Symbol* symbol = Symbol::cast(this); | 2195 Symbol* symbol = Symbol::cast(this); |
2198 symbol->SymbolShortPrint(os); | 2196 symbol->SymbolShortPrint(os); |
2199 break; | 2197 break; |
2200 } | 2198 } |
2201 case HEAP_NUMBER_TYPE: { | 2199 case HEAP_NUMBER_TYPE: { |
2202 os << "<Number: "; | 2200 os << "<Number: "; |
(...skipping 17176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19379 if (cell->value() != *new_value) { | 19377 if (cell->value() != *new_value) { |
19380 cell->set_value(*new_value); | 19378 cell->set_value(*new_value); |
19381 Isolate* isolate = cell->GetIsolate(); | 19379 Isolate* isolate = cell->GetIsolate(); |
19382 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 19380 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
19383 isolate, DependentCode::kPropertyCellChangedGroup); | 19381 isolate, DependentCode::kPropertyCellChangedGroup); |
19384 } | 19382 } |
19385 } | 19383 } |
19386 | 19384 |
19387 } // namespace internal | 19385 } // namespace internal |
19388 } // namespace v8 | 19386 } // namespace v8 |
OLD | NEW |