| 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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 // allocate extra space for a literals array prefix containing the | 839 // allocate extra space for a literals array prefix containing the |
| 840 // context. | 840 // context. |
| 841 if (number_of_literals > 0) { | 841 if (number_of_literals > 0) { |
| 842 literals_array_size += JSFunction::kLiteralsPrefixSize; | 842 literals_array_size += JSFunction::kLiteralsPrefixSize; |
| 843 } | 843 } |
| 844 shared->set_num_literals(literals_array_size); | 844 shared->set_num_literals(literals_array_size); |
| 845 return shared; | 845 return shared; |
| 846 } | 846 } |
| 847 | 847 |
| 848 | 848 |
| 849 Handle<JSMessageObject> Factory::NewJSMessageObject( |
| 850 Handle<String> type, |
| 851 Handle<JSArray> arguments, |
| 852 int start_position, |
| 853 int end_position, |
| 854 Handle<Object> script, |
| 855 Handle<Object> stack_trace, |
| 856 Handle<Object> stack_frames) { |
| 857 CALL_HEAP_FUNCTION(isolate(), |
| 858 isolate()->heap()->AllocateJSMessageObject(*type, |
| 859 *arguments, |
| 860 start_position, |
| 861 end_position, |
| 862 *script, |
| 863 *stack_trace, |
| 864 *stack_frames), |
| 865 JSMessageObject); |
| 866 } |
| 867 |
| 849 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { | 868 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { |
| 850 CALL_HEAP_FUNCTION(isolate(), | 869 CALL_HEAP_FUNCTION(isolate(), |
| 851 isolate()->heap()->AllocateSharedFunctionInfo(*name), | 870 isolate()->heap()->AllocateSharedFunctionInfo(*name), |
| 852 SharedFunctionInfo); | 871 SharedFunctionInfo); |
| 853 } | 872 } |
| 854 | 873 |
| 855 | 874 |
| 856 Handle<String> Factory::NumberToString(Handle<Object> number) { | 875 Handle<String> Factory::NumberToString(Handle<Object> number) { |
| 857 CALL_HEAP_FUNCTION(isolate(), | 876 CALL_HEAP_FUNCTION(isolate(), |
| 858 isolate()->heap()->NumberToString(*number), String); | 877 isolate()->heap()->NumberToString(*number), String); |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 Execution::ConfigureInstance(instance, | 1176 Execution::ConfigureInstance(instance, |
| 1158 instance_template, | 1177 instance_template, |
| 1159 pending_exception); | 1178 pending_exception); |
| 1160 } else { | 1179 } else { |
| 1161 *pending_exception = false; | 1180 *pending_exception = false; |
| 1162 } | 1181 } |
| 1163 } | 1182 } |
| 1164 | 1183 |
| 1165 | 1184 |
| 1166 } } // namespace v8::internal | 1185 } } // namespace v8::internal |
| OLD | NEW |