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

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

Issue 1969423002: [Interpreter] Remove InterpreterExitTrampoline and replace with returning to the entry trampoline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 4 years, 7 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/bytecodes.cc ('k') | src/interpreter/interpreter-assembler.h » ('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.h" 5 #include "src/interpreter/interpreter.h"
6 6
7 #include <fstream> 7 #include <fstream>
8 8
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 __ CallRuntime(Runtime::kReThrow, context, exception); 1623 __ CallRuntime(Runtime::kReThrow, context, exception);
1624 // We shouldn't ever return from a throw. 1624 // We shouldn't ever return from a throw.
1625 __ Abort(kUnexpectedReturnFromThrow); 1625 __ Abort(kUnexpectedReturnFromThrow);
1626 } 1626 }
1627 1627
1628 1628
1629 // Return 1629 // Return
1630 // 1630 //
1631 // Return the value in the accumulator. 1631 // Return the value in the accumulator.
1632 void Interpreter::DoReturn(InterpreterAssembler* assembler) { 1632 void Interpreter::DoReturn(InterpreterAssembler* assembler) {
1633 __ InterpreterReturn(); 1633 __ UpdateInterruptBudgetOnReturn();
1634 Node* accumulator = __ GetAccumulator();
1635 __ Return(accumulator);
1634 } 1636 }
1635 1637
1636 // Debugger 1638 // Debugger
1637 // 1639 //
1638 // Call runtime to handle debugger statement. 1640 // Call runtime to handle debugger statement.
1639 void Interpreter::DoDebugger(InterpreterAssembler* assembler) { 1641 void Interpreter::DoDebugger(InterpreterAssembler* assembler) {
1640 Node* context = __ GetContext(); 1642 Node* context = __ GetContext();
1641 __ CallRuntime(Runtime::kHandleDebuggerStatement, context); 1643 __ CallRuntime(Runtime::kHandleDebuggerStatement, context);
1642 __ Dispatch(); 1644 __ Dispatch();
1643 } 1645 }
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1827 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, 1829 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset,
1828 __ SmiTag(new_state)); 1830 __ SmiTag(new_state));
1829 __ SetAccumulator(old_state); 1831 __ SetAccumulator(old_state);
1830 1832
1831 __ Dispatch(); 1833 __ Dispatch();
1832 } 1834 }
1833 1835
1834 } // namespace interpreter 1836 } // namespace interpreter
1835 } // namespace internal 1837 } // namespace internal
1836 } // namespace v8 1838 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecodes.cc ('k') | src/interpreter/interpreter-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698