| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 return shared; | 1565 return shared; |
| 1566 } | 1566 } |
| 1567 | 1567 |
| 1568 | 1568 |
| 1569 Handle<JSMessageObject> Factory::NewJSMessageObject( | 1569 Handle<JSMessageObject> Factory::NewJSMessageObject( |
| 1570 Handle<String> type, | 1570 Handle<String> type, |
| 1571 Handle<JSArray> arguments, | 1571 Handle<JSArray> arguments, |
| 1572 int start_position, | 1572 int start_position, |
| 1573 int end_position, | 1573 int end_position, |
| 1574 Handle<Object> script, | 1574 Handle<Object> script, |
| 1575 Handle<Object> stack_trace, | |
| 1576 Handle<Object> stack_frames) { | 1575 Handle<Object> stack_frames) { |
| 1577 CALL_HEAP_FUNCTION(isolate(), | 1576 CALL_HEAP_FUNCTION(isolate(), |
| 1578 isolate()->heap()->AllocateJSMessageObject(*type, | 1577 isolate()->heap()->AllocateJSMessageObject(*type, |
| 1579 *arguments, | 1578 *arguments, |
| 1580 start_position, | 1579 start_position, |
| 1581 end_position, | 1580 end_position, |
| 1582 *script, | 1581 *script, |
| 1583 *stack_trace, | |
| 1584 *stack_frames), | 1582 *stack_frames), |
| 1585 JSMessageObject); | 1583 JSMessageObject); |
| 1586 } | 1584 } |
| 1587 | 1585 |
| 1588 | 1586 |
| 1589 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { | 1587 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { |
| 1590 CALL_HEAP_FUNCTION(isolate(), | 1588 CALL_HEAP_FUNCTION(isolate(), |
| 1591 isolate()->heap()->AllocateSharedFunctionInfo(*name), | 1589 isolate()->heap()->AllocateSharedFunctionInfo(*name), |
| 1592 SharedFunctionInfo); | 1590 SharedFunctionInfo); |
| 1593 } | 1591 } |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1996 return Handle<Object>::null(); | 1994 return Handle<Object>::null(); |
| 1997 } | 1995 } |
| 1998 | 1996 |
| 1999 | 1997 |
| 2000 Handle<Object> Factory::ToBoolean(bool value) { | 1998 Handle<Object> Factory::ToBoolean(bool value) { |
| 2001 return value ? true_value() : false_value(); | 1999 return value ? true_value() : false_value(); |
| 2002 } | 2000 } |
| 2003 | 2001 |
| 2004 | 2002 |
| 2005 } } // namespace v8::internal | 2003 } } // namespace v8::internal |
| OLD | NEW |