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/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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 RUNTIME_FUNCTION(RuntimeReference_GeneratorNext) { | 216 RUNTIME_FUNCTION(RuntimeReference_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(RuntimeReference_GeneratorThrow) { |
| 223 UNREACHABLE(); // Optimization disabled in SetUpGenerators(). | 223 UNREACHABLE(); // Optimization disabled in SetUpGenerators(). |
| 224 return NULL; | 224 return NULL; |
| 225 } | 225 } |
| 226 | |
| 227 | |
| 228 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { | |
|
arv (Not doing code reviews)
2015/02/23 22:02:24
I wasn't sure if this was the best place to put th
| |
| 229 HandleScope scope(isolate); | |
| 230 DCHECK(args.length() == 1); | |
| 231 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); | |
| 232 | |
| 233 Handle<Object> error_args[] = {value}; | |
| 234 THROW_NEW_ERROR_RETURN_FAILURE( | |
| 235 isolate, NewTypeError("iterator_result_not_an_object", | |
| 236 HandleVector(error_args, arraysize(error_args)))); | |
| 237 } | |
| 226 } | 238 } |
| 227 } // namespace v8::internal | 239 } // namespace v8::internal |
| OLD | NEW |