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

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

Issue 1576093004: [Interpreter] Add ForInPrepare runtime function which returns a ObjectTriple. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add MIPS port Created 4 years, 11 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.h ('k') | src/runtime/runtime-forin.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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.h" 5 #include "src/runtime/runtime.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/contexts.h" 8 #include "src/contexts.h"
9 #include "src/handles-inl.h" 9 #include "src/handles-inl.h"
10 #include "src/heap/heap.h" 10 #include "src/heap/heap.h"
11 #include "src/isolate.h" 11 #include "src/isolate.h"
12 #include "src/runtime/runtime-utils.h" 12 #include "src/runtime/runtime-utils.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 // Header of runtime functions. 17 // Header of runtime functions.
18 #define F(name, number_of_args, result_size) \ 18 #define F(name, number_of_args, result_size) \
19 Object* Runtime_##name(int args_length, Object** args_object, \ 19 Object* Runtime_##name(int args_length, Object** args_object, \
20 Isolate* isolate); 20 Isolate* isolate);
21 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) 21 FOR_EACH_INTRINSIC_RETURN_OBJECT(F)
22 #undef F 22 #undef F
23 23
24 #define P(name, number_of_args, result_size) \ 24 #define P(name, number_of_args, result_size) \
25 ObjectPair Runtime_##name(int args_length, Object** args_object, \ 25 ObjectPair Runtime_##name(int args_length, Object** args_object, \
26 Isolate* isolate); 26 Isolate* isolate);
27 FOR_EACH_INTRINSIC_RETURN_PAIR(P) 27 FOR_EACH_INTRINSIC_RETURN_PAIR(P)
28 #undef P 28 #undef P
29 29
30 #define T(name, number_of_args, result_size) \
31 ObjectTriple Runtime_##name(int args_length, Object** args_object, \
32 Isolate* isolate);
33 FOR_EACH_INTRINSIC_RETURN_TRIPLE(T)
34 #undef T
35
30 36
31 #define F(name, number_of_args, result_size) \ 37 #define F(name, number_of_args, result_size) \
32 { \ 38 { \
33 Runtime::k##name, Runtime::RUNTIME, #name, FUNCTION_ADDR(Runtime_##name), \ 39 Runtime::k##name, Runtime::RUNTIME, #name, FUNCTION_ADDR(Runtime_##name), \
34 number_of_args, result_size \ 40 number_of_args, result_size \
35 } \ 41 } \
36 , 42 ,
37 43
38 44
39 #define I(name, number_of_args, result_size) \ 45 #define I(name, number_of_args, result_size) \
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 125 }
120 } 126 }
121 127
122 128
123 std::ostream& operator<<(std::ostream& os, Runtime::FunctionId id) { 129 std::ostream& operator<<(std::ostream& os, Runtime::FunctionId id) {
124 return os << Runtime::FunctionForId(id)->name; 130 return os << Runtime::FunctionForId(id)->name;
125 } 131 }
126 132
127 } // namespace internal 133 } // namespace internal
128 } // namespace v8 134 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-forin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698