| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 "src/arguments.h" | 7 #include "src/arguments.h" |
| 6 #include "src/runtime/runtime-utils.h" | 8 #include "src/objects-inl.h" |
| 7 #include "src/v8.h" | |
| 8 | 9 |
| 9 namespace v8 { | 10 namespace v8 { |
| 10 namespace internal { | 11 namespace internal { |
| 11 | 12 |
| 12 RUNTIME_FUNCTION(Runtime_ForInDone) { | 13 RUNTIME_FUNCTION(Runtime_ForInDone) { |
| 13 SealHandleScope scope(isolate); | 14 SealHandleScope scope(isolate); |
| 14 DCHECK_EQ(2, args.length()); | 15 DCHECK_EQ(2, args.length()); |
| 15 CONVERT_SMI_ARG_CHECKED(index, 0); | 16 CONVERT_SMI_ARG_CHECKED(index, 0); |
| 16 CONVERT_SMI_ARG_CHECKED(length, 1); | 17 CONVERT_SMI_ARG_CHECKED(length, 1); |
| 17 DCHECK_LE(0, index); | 18 DCHECK_LE(0, index); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 SealHandleScope scope(isolate); | 67 SealHandleScope scope(isolate); |
| 67 DCHECK_EQ(1, args.length()); | 68 DCHECK_EQ(1, args.length()); |
| 68 CONVERT_SMI_ARG_CHECKED(index, 0); | 69 CONVERT_SMI_ARG_CHECKED(index, 0); |
| 69 DCHECK_LE(0, index); | 70 DCHECK_LE(0, index); |
| 70 DCHECK_LT(index, Smi::kMaxValue); | 71 DCHECK_LT(index, Smi::kMaxValue); |
| 71 return Smi::FromInt(index + 1); | 72 return Smi::FromInt(index + 1); |
| 72 } | 73 } |
| 73 | 74 |
| 74 } // namespace internal | 75 } // namespace internal |
| 75 } // namespace v8 | 76 } // namespace v8 |
| OLD | NEW |