| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 89 } |
| 90 | 90 |
| 91 | 91 |
| 92 Handle<String> Factory::NewStringFromTwoByte(Vector<const uc16> string, | 92 Handle<String> Factory::NewStringFromTwoByte(Vector<const uc16> string, |
| 93 PretenureFlag pretenure) { | 93 PretenureFlag pretenure) { |
| 94 CALL_HEAP_FUNCTION(Heap::AllocateStringFromTwoByte(string, pretenure), | 94 CALL_HEAP_FUNCTION(Heap::AllocateStringFromTwoByte(string, pretenure), |
| 95 String); | 95 String); |
| 96 } | 96 } |
| 97 | 97 |
| 98 | 98 |
| 99 Handle<String> Factory::NewRawAsciiString(int length, |
| 100 PretenureFlag pretenure) { |
| 101 CALL_HEAP_FUNCTION(Heap::AllocateRawAsciiString(length, pretenure), String); |
| 102 } |
| 103 |
| 104 |
| 99 Handle<String> Factory::NewRawTwoByteString(int length, | 105 Handle<String> Factory::NewRawTwoByteString(int length, |
| 100 PretenureFlag pretenure) { | 106 PretenureFlag pretenure) { |
| 101 CALL_HEAP_FUNCTION(Heap::AllocateRawTwoByteString(length, pretenure), String); | 107 CALL_HEAP_FUNCTION(Heap::AllocateRawTwoByteString(length, pretenure), String); |
| 102 } | 108 } |
| 103 | 109 |
| 104 | 110 |
| 105 Handle<String> Factory::NewConsString(Handle<String> first, | 111 Handle<String> Factory::NewConsString(Handle<String> first, |
| 106 Handle<String> second) { | 112 Handle<String> second) { |
| 107 CALL_HEAP_FUNCTION(Heap::AllocateConsString(*first, *second), String); | 113 CALL_HEAP_FUNCTION(Heap::AllocateConsString(*first, *second), String); |
| 108 } | 114 } |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 Execution::ConfigureInstance(instance, | 989 Execution::ConfigureInstance(instance, |
| 984 instance_template, | 990 instance_template, |
| 985 pending_exception); | 991 pending_exception); |
| 986 } else { | 992 } else { |
| 987 *pending_exception = false; | 993 *pending_exception = false; |
| 988 } | 994 } |
| 989 } | 995 } |
| 990 | 996 |
| 991 | 997 |
| 992 } } // namespace v8::internal | 998 } } // namespace v8::internal |
| OLD | NEW |