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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 pretenure), | 92 pretenure), |
93 DeoptimizationOutputData); | 93 DeoptimizationOutputData); |
94 } | 94 } |
95 | 95 |
96 | 96 |
97 // Symbols are created in the old generation (data space). | 97 // Symbols are created in the old generation (data space). |
98 Handle<String> Factory::LookupSymbol(Vector<const char> string) { | 98 Handle<String> Factory::LookupSymbol(Vector<const char> string) { |
99 CALL_HEAP_FUNCTION(Heap::LookupSymbol(string), String); | 99 CALL_HEAP_FUNCTION(Heap::LookupSymbol(string), String); |
100 } | 100 } |
101 | 101 |
| 102 Handle<String> Factory::LookupAsciiSymbol(Vector<const char> string) { |
| 103 CALL_HEAP_FUNCTION(Heap::LookupAsciiSymbol(string), String); |
| 104 } |
| 105 |
| 106 Handle<String> Factory::LookupTwoByteSymbol(Vector<const uc16> string) { |
| 107 CALL_HEAP_FUNCTION(Heap::LookupTwoByteSymbol(string), String); |
| 108 } |
| 109 |
102 | 110 |
103 Handle<String> Factory::NewStringFromAscii(Vector<const char> string, | 111 Handle<String> Factory::NewStringFromAscii(Vector<const char> string, |
104 PretenureFlag pretenure) { | 112 PretenureFlag pretenure) { |
105 CALL_HEAP_FUNCTION(Heap::AllocateStringFromAscii(string, pretenure), String); | 113 CALL_HEAP_FUNCTION(Heap::AllocateStringFromAscii(string, pretenure), String); |
106 } | 114 } |
107 | 115 |
108 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string, | 116 Handle<String> Factory::NewStringFromUtf8(Vector<const char> string, |
109 PretenureFlag pretenure) { | 117 PretenureFlag pretenure) { |
110 CALL_HEAP_FUNCTION(Heap::AllocateStringFromUtf8(string, pretenure), String); | 118 CALL_HEAP_FUNCTION(Heap::AllocateStringFromUtf8(string, pretenure), String); |
111 } | 119 } |
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 Execution::ConfigureInstance(instance, | 1053 Execution::ConfigureInstance(instance, |
1046 instance_template, | 1054 instance_template, |
1047 pending_exception); | 1055 pending_exception); |
1048 } else { | 1056 } else { |
1049 *pending_exception = false; | 1057 *pending_exception = false; |
1050 } | 1058 } |
1051 } | 1059 } |
1052 | 1060 |
1053 | 1061 |
1054 } } // namespace v8::internal | 1062 } } // namespace v8::internal |
OLD | NEW |