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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 Handle<FixedArray> literals = | 307 Handle<FixedArray> literals = |
308 Factory::NewFixedArray(number_of_literals, pretenure); | 308 Factory::NewFixedArray(number_of_literals, pretenure); |
309 if (number_of_literals > 0) { | 309 if (number_of_literals > 0) { |
310 // Store the object, regexp and array functions in the literals | 310 // Store the object, regexp and array functions in the literals |
311 // array prefix. These functions will be used when creating | 311 // array prefix. These functions will be used when creating |
312 // object, regexp and array literals in this function. | 312 // object, regexp and array literals in this function. |
313 literals->set(JSFunction::kLiteralGlobalContextIndex, | 313 literals->set(JSFunction::kLiteralGlobalContextIndex, |
314 context->global_context()); | 314 context->global_context()); |
315 } | 315 } |
316 result->set_literals(*literals); | 316 result->set_literals(*literals); |
317 ASSERT(!result->IsBoilerplate()); | |
318 return result; | 317 return result; |
319 } | 318 } |
320 | 319 |
321 | 320 |
322 Handle<Object> Factory::NewNumber(double value, | 321 Handle<Object> Factory::NewNumber(double value, |
323 PretenureFlag pretenure) { | 322 PretenureFlag pretenure) { |
324 CALL_HEAP_FUNCTION(Heap::NumberFromDouble(value, pretenure), Object); | 323 CALL_HEAP_FUNCTION(Heap::NumberFromDouble(value, pretenure), Object); |
325 } | 324 } |
326 | 325 |
327 | 326 |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 Execution::ConfigureInstance(instance, | 944 Execution::ConfigureInstance(instance, |
946 instance_template, | 945 instance_template, |
947 pending_exception); | 946 pending_exception); |
948 } else { | 947 } else { |
949 *pending_exception = false; | 948 *pending_exception = false; |
950 } | 949 } |
951 } | 950 } |
952 | 951 |
953 | 952 |
954 } } // namespace v8::internal | 953 } } // namespace v8::internal |
OLD | NEW |