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

Side by Side Diff: src/factory.cc

Issue 1854713002: Correctly annotate eval origin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 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/debug/liveedit.cc ('k') | src/frames.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/factory.h" 5 #include "src/factory.h"
6 6
7 #include "src/allocation-site-scopes.h" 7 #include "src/allocation-site-scopes.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 script->set_source(*source); 877 script->set_source(*source);
878 script->set_name(heap->undefined_value()); 878 script->set_name(heap->undefined_value());
879 script->set_id(isolate()->heap()->NextScriptId()); 879 script->set_id(isolate()->heap()->NextScriptId());
880 script->set_line_offset(0); 880 script->set_line_offset(0);
881 script->set_column_offset(0); 881 script->set_column_offset(0);
882 script->set_context_data(heap->undefined_value()); 882 script->set_context_data(heap->undefined_value());
883 script->set_type(Script::TYPE_NORMAL); 883 script->set_type(Script::TYPE_NORMAL);
884 script->set_wrapper(heap->undefined_value()); 884 script->set_wrapper(heap->undefined_value());
885 script->set_line_ends(heap->undefined_value()); 885 script->set_line_ends(heap->undefined_value());
886 script->set_eval_from_shared(heap->undefined_value()); 886 script->set_eval_from_shared(heap->undefined_value());
887 script->set_eval_from_instructions_offset(0); 887 script->set_eval_from_position(0);
888 script->set_shared_function_infos(Smi::FromInt(0)); 888 script->set_shared_function_infos(Smi::FromInt(0));
889 script->set_flags(0); 889 script->set_flags(0);
890 890
891 heap->set_script_list(*WeakFixedArray::Add(script_list(), script)); 891 heap->set_script_list(*WeakFixedArray::Add(script_list(), script));
892 return script; 892 return script;
893 } 893 }
894 894
895 895
896 Handle<Foreign> Factory::NewForeign(Address addr, PretenureFlag pretenure) { 896 Handle<Foreign> Factory::NewForeign(Address addr, PretenureFlag pretenure) {
897 CALL_HEAP_FUNCTION(isolate(), 897 CALL_HEAP_FUNCTION(isolate(),
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
2371 } 2371 }
2372 2372
2373 2373
2374 Handle<Object> Factory::ToBoolean(bool value) { 2374 Handle<Object> Factory::ToBoolean(bool value) {
2375 return value ? true_value() : false_value(); 2375 return value ? true_value() : false_value();
2376 } 2376 }
2377 2377
2378 2378
2379 } // namespace internal 2379 } // namespace internal
2380 } // namespace v8 2380 } // namespace v8
OLDNEW
« no previous file with comments | « src/debug/liveedit.cc ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698