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/compiler/interpreter-assembler.h" | 5 #include "src/compiler/interpreter-assembler.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 args[1] = arg2; | 309 args[1] = arg2; |
310 args[2] = arg3; | 310 args[2] = arg3; |
311 args[3] = arg4; | 311 args[3] = arg4; |
312 args[4] = arg5; | 312 args[4] = arg5; |
313 args[5] = ContextTaggedPointer(); | 313 args[5] = ContextTaggedPointer(); |
314 return CallIC(descriptor, target, args); | 314 return CallIC(descriptor, target, args); |
315 } | 315 } |
316 | 316 |
317 | 317 |
318 Node* InterpreterAssembler::CallRuntime(Runtime::FunctionId function_id, | 318 Node* InterpreterAssembler::CallRuntime(Runtime::FunctionId function_id, |
| 319 Node* arg1) { |
| 320 return raw_assembler_->CallRuntime1(function_id, arg1, |
| 321 ContextTaggedPointer()); |
| 322 } |
| 323 |
| 324 |
| 325 Node* InterpreterAssembler::CallRuntime(Runtime::FunctionId function_id, |
319 Node* arg1, Node* arg2) { | 326 Node* arg1, Node* arg2) { |
320 return raw_assembler_->CallRuntime2(function_id, arg1, arg2, | 327 return raw_assembler_->CallRuntime2(function_id, arg1, arg2, |
321 ContextTaggedPointer()); | 328 ContextTaggedPointer()); |
322 } | 329 } |
323 | 330 |
324 | 331 |
325 void InterpreterAssembler::Return() { | 332 void InterpreterAssembler::Return() { |
326 Node* exit_trampoline_code_object = | 333 Node* exit_trampoline_code_object = |
327 HeapConstant(isolate()->builtins()->InterpreterExitTrampoline()); | 334 HeapConstant(isolate()->builtins()->InterpreterExitTrampoline()); |
328 // If the order of the parameters you need to change the call signature below. | 335 // If the order of the parameters you need to change the call signature below. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 return raw_assembler_->schedule(); | 419 return raw_assembler_->schedule(); |
413 } | 420 } |
414 | 421 |
415 | 422 |
416 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } | 423 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } |
417 | 424 |
418 | 425 |
419 } // namespace interpreter | 426 } // namespace interpreter |
420 } // namespace internal | 427 } // namespace internal |
421 } // namespace v8 | 428 } // namespace v8 |
OLD | NEW |