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

Side by Side Diff: src/debug/liveedit.cc

Issue 1467473002: Install ConstructNonConstructable as construct stub for non-constructables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years 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/compiler/js-typed-lowering.cc ('k') | src/factory.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/debug/liveedit.h" 5 #include "src/debug/liveedit.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/compilation-cache.h" 8 #include "src/compilation-cache.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 } 1139 }
1140 } 1140 }
1141 1141
1142 int start_position = compile_info_wrapper.GetStartPosition(); 1142 int start_position = compile_info_wrapper.GetStartPosition();
1143 int end_position = compile_info_wrapper.GetEndPosition(); 1143 int end_position = compile_info_wrapper.GetEndPosition();
1144 shared_info->set_start_position(start_position); 1144 shared_info->set_start_position(start_position);
1145 shared_info->set_end_position(end_position); 1145 shared_info->set_end_position(end_position);
1146 1146
1147 LiteralFixer::PatchLiterals(&compile_info_wrapper, shared_info, isolate); 1147 LiteralFixer::PatchLiterals(&compile_info_wrapper, shared_info, isolate);
1148 1148
1149 shared_info->set_construct_stub(
1150 isolate->builtins()->builtin(Builtins::kJSConstructStubGeneric));
1151
1152 DeoptimizeDependentFunctions(*shared_info); 1149 DeoptimizeDependentFunctions(*shared_info);
1153 isolate->compilation_cache()->Remove(shared_info); 1150 isolate->compilation_cache()->Remove(shared_info);
1154 } 1151 }
1155 1152
1156 1153
1157 void LiveEdit::FunctionSourceUpdated(Handle<JSArray> shared_info_array) { 1154 void LiveEdit::FunctionSourceUpdated(Handle<JSArray> shared_info_array) {
1158 SharedInfoWrapper shared_info_wrapper(shared_info_array); 1155 SharedInfoWrapper shared_info_wrapper(shared_info_array);
1159 Handle<SharedFunctionInfo> shared_info = shared_info_wrapper.GetInfo(); 1156 Handle<SharedFunctionInfo> shared_info = shared_info_wrapper.GetInfo();
1160 1157
1161 DeoptimizeDependentFunctions(*shared_info); 1158 DeoptimizeDependentFunctions(*shared_info);
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 isolate_->active_function_info_listener()->FunctionCode(code); 2000 isolate_->active_function_info_listener()->FunctionCode(code);
2004 } 2001 }
2005 2002
2006 2003
2007 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 2004 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
2008 return isolate->active_function_info_listener() != NULL; 2005 return isolate->active_function_info_listener() != NULL;
2009 } 2006 }
2010 2007
2011 } // namespace internal 2008 } // namespace internal
2012 } // namespace v8 2009 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698