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

Side by Side Diff: src/interpreter/interpreter-assembler.cc

Issue 1698273003: [es6] [interpreter] Add tail calls support to Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-turbo-2
Patch Set: Fixed Bytecodes::IsCallOrNew() Created 4 years, 10 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/interpreter/interpreter-assembler.h ('k') | src/mips/builtins-mips.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/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
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
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
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.h ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698