| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/frames-inl.h" | 8 #include "src/frames-inl.h" |
| 9 #include "src/runtime/runtime-utils.h" | 9 #include "src/runtime/runtime-utils.h" |
| 10 | 10 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 | 207 |
| 208 RUNTIME_FUNCTION(Runtime_FunctionIsGenerator) { | 208 RUNTIME_FUNCTION(Runtime_FunctionIsGenerator) { |
| 209 SealHandleScope shs(isolate); | 209 SealHandleScope shs(isolate); |
| 210 DCHECK(args.length() == 1); | 210 DCHECK(args.length() == 1); |
| 211 CONVERT_ARG_CHECKED(JSFunction, f, 0); | 211 CONVERT_ARG_CHECKED(JSFunction, f, 0); |
| 212 return isolate->heap()->ToBoolean(f->shared()->is_generator()); | 212 return isolate->heap()->ToBoolean(f->shared()->is_generator()); |
| 213 } | 213 } |
| 214 | 214 |
| 215 | 215 |
| 216 RUNTIME_FUNCTION(RuntimeReference_GeneratorNext) { | 216 RUNTIME_FUNCTION(Runtime_GeneratorNext) { |
| 217 UNREACHABLE(); // Optimization disabled in SetUpGenerators(). | 217 UNREACHABLE(); // Optimization disabled in SetUpGenerators(). |
| 218 return NULL; | 218 return NULL; |
| 219 } | 219 } |
| 220 | 220 |
| 221 | 221 |
| 222 RUNTIME_FUNCTION(RuntimeReference_GeneratorThrow) { | 222 RUNTIME_FUNCTION(Runtime_GeneratorThrow) { |
| 223 UNREACHABLE(); // Optimization disabled in SetUpGenerators(). | 223 UNREACHABLE(); // Optimization disabled in SetUpGenerators(). |
| 224 return NULL; | 224 return NULL; |
| 225 } | 225 } |
| 226 } | 226 } |
| 227 } // namespace v8::internal | 227 } // namespace v8::internal |
| OLD | NEW |