OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 std::ostream& operator<<(std::ostream& os, const StringAddFlags& flags) { | 317 std::ostream& operator<<(std::ostream& os, const StringAddFlags& flags) { |
318 switch (flags) { | 318 switch (flags) { |
319 case STRING_ADD_CHECK_NONE: | 319 case STRING_ADD_CHECK_NONE: |
320 return os << "CheckNone"; | 320 return os << "CheckNone"; |
321 case STRING_ADD_CHECK_LEFT: | 321 case STRING_ADD_CHECK_LEFT: |
322 return os << "CheckLeft"; | 322 return os << "CheckLeft"; |
323 case STRING_ADD_CHECK_RIGHT: | 323 case STRING_ADD_CHECK_RIGHT: |
324 return os << "CheckRight"; | 324 return os << "CheckRight"; |
325 case STRING_ADD_CHECK_BOTH: | 325 case STRING_ADD_CHECK_BOTH: |
326 return os << "CheckBoth"; | 326 return os << "CheckBoth"; |
327 case STRING_ADD_CONVERT_LEFT: | |
328 return os << "ConvertLeft"; | |
329 case STRING_ADD_CONVERT_RIGHT: | |
330 return os << "ConvertRight"; | |
331 case STRING_ADD_CONVERT: | |
332 break; | |
333 } | 327 } |
334 UNREACHABLE(); | 328 UNREACHABLE(); |
335 return os; | 329 return os; |
336 } | 330 } |
337 | 331 |
338 | 332 |
339 void StringAddStub::PrintBaseName(std::ostream& os) const { // NOLINT | 333 void StringAddStub::PrintBaseName(std::ostream& os) const { // NOLINT |
340 os << "StringAddStub_" << flags() << "_" << pretenure_flag(); | 334 os << "StringAddStub_" << flags() << "_" << pretenure_flag(); |
341 } | 335 } |
342 | 336 |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 | 1050 |
1057 if (type->Is(Type::UntaggedPointer())) { | 1051 if (type->Is(Type::UntaggedPointer())) { |
1058 return Representation::External(); | 1052 return Representation::External(); |
1059 } | 1053 } |
1060 | 1054 |
1061 DCHECK(!type->Is(Type::Untagged())); | 1055 DCHECK(!type->Is(Type::Untagged())); |
1062 return Representation::Tagged(); | 1056 return Representation::Tagged(); |
1063 } | 1057 } |
1064 } // namespace internal | 1058 } // namespace internal |
1065 } // namespace v8 | 1059 } // namespace v8 |
OLD | NEW |