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

Side by Side Diff: src/factory.h

Issue 11597007: Rename LookupSymbol calls to use Utf8 or OneByte in names. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/debug.cc ('k') | src/factory.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 int deopt_entry_count, 72 int deopt_entry_count,
73 PretenureFlag pretenure); 73 PretenureFlag pretenure);
74 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData( 74 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData(
75 int deopt_entry_count, 75 int deopt_entry_count,
76 PretenureFlag pretenure); 76 PretenureFlag pretenure);
77 // Allocates a pre-tenured empty AccessorPair. 77 // Allocates a pre-tenured empty AccessorPair.
78 Handle<AccessorPair> NewAccessorPair(); 78 Handle<AccessorPair> NewAccessorPair();
79 79
80 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo(); 80 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo();
81 81
82 Handle<String> LookupSymbol(Vector<const char> str); 82 Handle<String> LookupUtf8Symbol(Vector<const char> str);
83 Handle<String> LookupUtf8Symbol(const char* str) {
84 return LookupUtf8Symbol(CStrVector(str));
85 }
83 Handle<String> LookupSymbol(Handle<String> str); 86 Handle<String> LookupSymbol(Handle<String> str);
84 Handle<String> LookupAsciiSymbol(Vector<const char> str); 87 Handle<String> LookupOneByteSymbol(Vector<const char> str);
85 Handle<String> LookupAsciiSymbol(Handle<SeqOneByteString>, 88 Handle<String> LookupOneByteSymbol(Handle<SeqOneByteString>,
86 int from, 89 int from,
87 int length); 90 int length);
88 Handle<String> LookupTwoByteSymbol(Vector<const uc16> str); 91 Handle<String> LookupTwoByteSymbol(Vector<const uc16> str);
89 Handle<String> LookupAsciiSymbol(const char* str) {
90 return LookupSymbol(CStrVector(str));
91 }
92 92
93 93
94 // String creation functions. Most of the string creation functions take 94 // String creation functions. Most of the string creation functions take
95 // a Heap::PretenureFlag argument to optionally request that they be 95 // a Heap::PretenureFlag argument to optionally request that they be
96 // allocated in the old generation. The pretenure flag defaults to 96 // allocated in the old generation. The pretenure flag defaults to
97 // DONT_TENURE. 97 // DONT_TENURE.
98 // 98 //
99 // Creates a new String object. There are two String encodings: ASCII and 99 // Creates a new String object. There are two String encodings: ASCII and
100 // two byte. One should choose between the three string factory functions 100 // two byte. One should choose between the three string factory functions
101 // based on the encoding of the string buffer that the string is 101 // based on the encoding of the string buffer that the string is
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 // Update the map cache in the native context with (keys, map) 512 // Update the map cache in the native context with (keys, map)
513 Handle<MapCache> AddToMapCache(Handle<Context> context, 513 Handle<MapCache> AddToMapCache(Handle<Context> context,
514 Handle<FixedArray> keys, 514 Handle<FixedArray> keys,
515 Handle<Map> map); 515 Handle<Map> map);
516 }; 516 };
517 517
518 518
519 } } // namespace v8::internal 519 } } // namespace v8::internal
520 520
521 #endif // V8_FACTORY_H_ 521 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698