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/interpreter/interpreter-assembler.h" | 5 #include "src/interpreter/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/frames.h" | 10 #include "src/frames.h" |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 kUnexpectedStackPointer); | 328 kUnexpectedStackPointer); |
329 } | 329 } |
330 | 330 |
331 // Restore bytecode array from stack frame in case the debugger has swapped us | 331 // Restore bytecode array from stack frame in case the debugger has swapped us |
332 // to the patched debugger bytecode array. | 332 // to the patched debugger bytecode array. |
333 bytecode_array_.Bind(LoadRegister( | 333 bytecode_array_.Bind(LoadRegister( |
334 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); | 334 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); |
335 } | 335 } |
336 | 336 |
337 Node* InterpreterAssembler::CallJS(Node* function, Node* context, | 337 Node* InterpreterAssembler::CallJS(Node* function, Node* context, |
338 Node* first_arg, Node* arg_count) { | 338 Node* first_arg, Node* arg_count, |
339 Callable callable = CodeFactory::InterpreterPushArgsAndCall(isolate()); | 339 TailCallMode tail_call_mode) { |
| 340 Callable callable = |
| 341 CodeFactory::InterpreterPushArgsAndCall(isolate(), tail_call_mode); |
340 Node* code_target = HeapConstant(callable.code()); | 342 Node* code_target = HeapConstant(callable.code()); |
341 return CallStub(callable.descriptor(), code_target, context, arg_count, | 343 return CallStub(callable.descriptor(), code_target, context, arg_count, |
342 first_arg, function); | 344 first_arg, function); |
343 } | 345 } |
344 | 346 |
345 Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context, | 347 Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context, |
346 Node* new_target, Node* first_arg, | 348 Node* new_target, Node* first_arg, |
347 Node* arg_count) { | 349 Node* arg_count) { |
348 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate()); | 350 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate()); |
349 Node* code_target = HeapConstant(callable.code()); | 351 Node* code_target = HeapConstant(callable.code()); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 | 494 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 |
493 return true; | 495 return true; |
494 #else | 496 #else |
495 #error "Unknown Architecture" | 497 #error "Unknown Architecture" |
496 #endif | 498 #endif |
497 } | 499 } |
498 | 500 |
499 } // namespace interpreter | 501 } // namespace interpreter |
500 } // namespace internal | 502 } // namespace internal |
501 } // namespace v8 | 503 } // namespace v8 |
OLD | NEW |