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

Side by Side Diff: src/runtime/runtime-utils.h

Issue 2533983006: Optimize case conversion with icu_case_mapping (Closed)
Patch Set: update comments with TODO Created 4 years 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
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 #ifndef V8_RUNTIME_RUNTIME_UTILS_H_ 5 #ifndef V8_RUNTIME_RUNTIME_UTILS_H_
6 #define V8_RUNTIME_RUNTIME_UTILS_H_ 6 #define V8_RUNTIME_RUNTIME_UTILS_H_
7 7
8 #include "src/base/logging.h" 8 #include "src/base/logging.h"
9 #include "src/globals.h"
9 #include "src/runtime/runtime.h" 10 #include "src/runtime/runtime.h"
10 11
11 namespace v8 { 12 namespace v8 {
12 namespace internal { 13 namespace internal {
13 14
14 // Cast the given object to a value of the specified type and store 15 // Cast the given object to a value of the specified type and store
15 // it in a variable with the given name. If the object is not of the 16 // it in a variable with the given name. If the object is not of the
16 // expected type we crash safely. 17 // expected type we crash safely.
17 #define CONVERT_ARG_CHECKED(Type, name, index) \ 18 #define CONVERT_ARG_CHECKED(Type, name, index) \
18 CHECK(args[index]->Is##Type()); \ 19 CHECK(args[index]->Is##Type()); \
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 static inline ObjectTriple MakeTriple(Object* x, Object* y, Object* z) { 165 static inline ObjectTriple MakeTriple(Object* x, Object* y, Object* z) {
165 ObjectTriple result = {x, y, z}; 166 ObjectTriple result = {x, y, z};
166 // ObjectTriple is assigned to a hidden first argument. 167 // ObjectTriple is assigned to a hidden first argument.
167 return result; 168 return result;
168 } 169 }
169 170
170 } // namespace internal 171 } // namespace internal
171 } // namespace v8 172 } // namespace v8
172 173
173 #endif // V8_RUNTIME_RUNTIME_UTILS_H_ 174 #endif // V8_RUNTIME_RUNTIME_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698