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

Side by Side Diff: src/bootstrapper.cc

Issue 2859203002: [string] Move String.p.toLowerCase to CSA (Closed)
Patch Set: Address comments Created 3 years, 7 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/assembler.cc ('k') | src/builtins/builtins-definitions.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 4066 matching lines...) Expand 10 before | Expand all | Expand 10 after
4077 JSReceiver::cast(native_context()->exports_container())); 4077 JSReceiver::cast(native_context()->exports_container()));
4078 4078
4079 Handle<JSObject> string_prototype( 4079 Handle<JSObject> string_prototype(
4080 JSObject::cast(native_context()->string_function()->prototype())); 4080 JSObject::cast(native_context()->string_function()->prototype()));
4081 4081
4082 { 4082 {
4083 Handle<String> name = factory()->InternalizeUtf8String("toLowerCase"); 4083 Handle<String> name = factory()->InternalizeUtf8String("toLowerCase");
4084 SetFunction(string_prototype, 4084 SetFunction(string_prototype,
4085 SimpleCreateFunction(isolate(), name, 4085 SimpleCreateFunction(isolate(), name,
4086 Builtins::kStringPrototypeToLowerCaseIntl, 4086 Builtins::kStringPrototypeToLowerCaseIntl,
4087 0, false), 4087 0, true),
4088 name); 4088 name);
4089 } 4089 }
4090 { 4090 {
4091 Handle<String> name = factory()->InternalizeUtf8String("toUpperCase"); 4091 Handle<String> name = factory()->InternalizeUtf8String("toUpperCase");
4092 SetFunction(string_prototype, 4092 SetFunction(string_prototype,
4093 SimpleCreateFunction(isolate(), name, 4093 SimpleCreateFunction(isolate(), name,
4094 Builtins::kStringPrototypeToUpperCaseIntl, 4094 Builtins::kStringPrototypeToUpperCaseIntl,
4095 0, false), 4095 0, false),
4096 name); 4096 name);
4097 } 4097 }
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
5281 } 5281 }
5282 5282
5283 5283
5284 // Called when the top-level V8 mutex is destroyed. 5284 // Called when the top-level V8 mutex is destroyed.
5285 void Bootstrapper::FreeThreadResources() { 5285 void Bootstrapper::FreeThreadResources() {
5286 DCHECK(!IsActive()); 5286 DCHECK(!IsActive());
5287 } 5287 }
5288 5288
5289 } // namespace internal 5289 } // namespace internal
5290 } // namespace v8 5290 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/builtins/builtins-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698