| 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/runtime/runtime-utils.h" |
| 6 |
| 5 #include <stdlib.h> | 7 #include <stdlib.h> |
| 6 #include <limits> | 8 #include <limits> |
| 7 | 9 |
| 8 #include "src/v8.h" | |
| 9 | |
| 10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
| 11 #include "src/debug/debug.h" | 11 #include "src/debug/debug.h" |
| 12 #include "src/frames-inl.h" | 12 #include "src/frames-inl.h" |
| 13 #include "src/messages.h" | 13 #include "src/messages.h" |
| 14 #include "src/runtime/runtime.h" | 14 #include "src/runtime/runtime.h" |
| 15 #include "src/runtime/runtime-utils.h" | |
| 16 | |
| 17 | 15 |
| 18 namespace v8 { | 16 namespace v8 { |
| 19 namespace internal { | 17 namespace internal { |
| 20 | 18 |
| 21 | 19 |
| 22 RUNTIME_FUNCTION(Runtime_ThrowNonMethodError) { | 20 RUNTIME_FUNCTION(Runtime_ThrowNonMethodError) { |
| 23 HandleScope scope(isolate); | 21 HandleScope scope(isolate); |
| 24 DCHECK(args.length() == 0); | 22 DCHECK(args.length() == 0); |
| 25 THROW_NEW_ERROR_RETURN_FAILURE( | 23 THROW_NEW_ERROR_RETURN_FAILURE( |
| 26 isolate, NewReferenceError(MessageTemplate::kNonMethod)); | 24 isolate, NewReferenceError(MessageTemplate::kNonMethod)); |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 Handle<Object> result; | 563 Handle<Object> result; |
| 566 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 564 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| 567 isolate, result, | 565 isolate, result, |
| 568 Execution::Call(isolate, reflect, isolate->factory()->undefined_value(), | 566 Execution::Call(isolate, reflect, isolate->factory()->undefined_value(), |
| 569 arraysize(argv), argv)); | 567 arraysize(argv), argv)); |
| 570 | 568 |
| 571 return *result; | 569 return *result; |
| 572 } | 570 } |
| 573 } // namespace internal | 571 } // namespace internal |
| 574 } // namespace v8 | 572 } // namespace v8 |
| OLD | NEW |