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

Side by Side Diff: src/bootstrapper.cc

Issue 2373493002: [stubs] Port String.prototype.substr to TurboFan (Closed)
Patch Set: Additional tests Created 4 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 | « no previous file | src/builtins/builtins.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after
1397 SimpleInstallFunction(prototype, "charAt", Builtins::kStringPrototypeCharAt, 1397 SimpleInstallFunction(prototype, "charAt", Builtins::kStringPrototypeCharAt,
1398 1, true); 1398 1, true);
1399 SimpleInstallFunction(prototype, "charCodeAt", 1399 SimpleInstallFunction(prototype, "charCodeAt",
1400 Builtins::kStringPrototypeCharCodeAt, 1, true); 1400 Builtins::kStringPrototypeCharCodeAt, 1, true);
1401 SimpleInstallFunction(prototype, "lastIndexOf", 1401 SimpleInstallFunction(prototype, "lastIndexOf",
1402 Builtins::kStringPrototypeLastIndexOf, 1, false); 1402 Builtins::kStringPrototypeLastIndexOf, 1, false);
1403 SimpleInstallFunction(prototype, "localeCompare", 1403 SimpleInstallFunction(prototype, "localeCompare",
1404 Builtins::kStringPrototypeLocaleCompare, 1, true); 1404 Builtins::kStringPrototypeLocaleCompare, 1, true);
1405 SimpleInstallFunction(prototype, "normalize", 1405 SimpleInstallFunction(prototype, "normalize",
1406 Builtins::kStringPrototypeNormalize, 0, false); 1406 Builtins::kStringPrototypeNormalize, 0, false);
1407 SimpleInstallFunction(prototype, "substr", Builtins::kStringPrototypeSubstr,
1408 2, true);
1407 SimpleInstallFunction(prototype, "substring", 1409 SimpleInstallFunction(prototype, "substring",
1408 Builtins::kStringPrototypeSubstring, 2, true); 1410 Builtins::kStringPrototypeSubstring, 2, true);
1409 SimpleInstallFunction(prototype, "toString", 1411 SimpleInstallFunction(prototype, "toString",
1410 Builtins::kStringPrototypeToString, 0, true); 1412 Builtins::kStringPrototypeToString, 0, true);
1411 SimpleInstallFunction(prototype, "trim", Builtins::kStringPrototypeTrim, 0, 1413 SimpleInstallFunction(prototype, "trim", Builtins::kStringPrototypeTrim, 0,
1412 false); 1414 false);
1413 SimpleInstallFunction(prototype, "trimLeft", 1415 SimpleInstallFunction(prototype, "trimLeft",
1414 Builtins::kStringPrototypeTrimLeft, 0, false); 1416 Builtins::kStringPrototypeTrimLeft, 0, false);
1415 SimpleInstallFunction(prototype, "trimRight", 1417 SimpleInstallFunction(prototype, "trimRight",
1416 Builtins::kStringPrototypeTrimRight, 0, false); 1418 Builtins::kStringPrototypeTrimRight, 0, false);
(...skipping 2768 matching lines...) Expand 10 before | Expand all | Expand 10 after
4185 } 4187 }
4186 4188
4187 4189
4188 // Called when the top-level V8 mutex is destroyed. 4190 // Called when the top-level V8 mutex is destroyed.
4189 void Bootstrapper::FreeThreadResources() { 4191 void Bootstrapper::FreeThreadResources() {
4190 DCHECK(!IsActive()); 4192 DCHECK(!IsActive());
4191 } 4193 }
4192 4194
4193 } // namespace internal 4195 } // namespace internal
4194 } // namespace v8 4196 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698