Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2907)

Side by Side Diff: src/runtime/runtime-forin.cc

Issue 1293053004: Remove grab-bag includes of v8.h from runtime entries. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime-debug.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/runtime/runtime-debug.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698