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

Side by Side Diff: src/liveedit.cc

Issue 1083193005: WIP: new.target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix return from new func Created 5 years, 8 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/hydrogen.cc ('k') | src/messages.js » ('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 5
6 #include "src/v8.h" 6 #include "src/v8.h"
7 7
8 #include "src/liveedit.h" 8 #include "src/liveedit.h"
9 9
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 debug_info->set_original_code(*new_original_code); 1192 debug_info->set_original_code(*new_original_code);
1193 } 1193 }
1194 1194
1195 int start_position = compile_info_wrapper.GetStartPosition(); 1195 int start_position = compile_info_wrapper.GetStartPosition();
1196 int end_position = compile_info_wrapper.GetEndPosition(); 1196 int end_position = compile_info_wrapper.GetEndPosition();
1197 shared_info->set_start_position(start_position); 1197 shared_info->set_start_position(start_position);
1198 shared_info->set_end_position(end_position); 1198 shared_info->set_end_position(end_position);
1199 1199
1200 LiteralFixer::PatchLiterals(&compile_info_wrapper, shared_info, isolate); 1200 LiteralFixer::PatchLiterals(&compile_info_wrapper, shared_info, isolate);
1201 1201
1202 // TODO(arv): What about this one?
1202 shared_info->set_construct_stub( 1203 shared_info->set_construct_stub(
1203 isolate->builtins()->builtin(Builtins::kJSConstructStubGeneric)); 1204 isolate->builtins()->builtin(Builtins::kJSConstructStubGeneric));
1204 1205
1205 DeoptimizeDependentFunctions(*shared_info); 1206 DeoptimizeDependentFunctions(*shared_info);
1206 isolate->compilation_cache()->Remove(shared_info); 1207 isolate->compilation_cache()->Remove(shared_info);
1207 } 1208 }
1208 1209
1209 1210
1210 void LiveEdit::FunctionSourceUpdated(Handle<JSArray> shared_info_array) { 1211 void LiveEdit::FunctionSourceUpdated(Handle<JSArray> shared_info_array) {
1211 SharedInfoWrapper shared_info_wrapper(shared_info_array); 1212 SharedInfoWrapper shared_info_wrapper(shared_info_array);
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { 2056 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) {
2056 isolate_->active_function_info_listener()->FunctionCode(code); 2057 isolate_->active_function_info_listener()->FunctionCode(code);
2057 } 2058 }
2058 2059
2059 2060
2060 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 2061 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
2061 return isolate->active_function_info_listener() != NULL; 2062 return isolate->active_function_info_listener() != NULL;
2062 } 2063 }
2063 2064
2064 } } // namespace v8::internal 2065 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698