Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/code-stubs.cc

Issue 1339053002: [crankshaft] Re-add fast-case for string add left/right. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Real fix for HStringAdd Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
327 } 333 }
328 UNREACHABLE(); 334 UNREACHABLE();
329 return os; 335 return os;
330 } 336 }
331 337
332 338
333 void StringAddStub::PrintBaseName(std::ostream& os) const { // NOLINT 339 void StringAddStub::PrintBaseName(std::ostream& os) const { // NOLINT
334 os << "StringAddStub_" << flags() << "_" << pretenure_flag(); 340 os << "StringAddStub_" << flags() << "_" << pretenure_flag();
335 } 341 }
336 342
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 1055
1050 if (type->Is(Type::UntaggedPointer())) { 1056 if (type->Is(Type::UntaggedPointer())) {
1051 return Representation::External(); 1057 return Representation::External();
1052 } 1058 }
1053 1059
1054 DCHECK(!type->Is(Type::Untagged())); 1060 DCHECK(!type->Is(Type::Untagged()));
1055 return Representation::Tagged(); 1061 return Representation::Tagged();
1056 } 1062 }
1057 } // namespace internal 1063 } // namespace internal
1058 } // namespace v8 1064 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698