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

Side by Side Diff: src/interpreter/bytecode-array-builder.h

Issue 1362383002: [Interpreter] Add CallRuntime support to the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
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 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 int feedback_slot, 68 int feedback_slot,
69 LanguageMode language_mode); 69 LanguageMode language_mode);
70 70
71 // Call a JS function. The JSFunction or Callable to be called should be in 71 // Call a JS function. The JSFunction or Callable to be called should be in
72 // |callable|, the receiver should be in |receiver| and all subsequent 72 // |callable|, the receiver should be in |receiver| and all subsequent
73 // arguments should be in registers <receiver + 1> to 73 // arguments should be in registers <receiver + 1> to
74 // <receiver + 1 + arg_count>. 74 // <receiver + 1 + arg_count>.
75 BytecodeArrayBuilder& Call(Register callable, Register receiver, 75 BytecodeArrayBuilder& Call(Register callable, Register receiver,
76 size_t arg_count); 76 size_t arg_count);
77 77
78 // Call the runtime function with |function_id|. The first argument should be
79 // in |first_arg| and all subsequent arguments should be in registers \
80 // <first_arg + 1> to <first_arg + 1 + arg_count>.
81 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id,
82 Register first_arg, size_t arg_count);
83
78 // Operators (register == lhs, accumulator = rhs). 84 // Operators (register == lhs, accumulator = rhs).
79 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg); 85 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg);
80 86
81 // Tests. 87 // Tests.
82 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, 88 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg,
83 LanguageMode language_mode); 89 LanguageMode language_mode);
84 90
85 // Casts 91 // Casts
86 BytecodeArrayBuilder& CastAccumulatorToBoolean(); 92 BytecodeArrayBuilder& CastAccumulatorToBoolean();
87 93
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 216
211 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); 217 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope);
212 }; 218 };
213 219
214 220
215 } // namespace interpreter 221 } // namespace interpreter
216 } // namespace internal 222 } // namespace internal
217 } // namespace v8 223 } // namespace v8
218 224
219 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 225 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698