Chromium Code Reviews| 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" | 5 #include "src/runtime/runtime-utils.h" |
| 6 | 6 |
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/factory.h" | 8 #include "src/factory.h" |
| 9 #include "src/frames-inl.h" | 9 #include "src/frames-inl.h" |
| 10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 | 87 |
| 88 RUNTIME_FUNCTION(Runtime_GeneratorGetSourcePosition) { | 88 RUNTIME_FUNCTION(Runtime_GeneratorGetSourcePosition) { |
| 89 HandleScope scope(isolate); | 89 HandleScope scope(isolate); |
| 90 DCHECK_EQ(1, args.length()); | 90 DCHECK_EQ(1, args.length()); |
| 91 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); | 91 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); |
| 92 | 92 |
| 93 if (!generator->is_suspended()) return isolate->heap()->undefined_value(); | 93 if (!generator->is_suspended()) return isolate->heap()->undefined_value(); |
| 94 return Smi::FromInt(generator->source_position()); | 94 return Smi::FromInt(generator->source_position()); |
| 95 } | 95 } |
| 96 | 96 |
| 97 RUNTIME_FUNCTION(Runtime_AsyncGeneratorResolve) { | |
| 98 return isolate->heap()->undefined_value(); | |
|
caitp
2017/01/10 04:13:42
This function is nonsense. TODO(caitp): remove thi
| |
| 99 } | |
| 100 | |
| 97 } // namespace internal | 101 } // namespace internal |
| 98 } // namespace v8 | 102 } // namespace v8 |
| OLD | NEW |