OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 } | 104 } |
105 | 105 |
106 | 106 |
107 // Symbols are created in the old generation (data space). | 107 // Symbols are created in the old generation (data space). |
108 Handle<String> Factory::LookupSymbol(Vector<const char> string) { | 108 Handle<String> Factory::LookupSymbol(Vector<const char> string) { |
109 CALL_HEAP_FUNCTION(isolate(), | 109 CALL_HEAP_FUNCTION(isolate(), |
110 isolate()->heap()->LookupSymbol(string), | 110 isolate()->heap()->LookupSymbol(string), |
111 String); | 111 String); |
112 } | 112 } |
113 | 113 |
| 114 // Symbols are created in the old generation (data space). |
| 115 Handle<String> Factory::LookupSymbol(Handle<String> string) { |
| 116 CALL_HEAP_FUNCTION(isolate(), |
| 117 isolate()->heap()->LookupSymbol(*string), |
| 118 String); |
| 119 } |
| 120 |
114 Handle<String> Factory::LookupAsciiSymbol(Vector<const char> string) { | 121 Handle<String> Factory::LookupAsciiSymbol(Vector<const char> string) { |
115 CALL_HEAP_FUNCTION(isolate(), | 122 CALL_HEAP_FUNCTION(isolate(), |
116 isolate()->heap()->LookupAsciiSymbol(string), | 123 isolate()->heap()->LookupAsciiSymbol(string), |
117 String); | 124 String); |
118 } | 125 } |
119 | 126 |
| 127 |
| 128 Handle<String> Factory::LookupAsciiSymbol(Handle<SeqAsciiString> string, |
| 129 int from, |
| 130 int length) { |
| 131 CALL_HEAP_FUNCTION(isolate(), |
| 132 isolate()->heap()->LookupAsciiSymbol(string, |
| 133 from, |
| 134 length), |
| 135 String); |
| 136 } |
| 137 |
| 138 |
120 Handle<String> Factory::LookupTwoByteSymbol(Vector<const uc16> string) { | 139 Handle<String> Factory::LookupTwoByteSymbol(Vector<const uc16> string) { |
121 CALL_HEAP_FUNCTION(isolate(), | 140 CALL_HEAP_FUNCTION(isolate(), |
122 isolate()->heap()->LookupTwoByteSymbol(string), | 141 isolate()->heap()->LookupTwoByteSymbol(string), |
123 String); | 142 String); |
124 } | 143 } |
125 | 144 |
126 | 145 |
127 Handle<String> Factory::NewStringFromAscii(Vector<const char> string, | 146 Handle<String> Factory::NewStringFromAscii(Vector<const char> string, |
128 PretenureFlag pretenure) { | 147 PretenureFlag pretenure) { |
129 CALL_HEAP_FUNCTION( | 148 CALL_HEAP_FUNCTION( |
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 Execution::ConfigureInstance(instance, | 1213 Execution::ConfigureInstance(instance, |
1195 instance_template, | 1214 instance_template, |
1196 pending_exception); | 1215 pending_exception); |
1197 } else { | 1216 } else { |
1198 *pending_exception = false; | 1217 *pending_exception = false; |
1199 } | 1218 } |
1200 } | 1219 } |
1201 | 1220 |
1202 | 1221 |
1203 } } // namespace v8::internal | 1222 } } // namespace v8::internal |
OLD | NEW |