| 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/messages.h" | 10 #include "src/messages.h" |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 | 544 |
| 545 MaybeHandle<Object> Execution::ToDetailString( | 545 MaybeHandle<Object> Execution::ToDetailString( |
| 546 Isolate* isolate, Handle<Object> obj) { | 546 Isolate* isolate, Handle<Object> obj) { |
| 547 RETURN_NATIVE_CALL(to_detail_string, { obj }); | 547 RETURN_NATIVE_CALL(to_detail_string, { obj }); |
| 548 } | 548 } |
| 549 | 549 |
| 550 | 550 |
| 551 MaybeHandle<Object> Execution::ToObject( | 551 MaybeHandle<Object> Execution::ToObject( |
| 552 Isolate* isolate, Handle<Object> obj) { | 552 Isolate* isolate, Handle<Object> obj) { |
| 553 if (obj->IsSpecObject()) return obj; | 553 if (obj->IsSpecObject()) return obj; |
| 554 // TODO(verwaest): Use Object::ToObject but throw an exception on failure. |
| 554 RETURN_NATIVE_CALL(to_object, { obj }); | 555 RETURN_NATIVE_CALL(to_object, { obj }); |
| 555 } | 556 } |
| 556 | 557 |
| 557 | 558 |
| 558 MaybeHandle<Object> Execution::ToInteger( | 559 MaybeHandle<Object> Execution::ToInteger( |
| 559 Isolate* isolate, Handle<Object> obj) { | 560 Isolate* isolate, Handle<Object> obj) { |
| 560 RETURN_NATIVE_CALL(to_integer, { obj }); | 561 RETURN_NATIVE_CALL(to_integer, { obj }); |
| 561 } | 562 } |
| 562 | 563 |
| 563 | 564 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 | 659 |
| 659 isolate_->counters()->stack_interrupts()->Increment(); | 660 isolate_->counters()->stack_interrupts()->Increment(); |
| 660 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 661 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
| 661 isolate_->runtime_profiler()->OptimizeNow(); | 662 isolate_->runtime_profiler()->OptimizeNow(); |
| 662 | 663 |
| 663 return isolate_->heap()->undefined_value(); | 664 return isolate_->heap()->undefined_value(); |
| 664 } | 665 } |
| 665 | 666 |
| 666 } // namespace internal | 667 } // namespace internal |
| 667 } // namespace v8 | 668 } // namespace v8 |
| OLD | NEW |