| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 RETURN_NATIVE_CALL(to_uint32, { obj }, exc); | 634 RETURN_NATIVE_CALL(to_uint32, { obj }, exc); |
| 635 } | 635 } |
| 636 | 636 |
| 637 | 637 |
| 638 Handle<Object> Execution::ToInt32(Handle<Object> obj, bool* exc) { | 638 Handle<Object> Execution::ToInt32(Handle<Object> obj, bool* exc) { |
| 639 RETURN_NATIVE_CALL(to_int32, { obj }, exc); | 639 RETURN_NATIVE_CALL(to_int32, { obj }, exc); |
| 640 } | 640 } |
| 641 | 641 |
| 642 | 642 |
| 643 Handle<Object> Execution::NewDate(double time, bool* exc) { | 643 Handle<Object> Execution::NewDate(double time, bool* exc) { |
| 644 Handle<Object> time_obj = FACTORY->NewNumber(time); | 644 Isolate* isolate = Isolate::Current(); |
| 645 Handle<Object> time_obj = isolate->factory()->NewNumber(time); |
| 645 RETURN_NATIVE_CALL(create_date, { time_obj }, exc); | 646 RETURN_NATIVE_CALL(create_date, { time_obj }, exc); |
| 646 } | 647 } |
| 647 | 648 |
| 648 | 649 |
| 649 #undef RETURN_NATIVE_CALL | 650 #undef RETURN_NATIVE_CALL |
| 650 | 651 |
| 651 | 652 |
| 652 Handle<JSRegExp> Execution::NewJSRegExp(Handle<String> pattern, | 653 Handle<JSRegExp> Execution::NewJSRegExp(Handle<String> pattern, |
| 653 Handle<String> flags, | 654 Handle<String> flags, |
| 654 bool* exc) { | 655 bool* exc) { |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 } | 922 } |
| 922 if (stack_guard->IsFullDeopt()) { | 923 if (stack_guard->IsFullDeopt()) { |
| 923 stack_guard->Continue(FULL_DEOPT); | 924 stack_guard->Continue(FULL_DEOPT); |
| 924 Deoptimizer::DeoptimizeAll(isolate); | 925 Deoptimizer::DeoptimizeAll(isolate); |
| 925 } | 926 } |
| 926 return isolate->heap()->undefined_value(); | 927 return isolate->heap()->undefined_value(); |
| 927 } | 928 } |
| 928 | 929 |
| 929 | 930 |
| 930 } } // namespace v8::internal | 931 } } // namespace v8::internal |
| OLD | NEW |