| 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 Handle<String> Factory::LookupAsciiSymbol(Vector<const char> string) { |
| 115 CALL_HEAP_FUNCTION(isolate(), |
| 116 isolate()->heap()->LookupAsciiSymbol(string), |
| 117 String); |
| 118 } |
| 119 |
| 120 Handle<String> Factory::LookupTwoByteSymbol(Vector<const uc16> string) { |
| 121 CALL_HEAP_FUNCTION(isolate(), |
| 122 isolate()->heap()->LookupTwoByteSymbol(string), |
| 123 String); |
| 124 } |
| 125 |
| 114 | 126 |
| 115 Handle<String> Factory::NewStringFromAscii(Vector<const char> string, | 127 Handle<String> Factory::NewStringFromAscii(Vector<const char> string, |
| 116 PretenureFlag pretenure) { | 128 PretenureFlag pretenure) { |
| 117 CALL_HEAP_FUNCTION( | 129 CALL_HEAP_FUNCTION( |
| 118 isolate(), | 130 isolate(), |
| 119 isolate()->heap()->AllocateStringFromAscii(string, pretenure), | 131 isolate()->heap()->AllocateStringFromAscii(string, pretenure), |
| 120 String); | 132 String); |
| 121 } | 133 } |
| 122 | 134 |
| 123 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string, | 135 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string, |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 Execution::ConfigureInstance(instance, | 1157 Execution::ConfigureInstance(instance, |
| 1146 instance_template, | 1158 instance_template, |
| 1147 pending_exception); | 1159 pending_exception); |
| 1148 } else { | 1160 } else { |
| 1149 *pending_exception = false; | 1161 *pending_exception = false; |
| 1150 } | 1162 } |
| 1151 } | 1163 } |
| 1152 | 1164 |
| 1153 | 1165 |
| 1154 } } // namespace v8::internal | 1166 } } // namespace v8::internal |
| OLD | NEW |