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

Side by Side Diff: src/objects.h

Issue 387343002: Fix up internalized strings after deserializing user code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove TODO Created 6 years, 5 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/objects.cc » ('j') | test/cctest/test-serialize.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 9316 matching lines...) Expand 10 before | Expand all | Expand 10 after
9327 template<class Visitor> 9327 template<class Visitor>
9328 static inline ConsString* VisitFlat(Visitor* visitor, 9328 static inline ConsString* VisitFlat(Visitor* visitor,
9329 String* string, 9329 String* string,
9330 int offset = 0); 9330 int offset = 0);
9331 9331
9332 static Handle<FixedArray> CalculateLineEnds(Handle<String> string, 9332 static Handle<FixedArray> CalculateLineEnds(Handle<String> string,
9333 bool include_ending_line); 9333 bool include_ending_line);
9334 9334
9335 private: 9335 private:
9336 friend class Name; 9336 friend class Name;
9337 friend class StringTableInsertionKey;
9337 9338
9338 static Handle<String> SlowFlatten(Handle<ConsString> cons, 9339 static Handle<String> SlowFlatten(Handle<ConsString> cons,
9339 PretenureFlag tenure); 9340 PretenureFlag tenure);
9340 9341
9341 // Slow case of String::Equals. This implementation works on any strings 9342 // Slow case of String::Equals. This implementation works on any strings
9342 // but it is most efficient on strings that are almost flat. 9343 // but it is most efficient on strings that are almost flat.
9343 bool SlowEquals(String* other); 9344 bool SlowEquals(String* other);
9344 9345
9345 static bool SlowEquals(Handle<String> one, Handle<String> two); 9346 static bool SlowEquals(Handle<String> one, Handle<String> two);
9346 9347
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after
11229 } else { 11230 } else {
11230 value &= ~(1 << bit_position); 11231 value &= ~(1 << bit_position);
11231 } 11232 }
11232 return value; 11233 return value;
11233 } 11234 }
11234 }; 11235 };
11235 11236
11236 } } // namespace v8::internal 11237 } } // namespace v8::internal
11237 11238
11238 #endif // V8_OBJECTS_H_ 11239 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | test/cctest/test-serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698