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/handles.h

Issue 6991007: Don't flatten every time we call CharCodeAt Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/handles.cc » ('j') | src/objects.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
11 // with the distribution. 11 // with the distribution.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 Handle<Object> value, 178 Handle<Object> value,
179 PropertyDetails details); 179 PropertyDetails details);
180 180
181 // Flattens a string. 181 // Flattens a string.
182 void FlattenString(Handle<String> str); 182 void FlattenString(Handle<String> str);
183 183
184 // Flattens a string and returns the underlying external or sequential 184 // Flattens a string and returns the underlying external or sequential
185 // string. 185 // string.
186 Handle<String> FlattenGetString(Handle<String> str); 186 Handle<String> FlattenGetString(Handle<String> str);
187 187
188 // Gets a single character code from a string. May try to flatten the string.
189 uint16_t StringGetMayFlatten(Handle<String> str, int index);
190
188 Handle<Object> SetProperty(Handle<JSObject> object, 191 Handle<Object> SetProperty(Handle<JSObject> object,
189 Handle<String> key, 192 Handle<String> key,
190 Handle<Object> value, 193 Handle<Object> value,
191 PropertyAttributes attributes, 194 PropertyAttributes attributes,
192 StrictModeFlag strict_mode); 195 StrictModeFlag strict_mode);
193 196
194 Handle<Object> SetProperty(Handle<Object> object, 197 Handle<Object> SetProperty(Handle<Object> object,
195 Handle<Object> key, 198 Handle<Object> key,
196 Handle<Object> value, 199 Handle<Object> value,
197 PropertyAttributes attributes, 200 PropertyAttributes attributes,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 inline NoHandleAllocation(); 372 inline NoHandleAllocation();
370 inline ~NoHandleAllocation(); 373 inline ~NoHandleAllocation();
371 private: 374 private:
372 int level_; 375 int level_;
373 #endif 376 #endif
374 }; 377 };
375 378
376 } } // namespace v8::internal 379 } } // namespace v8::internal
377 380
378 #endif // V8_HANDLES_H_ 381 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « no previous file | src/handles.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698