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

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

Issue 2636913002: [liveedit] reimplement frame restarting. (Closed)
Patch Set: rebase Created 3 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/interface-descriptors.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 #include <memory> 8 #include <memory>
9 9
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 3005 matching lines...) Expand 10 before | Expand all | Expand 10 after
3016 __ UpdateInterruptBudgetOnReturn(); 3016 __ UpdateInterruptBudgetOnReturn();
3017 Node* accumulator = __ GetAccumulator(); 3017 Node* accumulator = __ GetAccumulator();
3018 __ Return(accumulator); 3018 __ Return(accumulator);
3019 } 3019 }
3020 3020
3021 // Debugger 3021 // Debugger
3022 // 3022 //
3023 // Call runtime to handle debugger statement. 3023 // Call runtime to handle debugger statement.
3024 void Interpreter::DoDebugger(InterpreterAssembler* assembler) { 3024 void Interpreter::DoDebugger(InterpreterAssembler* assembler) {
3025 Node* context = __ GetContext(); 3025 Node* context = __ GetContext();
3026 __ CallRuntime(Runtime::kHandleDebuggerStatement, context); 3026 __ CallStub(CodeFactory::HandleDebuggerStatement(isolate_), context);
3027 __ Dispatch(); 3027 __ Dispatch();
3028 } 3028 }
3029 3029
3030 // DebugBreak 3030 // DebugBreak
3031 // 3031 //
3032 // Call runtime to handle a debug break. 3032 // Call runtime to handle a debug break.
3033 #define DEBUG_BREAK(Name, ...) \ 3033 #define DEBUG_BREAK(Name, ...) \
3034 void Interpreter::Do##Name(InterpreterAssembler* assembler) { \ 3034 void Interpreter::Do##Name(InterpreterAssembler* assembler) { \
3035 Node* context = __ GetContext(); \ 3035 Node* context = __ GetContext(); \
3036 Node* accumulator = __ GetAccumulator(); \ 3036 Node* accumulator = __ GetAccumulator(); \
3037 Node* original_handler = \ 3037 Node* original_handler = \
3038 __ CallRuntime(Runtime::kDebugBreakOnBytecode, context, accumulator); \ 3038 __ CallRuntime(Runtime::kDebugBreakOnBytecode, context, accumulator); \
3039 __ MaybeDropFrames(context); \
3039 __ DispatchToBytecodeHandler(original_handler); \ 3040 __ DispatchToBytecodeHandler(original_handler); \
3040 } 3041 }
3041 DEBUG_BREAK_BYTECODE_LIST(DEBUG_BREAK); 3042 DEBUG_BREAK_BYTECODE_LIST(DEBUG_BREAK);
3042 #undef DEBUG_BREAK 3043 #undef DEBUG_BREAK
3043 3044
3044 void Interpreter::BuildForInPrepareResult(Node* output_register, 3045 void Interpreter::BuildForInPrepareResult(Node* output_register,
3045 Node* cache_type, Node* cache_array, 3046 Node* cache_type, Node* cache_array,
3046 Node* cache_length, 3047 Node* cache_length,
3047 InterpreterAssembler* assembler) { 3048 InterpreterAssembler* assembler) {
3048 __ StoreRegister(cache_type, output_register); 3049 __ StoreRegister(cache_type, output_register);
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
3298 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, 3299 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset,
3299 __ SmiTag(new_state)); 3300 __ SmiTag(new_state));
3300 __ SetAccumulator(old_state); 3301 __ SetAccumulator(old_state);
3301 3302
3302 __ Dispatch(); 3303 __ Dispatch();
3303 } 3304 }
3304 3305
3305 } // namespace interpreter 3306 } // namespace interpreter
3306 } // namespace internal 3307 } // namespace internal
3307 } // namespace v8 3308 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.cc ('k') | src/interpreter/interpreter-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698