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

Side by Side Diff: src/bootstrapper.cc

Issue 2313393005: [builtins] Move StringLocaleCompare to a builtin. (Closed)
Patch Set: Change dcheck to dcheck_eq Created 4 years, 3 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 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 1388
1389 // Install the "constructor" property on the {prototype}. 1389 // Install the "constructor" property on the {prototype}.
1390 JSObject::AddProperty(prototype, factory->constructor_string(), string_fun, 1390 JSObject::AddProperty(prototype, factory->constructor_string(), string_fun,
1391 DONT_ENUM); 1391 DONT_ENUM);
1392 1392
1393 // Install the String.prototype methods. 1393 // Install the String.prototype methods.
1394 SimpleInstallFunction(prototype, "charAt", Builtins::kStringPrototypeCharAt, 1394 SimpleInstallFunction(prototype, "charAt", Builtins::kStringPrototypeCharAt,
1395 1, true); 1395 1, true);
1396 SimpleInstallFunction(prototype, "charCodeAt", 1396 SimpleInstallFunction(prototype, "charCodeAt",
1397 Builtins::kStringPrototypeCharCodeAt, 1, true); 1397 Builtins::kStringPrototypeCharCodeAt, 1, true);
1398 SimpleInstallFunction(prototype, "localeCompare",
1399 Builtins::kStringPrototypeLocaleCompare, 1, true);
1398 SimpleInstallFunction(prototype, "normalize", 1400 SimpleInstallFunction(prototype, "normalize",
1399 Builtins::kStringPrototypeNormalize, 0, false); 1401 Builtins::kStringPrototypeNormalize, 0, false);
1400 SimpleInstallFunction(prototype, "toString", 1402 SimpleInstallFunction(prototype, "toString",
1401 Builtins::kStringPrototypeToString, 0, true); 1403 Builtins::kStringPrototypeToString, 0, true);
1402 SimpleInstallFunction(prototype, "trim", Builtins::kStringPrototypeTrim, 0, 1404 SimpleInstallFunction(prototype, "trim", Builtins::kStringPrototypeTrim, 0,
1403 false); 1405 false);
1404 SimpleInstallFunction(prototype, "trimLeft", 1406 SimpleInstallFunction(prototype, "trimLeft",
1405 Builtins::kStringPrototypeTrimLeft, 0, false); 1407 Builtins::kStringPrototypeTrimLeft, 0, false);
1406 SimpleInstallFunction(prototype, "trimRight", 1408 SimpleInstallFunction(prototype, "trimRight",
1407 Builtins::kStringPrototypeTrimRight, 0, false); 1409 Builtins::kStringPrototypeTrimRight, 0, false);
(...skipping 2747 matching lines...) Expand 10 before | Expand all | Expand 10 after
4155 } 4157 }
4156 4158
4157 4159
4158 // Called when the top-level V8 mutex is destroyed. 4160 // Called when the top-level V8 mutex is destroyed.
4159 void Bootstrapper::FreeThreadResources() { 4161 void Bootstrapper::FreeThreadResources() {
4160 DCHECK(!IsActive()); 4162 DCHECK(!IsActive());
4161 } 4163 }
4162 4164
4163 } // namespace internal 4165 } // namespace internal
4164 } // namespace v8 4166 } // 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