| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/execution.h" | 5 #include "src/execution.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 RETURN_NATIVE_CALL(to_uint32, { obj }); | 538 RETURN_NATIVE_CALL(to_uint32, { obj }); |
| 539 } | 539 } |
| 540 | 540 |
| 541 | 541 |
| 542 MaybeHandle<Object> Execution::ToInt32( | 542 MaybeHandle<Object> Execution::ToInt32( |
| 543 Isolate* isolate, Handle<Object> obj) { | 543 Isolate* isolate, Handle<Object> obj) { |
| 544 RETURN_NATIVE_CALL(to_int32, { obj }); | 544 RETURN_NATIVE_CALL(to_int32, { obj }); |
| 545 } | 545 } |
| 546 | 546 |
| 547 | 547 |
| 548 MaybeHandle<Object> Execution::ToLength( |
| 549 Isolate* isolate, Handle<Object> obj) { |
| 550 RETURN_NATIVE_CALL(to_length, { obj }); |
| 551 } |
| 552 |
| 553 |
| 548 MaybeHandle<Object> Execution::NewDate(Isolate* isolate, double time) { | 554 MaybeHandle<Object> Execution::NewDate(Isolate* isolate, double time) { |
| 549 Handle<Object> time_obj = isolate->factory()->NewNumber(time); | 555 Handle<Object> time_obj = isolate->factory()->NewNumber(time); |
| 550 RETURN_NATIVE_CALL(create_date, { time_obj }); | 556 RETURN_NATIVE_CALL(create_date, { time_obj }); |
| 551 } | 557 } |
| 552 | 558 |
| 553 | 559 |
| 554 #undef RETURN_NATIVE_CALL | 560 #undef RETURN_NATIVE_CALL |
| 555 | 561 |
| 556 | 562 |
| 557 MaybeHandle<JSRegExp> Execution::NewJSRegExp(Handle<String> pattern, | 563 MaybeHandle<JSRegExp> Execution::NewJSRegExp(Handle<String> pattern, |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 } | 718 } |
| 713 | 719 |
| 714 isolate_->counters()->stack_interrupts()->Increment(); | 720 isolate_->counters()->stack_interrupts()->Increment(); |
| 715 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 721 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
| 716 isolate_->runtime_profiler()->OptimizeNow(); | 722 isolate_->runtime_profiler()->OptimizeNow(); |
| 717 | 723 |
| 718 return isolate_->heap()->undefined_value(); | 724 return isolate_->heap()->undefined_value(); |
| 719 } | 725 } |
| 720 | 726 |
| 721 } } // namespace v8::internal | 727 } } // namespace v8::internal |
| OLD | NEW |